/* ═══════════════════════════════════════
   Maria Mauldin — Author Website
   Trilogía del Cerebro Amplificado
   DESIGN: Soft lavender + sage green
   ═══════════════════════════════════════ */

:root {
    --lavender: #7C6DAF;
    --lavender-dark: #5A4D8A;
    --lavender-light: #B8AED6;
    --lavender-pale: #EDE8F5;
    --sage: #7BAE7F;
    --sage-dark: #5A8E5E;
    --sage-light: #D4EDCF;
    --cream: #FDFBF7;
    --warm-bg: #F9F6F1;
    --text: #2E2B3B;
    --text-mid: #5C586A;
    --text-light: #8A8698;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow: 0 4px 20px rgba(0,0,0,0.07);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.35s ease;
}

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

body {
    font-family: 'Nunito', -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.75;
    background: var(--cream);
}

h1, h2, h3 { font-family: 'Lora', Georgia, serif; line-height: 1.3; }
h4 { font-family: 'Nunito', sans-serif; font-weight: 700; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ── Navigation ── */
#nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 0; transition: var(--transition);
}
#nav.scrolled {
    background: rgba(255,255,255,0.96); backdrop-filter: blur(16px);
    padding: 12px 0; box-shadow: 0 1px 12px rgba(124,109,175,0.1);
}
#nav.scrolled .nav-logo { color: var(--lavender-dark); }
#nav.scrolled .nav-links a { color: var(--text); }
.nav-container {
    max-width: 1100px; margin: 0 auto; padding: 0 28px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
    font-family: 'Lora', serif; font-size: 1.35rem;
    color: white; text-decoration: none; font-weight: 700;
}
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
    color: rgba(255,255,255,0.85); text-decoration: none;
    font-size: 0.9rem; font-weight: 500; transition: var(--transition);
}
.nav-links a:hover { color: var(--sage-light); }
.lang-btn {
    background: rgba(255,255,255,0.15) !important;
    padding: 4px 12px !important; border-radius: 6px !important;
    font-weight: 700 !important; letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.3);
}
.lang-btn:hover { background: rgba(255,255,255,0.3) !important; }
#nav.scrolled .lang-btn {
    background: var(--lavender-pale) !important;
    color: var(--lavender-dark) !important;
    border-color: var(--lavender-light) !important;
}
#nav.scrolled .lang-btn:hover { background: var(--lavender-light) !important; }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
#nav.scrolled .nav-toggle { color: var(--lavender-dark); }

/* ── Buttons ── */
.btn {
    display: inline-block; padding: 14px 34px; border-radius: var(--radius-sm);
    text-decoration: none; font-weight: 600; font-size: 0.92rem;
    transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary {
    background: var(--lavender); color: white;
}
.btn-primary:hover {
    background: var(--lavender-dark); transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,109,175,0.3);
}
.btn-ghost {
    background: transparent; color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: white; }

/* ── Hero ── */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; text-align: center;
    background: linear-gradient(150deg, var(--lavender-dark) 0%, var(--lavender) 40%, #8E7CC3 100%);
}
.hero-visual {
    position: absolute; inset: 0; pointer-events: none;
}
.hero-circle {
    position: absolute; border-radius: 50%; opacity: 0.08;
    background: white;
}
.hero-circle { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-circle.c2 { width: 400px; height: 400px; bottom: -100px; left: -50px; opacity: 0.06; }
.hero-circle.c3 { width: 250px; height: 250px; top: 40%; left: 60%; opacity: 0.05; }

.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 0 24px; }
.hero-tag {
    display: inline-block; padding: 8px 22px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    color: var(--sage-light); font-size: 0.78rem; letter-spacing: 2.5px;
    text-transform: uppercase; font-weight: 600; margin-bottom: 28px;
}
.hero h1 { color: white; font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.hero h1 em { color: var(--sage-light); }
.hero p { color: rgba(255,255,255,0.78); font-size: 1.1rem; margin-bottom: 36px; font-weight: 300; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Stats ── */
.stats {
    background: var(--white); padding: 44px 0;
    box-shadow: var(--shadow); position: relative; z-index: 2;
}
.stats-row {
    display: flex; align-items: center; justify-content: center; gap: 40px;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
    display: block; font-family: 'Lora', serif; font-size: 2.4rem;
    color: var(--lavender); font-weight: 700;
}
.stat-text { font-size: 0.82rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.2px; }
.stat-divider { width: 1px; height: 40px; background: var(--lavender-pale); }

/* ── Section Headers ── */
.section-top { text-align: center; margin-bottom: 60px; }
.tag {
    display: inline-block; font-size: 0.72rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--sage-dark); font-weight: 700; margin-bottom: 14px;
}
.tag.light { color: var(--sage-light); }
.section-top h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--lavender-dark); margin-bottom: 14px; }
.section-top h2.light { color: white; }
.section-top p { color: var(--text-mid); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

/* ── Trilogy / Books ── */
.trilogy { padding: 110px 0; background: var(--cream); }

.book {
    display: grid; grid-template-columns: 280px 1fr; gap: 56px;
    align-items: center; margin-bottom: 90px;
    opacity: 0; transform: translateY(40px); transition: 0.7s ease;
}
.book.show { opacity: 1; transform: translateY(0); }
.book.reverse { grid-template-columns: 1fr 280px; }
.book.reverse .book-cover { order: 2; }
.book.reverse .book-text { order: 1; }

.book-cover {
    aspect-ratio: 2/3; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
    transition: var(--transition);
}
.book-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: var(--radius-sm);
}
.book-cover:hover { transform: translateY(-10px) rotate(-2deg); box-shadow: 0 24px 56px rgba(0,0,0,0.18); }

.b1 { background: linear-gradient(155deg, #E8A87C 0%, #D77A61 50%, #B85842 100%); }
.b2 { background: linear-gradient(155deg, #8ECAE6 0%, #5B9BD5 50%, #3A6FA0 100%); }
.b3 { background: linear-gradient(155deg, #7BD4A0 0%, #4CAF6E 50%, #2D7A46 100%); }

.book-cover-content { text-align: center; color: white; padding: 24px; }
.book-number {
    font-family: 'Lora', serif; font-size: 3.5rem;
    opacity: 0.15; position: absolute; top: 14px; right: 18px;
}
.book-cover-content h3 { font-size: 1.2rem; margin-bottom: 14px; line-height: 1.35; }
.book-divider { width: 36px; height: 2px; background: rgba(255,255,255,0.5); margin: 0 auto 12px; }
.book-cover-content p { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.8; }

.book-tag {
    display: inline-block; font-size: 0.72rem; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--lavender); font-weight: 700; margin-bottom: 10px;
}
.book-text h3 { font-size: 1.6rem; color: var(--lavender-dark); margin-bottom: 6px; }
.book-sub { color: var(--text-mid); font-style: italic; margin-bottom: 16px; }
.book-text > p { color: var(--text-mid); font-size: 0.97rem; margin-bottom: 20px; }
.book-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.book-pills span {
    padding: 6px 16px; border-radius: 50px; font-size: 0.78rem;
    background: var(--lavender-pale); color: var(--lavender-dark);
    font-weight: 500;
}
.book-isbn { font-size: 0.82rem; color: var(--text-light); font-style: italic; margin-bottom: 18px; }

/* ── Quote ── */
.quote {
    padding: 90px 0; text-align: center;
    background: var(--lavender-pale);
}
.quote blockquote {
    font-family: 'Lora', serif; font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    color: var(--lavender-dark); font-style: italic; line-height: 1.7;
    max-width: 780px; margin: 0 auto 20px;
}
.quote cite { color: var(--sage-dark); font-size: 0.92rem; font-style: normal; font-weight: 600; }

/* ── Approach ── */
.approach { padding: 110px 0; background: var(--warm-bg); }
.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.approach-card {
    background: var(--white); border-radius: var(--radius); padding: 40px 32px;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    border-left: 4px solid transparent;
    opacity: 0; transform: translateY(20px);
}
.approach-card.show { opacity: 1; transform: translateY(0); }
.approach-card:hover { border-left-color: var(--sage); transform: translateY(-4px); box-shadow: var(--shadow); }
.approach-icon { font-size: 2rem; margin-bottom: 16px; }
.approach-card h4 { color: var(--lavender-dark); font-size: 1.1rem; margin-bottom: 10px; }
.approach-card p { color: var(--text-mid); font-size: 0.95rem; }

/* ── For Who ── */
.for-who {
    padding: 110px 0;
    background: linear-gradient(155deg, var(--lavender) 0%, var(--lavender-dark) 100%);
}
.for-who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.for-who-item {
    padding: 30px 24px; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm); transition: var(--transition);
    opacity: 0; transform: translateY(20px);
}
.for-who-item.show { opacity: 1; transform: translateY(0); }
.for-who-item:hover { background: rgba(255,255,255,0.18); transform: translateY(-4px); }
.for-who-item p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.for-who-item strong { color: white; }

/* ── About ── */
.about { padding: 110px 0; background: var(--white); }
.about-grid {
    display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center;
}
.author-photo {
    width: 100%; aspect-ratio: 3/4; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.about-text .tag { margin-bottom: 10px; }
.about-text h2 { color: var(--lavender-dark); font-size: 2.2rem; margin-bottom: 22px; }
.about-text p { color: var(--text-mid); font-size: 1rem; margin-bottom: 16px; }

/* ── Contact ── */
.contact { padding: 110px 0; background: var(--warm-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 14px 18px; border: 1px solid #e2dfe8;
    border-radius: var(--radius-sm); font-family: inherit; font-size: 0.92rem;
    margin-bottom: 14px; background: white; transition: var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none; border-color: var(--lavender);
    box-shadow: 0 0 0 3px rgba(124,109,175,0.12);
}

.info-card {
    background: var(--white); border-radius: var(--radius-sm); padding: 24px;
    box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.info-card h4 { color: var(--lavender-dark); margin-bottom: 10px; font-size: 0.95rem; }
.info-card a { color: var(--lavender); text-decoration: none; font-weight: 600; }
.info-card a:hover { color: var(--lavender-dark); }
.info-card p { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 12px; }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-links a {
    padding: 8px 18px; border: 1.5px solid var(--lavender);
    border-radius: var(--radius-sm); color: var(--lavender);
    text-decoration: none; font-size: 0.82rem; font-weight: 600;
    transition: var(--transition);
}
.social-links a:hover { background: var(--lavender); color: white; }

.newsletter { display: flex; gap: 8px; }
.newsletter input {
    flex: 1; padding: 10px 14px; border: 1px solid #e2dfe8;
    border-radius: var(--radius-sm); font-size: 0.88rem;
}
.newsletter button {
    padding: 10px 22px; background: var(--sage); color: white;
    border: none; border-radius: var(--radius-sm); font-size: 0.85rem;
    cursor: pointer; font-weight: 600; transition: var(--transition);
}
.newsletter button:hover { background: var(--sage-dark); }

/* ── Footer ── */
footer {
    background: var(--lavender-dark); color: rgba(255,255,255,0.7); padding: 52px 0 28px;
}
.footer-grid {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 36px;
}
footer h3 { color: white; font-size: 1.25rem; margin-bottom: 4px; }
footer > .container > .footer-grid > div:first-child p { font-size: 0.88rem; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-size: 0.88rem; transition: var(--transition);
}
.footer-nav a:hover { color: var(--sage-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px; text-align: center; font-size: 0.82rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .book, .book.reverse { grid-template-columns: 1fr; gap: 36px; }
    .book.reverse .book-cover, .book.reverse .book-text { order: unset; }
    .book-cover { max-width: 240px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .author-photo { max-width: 280px; margin: 0 auto; display: block; }
    .approach-grid { grid-template-columns: 1fr; }
    .for-who-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-row { gap: 24px; }
    .stat-divider { display: none; }
    .footer-grid { flex-direction: column; text-align: center; gap: 20px; }
    .footer-nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--lavender-dark); flex-direction: column;
        padding: 20px 28px; gap: 14px;
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }
    #nav.scrolled .nav-links { background: white; }
    #nav.scrolled .nav-links a { color: var(--text); }
    .for-who-grid { grid-template-columns: 1fr; }
    .newsletter { flex-direction: column; }
    .social-links { flex-direction: column; }
    .social-links a { text-align: center; }
}
