/* --- VARIABLES Y PALETA NATURALEZA / DORADOS --- */
:root {
    --bg-color: #f7f9f7;            /* Blanco lino / verde muy suave */
    --text-color: #24332b;          /* Verde bosque muy oscuro para lectura */
    --primary-color: #1e3328;       /* Verde pino / naturaleza profundo */
    --accent-color: #3b5346;        /* Verde salvia elegante */
    --accent-light: #e6ede8;        /* Fondo claro para tarjetas */
    --gold-color: #c5a059;          /* Dorado sutil y elegante */
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- CABECERA Y LOGOTIPO --- */
.site-header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(30, 51, 40, 0.05);
    z-index: 1000;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.logo-text-box {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--gold-color); /* Toque dorado elegante */
    font-weight: 500;
    letter-spacing: 0.5px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.site-nav a:hover {
    color: var(--gold-color);
}

/* --- HERO SECTION --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 10%;
    background: linear-gradient(135deg, #1e3328 0%, #2f4f3f 100%);
    color: var(--white);
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.badge {
    background-color: rgba(197, 160, 89, 0.25); /* Destello dorado sutil */
    color: #f3e9d2;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(197, 160, 89, 0.4);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.hero-section p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 250px;
}

.hero-book-img {
    width: 180px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* --- BOTONES --- */
.btn-primary {
    display: inline-block;
    background-color: var(--gold-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #b08d48;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn-secondary:hover {
    opacity: 0.9;
}

/* --- SECCIÓN MIS LIBROS & SERIE --- */
.books-section {
    padding: 5rem 10%;
    text-align: center;
}

.books-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.series-intro {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #4a5d53;
    font-size: 1.05rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    text-align: left;
}

.book-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(30, 51, 40, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    border-top: 4px solid var(--accent-color);
}

.book-img {
    width: 150px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.book-info {
    width: 100%;
}

.book-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.book-subtitle {
    font-size: 0.85rem;
    color: var(--gold-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.book-desc {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

/* Próximo libro (Coming Soon) */
.coming-soon-card {
    border-top: 4px dashed var(--gold-color);
    background: linear-gradient(to bottom, var(--white), var(--accent-light));
}

.badge-mini {
    display: inline-block;
    background-color: var(--gold-color);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-coming {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn-coming:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- SOBRE MÍ Y NEWSLETTER --- */
.about-container {
    padding: 4rem 10%;
    background-color: var(--white);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    border-top: 1px solid #e0e8e2;
    border-bottom: 1px solid #e0e8e2;
}

.about-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 3px solid var(--accent-light);
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.sidebar-newsletter {
    background-color: var(--accent-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #d2ded5;
}

.sidebar-newsletter h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.sidebar-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #3b4d42;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.newsletter-form input {
    padding: 0.7rem;
    border: 1px solid #bcd0c3;
    border-radius: 4px;
    outline: none;
    background-color: var(--white);
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
}

.newsletter-form button:hover {
    background-color: var(--accent-color);
}

/* --- FOOTER --- */
.site-footer {
    background-color: #15241c;
    color: var(--white);
    padding: 3rem 10% 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-brand h3 {
    color: var(--gold-color);
    font-family: 'Georgia', serif;
}

.footer-links ul {
    list-style: none;
    margin-top: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-color);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- RESPONSIVE / MÓVIL --- */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-nav ul {
        gap: 1rem;
    }

    .hero-section {
        padding: 3rem 5%;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    /* Solución para que la etiqueta de Kindle Unlimited no se corte */
    .badge {
        display: inline-block;
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        justify-content: center;
        text-align: center;
    }
}