/* ═══════════════════════════════════════════
   mariajcuesta.com — Estilos página portfolio
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --purple:      #3FB8C0;   /* Turquesa — color dominante Letrimagia */
      --purple-dark: #2a9099;   /* Turquesa oscuro para hover */
      --purple-light:#e6f7f8;   /* Turquesa muy claro para fondos suaves */
      --gold:        #FFD800;   /* Dorado Letrimagia */
      --gold-light:  #fffbe0;   /* Dorado muy claro */
      --teal:        #4F60A9;   /* Azul índigo — acentos y tags */
      --bg:          #F6FCFD;   /* Fondo principal con toque turquesa */
      --bg-alt:      #EAF7F8;   /* Turquesa suave para sección about */
      --text:        #1C2E4A;   /* Azul oscuro para texto principal */
      --text-light:  #4F6878;   /* Azul grisáceo para texto secundario */
      --white:       #fff;
      --radius:      12px;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Lato', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.75;
      font-size: 17px;
    }

    /* ── HEADER ── */
    header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(253,248,242,0.95);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid rgba(63,184,192,0.2);
      padding: 0 5%;
      display: flex !important;;
      align-items: center;
      justify-content: space-between;
      height: 70px;
    }

    .logo {
      font-family: 'Playfair Display', serif;
      font-size: 1.35rem;
      color: var(--purple);
      text-decoration: none;
      letter-spacing: 0.01em;
    }
    .logo span { color: var(--gold); }

    nav a {
      font-family: 'Lato', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--text-light);
      text-decoration: none;
      margin-left: 2rem;
      transition: color 0.2s;
    }
    nav a:hover { color: var(--purple); }

    /* ── HERO ── */
    .hero {
	  background: var(--bg);
      min-height: 90vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      padding: 6rem 8%;
      gap: 5rem;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: -120px; right: -120px;
      width: 520px; height: 520px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(63,184,192,0.10) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-text { z-index: 1; }

    .hero-badge {
      display: inline-block;
      background: var(--gold-light);
      color: var(--gold);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 6px 14px;
      border-radius: 99px;
      margin-bottom: 1.5rem;
      border: 1px solid rgba(255,216,0,0.4);
    }

    .hero h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.4rem, 4.5vw, 3.8rem);
      line-height: 1.2;
      color: var(--text);
      margin-bottom: 1.5rem;
    }
    .hero h1 em { color: var(--purple); font-style: italic; }

    .hero-sub {
      font-size: 1.1rem;
      color: var(--text-light);
      max-width: 480px;
      margin-bottom: 2.5rem;
      font-weight: 300;
      line-height: 1.8;
    }

    .btn-primary {
      display: inline-block;
      background: var(--purple);
      color: #fff;
      font-family: 'Lato', sans-serif;
      font-weight: 600;
      font-size: 0.95rem;
      letter-spacing: 0.04em;
      padding: 14px 32px;
      border-radius: 99px;
      text-decoration: none;
      transition: background 0.2s, transform 0.15s;
    }
    .btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); }

    .btn-secondary {
      display: inline-block;
      color: var(--purple);
      font-family: 'Lato', sans-serif;
      font-weight: 600;
      font-size: 0.95rem;
      padding: 14px 32px;
      border-radius: 99px;
      border: 2px solid var(--purple);
      text-decoration: none;
      margin-left: 1rem;
      transition: background 0.2s, color 0.2s;
    }
    .btn-secondary:hover { background: var(--purple); color: #fff; }

    /* hero image */
    .hero-img-wrap {
      position: relative;
    }
    .hero-photo {
      width: 100%;
      aspect-ratio: 4/5;
      border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
      object-fit: cover;
      display: block;
    }
    .hero-photo-placeholder {
      width: 100%;
      aspect-ratio: 4/5;
      border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
      background: linear-gradient(135deg, var(--purple-light) 0%, rgba(255,216,0,0.12) 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: var(--text-light);
      font-size: 0.85rem;
      letter-spacing: 0.05em;
      border: 2px dashed rgba(63,184,192,0.35);
    }
    .hero-photo-placeholder strong { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; color: var(--purple); }

    .hero-deco {
      position: absolute;
      bottom: -20px; left: -20px;
      width: 120px; height: 120px;
      border-radius: 50%;
      background: var(--gold-light);
      border: 3px solid var(--gold);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Playfair Display', serif;
      font-size: 0.75rem;
      color: var(--gold);
      font-weight: 700;
      text-align: center;
      padding: 12px;
      line-height: 1.3;
    }

    /* ── SECTIONS ── */
    section { padding: 6rem 8%; }

    .section-label {
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--purple);
      margin-bottom: 0.8rem;
    }

    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.9rem, 3vw, 2.8rem);
      line-height: 1.25;
      margin-bottom: 1.5rem;
    }

    /* ── ABOUT ── */
    .about {
      background: var(--bg-alt);
      display: grid;
      grid-template-columns: 1fr 1.4fr;
      gap: 5rem;
      align-items: center;
    }

    .about-img-placeholder {
      width: 100%;
      aspect-ratio: 3/4;
      border-radius: var(--radius);
      background: linear-gradient(160deg, rgba(63,184,192,0.12) 0%, rgba(79,96,169,0.10) 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border: 2px dashed rgba(63,184,192,0.30);
      color: var(--text-light);
      font-size: 0.85rem;
    }
    .about-img-placeholder strong { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; color: var(--purple); }

    .about-text p { margin-bottom: 1.2rem; color: var(--text-light); font-weight: 300; }
    .about-text p strong { color: var(--text); font-weight: 600; }

    .quote-block {
      border-left: 3px solid var(--gold);
      padding: 1rem 1.5rem;
      margin: 2rem 0;
      background: white;
      border-radius: 0 var(--radius) var(--radius) 0;
    }
    .quote-block p {
      font-family: 'Playfair Display', serif;
      font-style: italic;
      font-size: 1.15rem;
      color: var(--text);
      margin: 0 !important;
    }

    /* ── LIBROS ── */
	#libros {
	  background: var(--bg);
	}
    .books-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 2rem;
      margin-top: 3rem;
    }

    .book-card {
      background: white;
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid rgba(63,184,192,0.15);
      transition: transform 0.25s, box-shadow 0.25s;
    }
    .book-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(63,184,192,0.18); }

    .book-cover {
      width: 100%;
      aspect-ratio: 3/4;
      object-fit: cover;
      background: #eaf7f8;
      display: block;
    }
    .book-cover-placeholder {
      width: 100%;
      aspect-ratio: 3/4;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      color: var(--text-light);
      border-bottom: 1px solid rgba(63,184,192,0.12);
    }
    .book-cover-placeholder strong { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; color: var(--purple); }

    .book-info { padding: 1.2rem 1.2rem 1.5rem; }
    .book-tag {
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--teal);
      margin-bottom: 0.4rem;
    }
    .book-info h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.05rem;
      color: var(--text);
      margin-bottom: 0.5rem;
    }
    .book-info p { font-size: 0.85rem; color: var(--text-light); font-weight: 300; line-height: 1.6; }

    /* ── LETRIMAGIA ── */
    .letrimagia {
      background: #4F60A9;
      color: white;
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 5rem;
      align-items: center;
    }
    .letrimagia .section-label { color: var(--gold); }
    .letrimagia .section-title { color: white; }
    .letrimagia p { color: rgba(255,255,255,0.75); font-weight: 300; margin-bottom: 1rem; }

    .letrimagia-img {
      width: 100%;
      border-radius: var(--radius);
      display: block;
    }
    .letrimagia-img-placeholder {
      width: 100%;
      aspect-ratio: 4/3;
      background: rgba(255,255,255,0.08);
      border: 2px dashed rgba(255,255,255,0.3);
      border-radius: var(--radius);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,0.5);
      font-size: 0.85rem;
    }
    .letrimagia-img-placeholder strong { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; color: rgba(255,255,255,0.7); }

    .btn-gold {
      display: inline-block;
      background: var(--gold);
      color: var(--text);
      font-family: 'Lato', sans-serif;
      font-weight: 700;
      font-size: 0.92rem;
      padding: 13px 30px;
      border-radius: 99px;
      text-decoration: none;
      margin-top: 1rem;
      transition: background 0.2s, transform 0.15s;
    }
    .btn-gold:hover { background: #e6c300; transform: translateY(-2px); }

    .features {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin: 1.5rem 0;
    }
    .feature {
      background: rgba(255,255,255,0.08);
      border-radius: 8px;
      padding: 0.9rem 1rem;
    }
    .feature h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; color: white; }
    .feature p { font-size: 0.8rem; margin: 0; }

    /* ── PREMIOS ── */
    .awards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-top: 3rem;
    }
    .award-card {
      background: white;
      border-radius: var(--radius);
      padding: 1.8rem;
      border: 1px solid rgba(63,184,192,0.15);
      display: flex;
      align-items: flex-start;
      gap: 1rem;
    }
    .award-icon {
      min-width: 10px; height: 10px;
      background: var(--gold);
      border-radius: 50%;
      margin-top: 8px;
      flex-shrink: 0;
    }
    .award-card h4 { font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 0.3rem; }
    .award-card p { font-size: 0.85rem; color: var(--text-light); font-weight: 300; }

    /* ── FOOTER ── */
    footer {
      background: var(--text);
      color: rgba(255,255,255,0.6);
      padding: 4rem 8% 2.5rem;
    }
    .footer-top {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 3rem;
      padding-bottom: 3rem;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      margin-bottom: 2rem;
    }
    .footer-brand .logo { color: white; display: block; margin-bottom: 0.8rem; }
    .footer-brand p { font-size: 0.88rem; line-height: 1.7; }
    .footer-col h5 {
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.9);
      margin-bottom: 1rem;
    }
    .footer-col a {
      display: block;
      font-size: 0.9rem;
      color: rgba(255,255,255,0.5);
      text-decoration: none;
      margin-bottom: 0.5rem;
      transition: color 0.2s;
    }
    .footer-col a:hover { color: var(--gold); }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.82rem;
    }

    /* ── UTILS ── */
    .text-center { text-align: center; }
    .divider {
      width: 50px; height: 3px;
      background: var(--gold);
      border-radius: 99px;
      margin: 1.2rem 0 2rem;
    }

    @media (max-width: 900px) {
      .hero, .about, .letrimagia { grid-template-columns: 1fr; gap: 2.5rem; }
      .hero { padding: 4rem 6%; min-height: auto; }
      .hero-img-wrap { order: -1; max-width: 320px; margin: 0 auto; }
      .footer-top { grid-template-columns: 1fr; gap: 2rem; }
      .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    }


    /* ── Foto principal "Quién soy" ── */
    .about-main-photo {
      width: 100%;
      aspect-ratio: 3/4;
      object-fit: cover;
      border-radius: var(--radius);
      display: block;
      box-shadow: 0 8px 32px rgba(63,63,120,0.13);
    }

    /* ── Tira de miniaturas ── */
    .photo-strip {
      display: flex;
      gap: 8px;
      margin-top: 1.6rem;
      flex-wrap: wrap;
    }
    .photo-strip img {
      width: calc((100% - 40px) / 6);
      aspect-ratio: 1/1;
      object-fit: cover;
      border-radius: 8px;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
      border: 2px solid transparent;
    }
    .photo-strip img:hover {
      transform: translateY(-3px) scale(1.04);
      box-shadow: 0 6px 18px rgba(63,63,120,0.18);
      border-color: var(--gold);
    }

    /* ── Lightbox ── */
    #lightbox {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(10,10,20,0.92);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }
    #lightbox.open { display: flex; }
    #lightbox img {
      max-height: 88vh;
      max-width: 90vw;
      border-radius: 12px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.6);
      object-fit: contain;
    }
    .lb-btn {
      position: fixed;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.12);
      border: none;
      color: white;
      font-size: 2rem;
      padding: 0.6rem 1.1rem;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.2s;
      backdrop-filter: blur(4px);
    }
    .lb-btn:hover { background: rgba(255,255,255,0.25); }
    #lb-prev { left: 1.2rem; }
    #lb-next { right: 1.2rem; }
    #lb-close {
      position: fixed;
      top: 1.2rem;
      right: 1.4rem;
      background: rgba(255,255,255,0.12);
      border: none;
      color: white;
      font-size: 1.5rem;
      padding: 0.4rem 0.9rem;
      border-radius: 8px;
      cursor: pointer;
      backdrop-filter: blur(4px);
    }
    #lb-counter {
      position: fixed;
      bottom: 1.4rem;
      left: 50%;
      transform: translateX(-50%);
      color: rgba(255,255,255,0.6);
      font-size: 0.85rem;
      font-family: 'Lato', sans-serif;
    }

    /* ── ANIMACIONES (réplica exacta de initiummagia.com) ── */
    /* Velocidad "slow" = 1.6s, igual que Elementor animated-slow */
    :root { --animate-duration: 1.6s; }

    [data-anim] {
      opacity: 0;
    }
    [data-anim].animated {
      opacity: 1;
    }