/* ==========================================================
   GRACIELA ARMENDARIZ — Psicopedagoga
   Concepto: cuaderno rayado — renglones, margen roja, apuntes a mano
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;600;700&family=Karla:wght@400;500;700&family=Caveat:wght@500;700&display=swap');

:root {
  --tinta:        #21395c;   /* azul tinta, para texto y estructura */
  --tinta-suave:  #45608a;
  --papel:        #faf7ee;   /* papel crema */
  --papel-linea:  #cdd9e6;   /* renglón celeste */
  --margen:       #a53b45;   /* línea de margen roja, cuaderno clásico */
  --ocre:         #c2872f;   /* acento cálido, resaltador */
  --verde-tilde:  #4c7a52;   /* verde "corregido" */
  --texto:        #262420;
  --gris:         #6d6a60;
  --blanco:       #ffffff;

  --fuente-display: 'Bitter', serif;
  --fuente-cuerpo:  'Karla', sans-serif;
  --fuente-mano:    'Caveat', cursive;

  --radio: 4px;
  --sombra: 0 6px 20px rgba(33, 57, 92, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente-cuerpo);
  color: var(--texto);
  background: var(--papel);
  line-height: 1.7;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: var(--fuente-display);
  color: var(--tinta);
  font-weight: 700;
}

.eyebrow {
  font-family: var(--fuente-cuerpo);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--margen);
}

/* apunte a mano, tipo corrección de maestra */
.apunte {
  font-family: var(--fuente-mano);
  font-size: 1.4rem;
  color: var(--margen);
  display: inline-block;
  transform: rotate(-3deg);
  line-height: 1.1;
}

/* ==========================================================
   PAGINA RAYADA (fondo de cuaderno con margen)
   ========================================================== */
.pagina-rayada {
  background-image: repeating-linear-gradient(
      to bottom,
      transparent, transparent 37px,
      var(--papel-linea) 37px, var(--papel-linea) 38px
    );
  background-position: 0 4px;
  position: relative;
}

.pagina-rayada::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 56px;
  width: 2px;
  background: var(--margen);
  opacity: 0.55;
}

@media (max-width: 700px) {
  .pagina-rayada::before { left: 26px; }
}

/* ==========================================================
   HEADER
   ========================================================== */
header {
  background: var(--blanco);
  border-bottom: 1px solid var(--papel-linea);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-container .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--papel-linea);
}

.logo-container .titulo-marca {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-container .titulo-marca strong {
  font-family: var(--fuente-display);
  font-size: 1.15rem;
  color: var(--tinta);
}

.logo-container .titulo-marca span {
  font-size: 0.76rem;
  color: var(--gris);
}

nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav a {
  color: var(--texto);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radio);
  transition: background 0.2s, color 0.2s;
}

nav a:hover { background: var(--papel-linea); }

nav a.activo {
  color: var(--margen);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--ocre);
  text-underline-offset: 4px;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  padding: 64px 32px 70px;
}

.hero-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 90px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 700px) {
  .hero-grid { padding-left: 42px; }
}

.hero-texto h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.2;
  margin: 12px 0 18px;
}

.hero-texto p {
  color: var(--texto);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 26px;
}

.hero-foto {
  justify-self: center;
  text-align: center;
}

.hero-foto img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--blanco);
  box-shadow: var(--sombra);
}

/* ==========================================================
   BOTONES
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tinta);
  color: var(--blanco);
  padding: 13px 26px;
  border-radius: var(--radio);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--tinta);
  transition: transform 0.2s, background 0.2s;
}

.btn:hover { background: #16283f; transform: translateY(-2px); }

.btn-secundario {
  background: transparent;
  color: var(--tinta);
  border: 1px solid var(--tinta);
}

.btn-secundario:hover { background: var(--papel-linea); }

.btn-pequeno {
  display: inline-block;
  background: var(--verde-tilde);
  color: var(--blanco);
  padding: 9px 18px;
  border-radius: var(--radio);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--verde-tilde);
}

/* ==========================================================
   CONTENEDOR GENERAL
   ========================================================== */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 32px 70px 90px;
}

@media (max-width: 700px) {
  main { padding: 40px 20px 60px 42px; }
}

.seccion-titulo { margin-bottom: 34px; }

.seccion-titulo .eyebrow { display: block; margin-bottom: 8px; }

.seccion-titulo h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.seccion-titulo p {
  color: var(--gris);
  max-width: 60ch;
  margin-top: 10px;
}

section + section { margin-top: 54px; }

/* ==========================================================
   INFO BOX
   ========================================================== */
.info-box {
  background: var(--blanco);
  border: 1px solid var(--papel-linea);
  border-left: 4px solid var(--margen);
  border-radius: var(--radio);
  padding: 20px 24px;
  box-shadow: var(--sombra);
}

.info-box strong { color: var(--tinta); }

.info-box .fila {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.info-box .fila:last-child { margin-bottom: 0; }

/* ==========================================================
   TARJETAS DE AREAS DE TRABAJO
   ========================================================== */
.grilla-areas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tarjeta-area {
  background: var(--blanco);
  border: 1px solid var(--papel-linea);
  border-radius: var(--radio);
  padding: 24px;
  box-shadow: var(--sombra);
}

.icono-tarjeta {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icono-tarjeta svg { width: 100%; height: 100%; }

.tarjeta-area h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tarjeta-area h3::before {
  content: "✓";
  color: var(--verde-tilde);
  font-weight: 700;
}

.tarjeta-area ul {
  padding-left: 20px;
  color: var(--texto);
  font-size: 0.95rem;
}

.tarjeta-area li { margin-bottom: 7px; }

.tarjeta-area p {
  color: var(--texto);
  font-size: 0.95rem;
}

/* ==========================================================
   LINEA DE TIEMPO (CV)
   ========================================================== */
.timeline {
  position: relative;
  padding-left: 26px;
  border-left: 2px dashed var(--papel-linea);
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--margen);
  border: 2px solid var(--papel);
}

.timeline-item .periodo {
  font-family: var(--fuente-mano);
  font-size: 1.15rem;
  color: var(--margen);
  display: block;
  margin-bottom: 2px;
}

.timeline-item h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--texto);
  font-size: 0.95rem;
}

/* ==========================================================
   PERFIL / IDIOMA (sobre-mi)
   ========================================================== */
.perfil-box {
  background: var(--blanco);
  border: 1px solid var(--papel-linea);
  border-radius: var(--radio);
  padding: 26px 28px;
  box-shadow: var(--sombra);
}

.perfil-box p { color: var(--texto); }

/* ==========================================================
   CONTACTO
   ========================================================== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.tarjeta-contacto {
  background: var(--blanco);
  border: 1px solid var(--papel-linea);
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: var(--sombra);
}

.canal-contacto {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--papel-linea);
  text-decoration: none;
  color: var(--texto);
}
.canal-contacto:last-child { border-bottom: none; }

.canal-contacto .icono {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--papel);
  border: 1px solid var(--papel-linea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.canal-contacto strong { display: block; color: var(--tinta); }
.canal-contacto span { color: var(--gris); font-size: 0.92rem; }

/* mini "post-it" con la cita destacada */
.postit {
  background: #fdf3cf;
  border: 1px solid #ecd98a;
  border-radius: var(--radio);
  padding: 22px 24px;
  box-shadow: var(--sombra);
  transform: rotate(1deg);
}

.postit p {
  font-family: var(--fuente-mano);
  font-size: 1.3rem;
  color: #5a4a12;
  line-height: 1.3;
}

.postit .firma {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
  text-align: right;
  opacity: 0.85;
}

/* ==========================================================
   TIRA DE JUEGOS DIDACTICOS (ilustraciones)
   ========================================================== */
.juegos-tira {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.juego-item {
  background: var(--blanco);
  border: 1px solid var(--papel-linea);
  border-radius: var(--radio);
  padding: 20px 18px 18px;
  box-shadow: var(--sombra);
  text-align: center;
}

.juego-item svg {
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
}

.juego-item strong {
  display: block;
  color: var(--tinta);
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.juego-item span {
  color: var(--gris);
  font-size: 0.86rem;
}

@media (max-width: 780px) {
  .juegos-tira { grid-template-columns: 1fr; }
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
  background: var(--tinta);
  color: var(--papel);
  padding: 44px 32px 26px;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(250,247,238,0.15);
  padding-bottom: 24px;
  margin-bottom: 16px;
}

footer .marca-footer strong {
  font-family: var(--fuente-display);
  font-size: 1.1rem;
}

footer .marca-footer p {
  color: #c3cfde;
  font-size: 0.86rem;
  margin-top: 6px;
  max-width: 34ch;
}

footer nav a { color: var(--papel); font-size: 0.9rem; }
footer nav a:hover { color: var(--ocre); }

.footer-legal {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-foto { order: -1; }
  .grilla-areas { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  header { flex-direction: column; text-align: center; }
  nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
