﻿/* ============================================
   EDITORIAL ÁRTICA — style.css
   Ir añadiendo secciones según crezca la web
   ============================================ */


/* ── VARIABLES ──────────────────────────────── */
:root {
    --negro: #0d0d0b;
    --blanco: #ffffff;
    --crema: #f7f5f0;
    --crema2: #ede9e1;
    --gris-texto: #6b6866;
    --acento: #1a3a5c;
    --acento2: #c8a96e;
    --radio: 10px;
}


/* ── RESET & BASE ───────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--crema);
    color: var(--negro);
    line-height: 1.6;
}


/* ── NAV ────────────────────────────────────── */
nav {
    background: var(--blanco);
    border-bottom: 1px solid var(--crema2);
    padding: 0 2.5rem;
    height: 130px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

    .nav-logo img {
        height: 120px;
        width: auto;
        display: block;
    }

    .nav-logo span {

        font-family: 'Cormorant Garamond', serif;
        font-size: 2.0rem;
        font-weight: 600;
         color: var(--acento);
        letter-spacing: -0.02em;
    }



/* ── HERO ────────────────────────────────────── */
.hero {
    background: var(--acento);
    color: var(--blanco);
    padding: 6rem 2rem 5rem;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(200,169,110,0.2);
    color: var(--acento2);
    border: 1px solid rgba(200,169,110,0.4);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 700px;
    margin: 0 auto 1.25rem;
}

.hero p {
    font-size: 1.05rem;
    opacity: 0.78;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}



@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem 3.5rem;
    }
}

/* ── DISPONIBLE EN ───────────────────────────── */
.disponible {
    background: var(--blanco);
    border-bottom: 1px solid var(--crema2);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gris-texto);
}

.disponible-tienda {
    color: var(--acento);
    font-weight: 500;
}


/* ── CATÁLOGO ────────────────────────────────── */
.catalogo-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 2rem 1.5rem;
}

    .catalogo-header h2 {
        font-family: 'Playfair Display', serif;
        font-size: 2rem;
        font-weight: 400;
        letter-spacing: -0.02em;
    }

    .catalogo-header p {
        color: var(--gris-texto);
        font-size: 0.95rem;
        margin-top: 0.4rem;
    }

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 3.5rem;
}

.libro-card {
    background: var(--blanco);
    border: 1px solid var(--crema2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

    .libro-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(26,58,92,0.1);
    }

.libro-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.libro-info {
    padding: 1.1rem;
}

.libro-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.libro-acciones {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-info, .btn-amazon {
    display: block;
    text-align: center;
    padding: 9px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-info {
    background: var(--crema);
    color: var(--acento);
    border: 1px solid var(--crema2);
}

.btn-amazon {
    background: var(--acento);
    color: var(--blanco);
}

    .btn-info:hover, .btn-amazon:hover {
        opacity: 0.8;
    }

/* responsive catálogo */
@media (max-width: 768px) {
    .catalogo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .catalogo-grid {
        grid-template-columns: 1fr;
    }
}



/* ── MODAL ───────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

    .modal-overlay.activo {
        display: flex;
    }

.modal-contenido {
    background: var(--blanco);
    border-radius: 14px;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-cerrar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--gris-texto);
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

@media (min-width: 540px) {
    .modal-body {
        flex-direction: row;
        align-items: flex-start;
    }
}

.modal-img {
    width: 350px;
    min-width: 200px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
}

.modal-categoria {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gris-texto);
    margin-bottom: 0.3rem;
}

.modal-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.modal-desc {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--negro);
    line-height: 1.7;
    margin-bottom: 1rem;
    white-space: pre-line;
}

.modal-datos {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--crema2);
}

    .modal-datos div {
        display: flex;
        gap: 0.5rem;
    }

    .modal-datos span {
        color: var(--gris-texto);
    }

.modal-amazon {
    margin-top: 0;
}

@media (max-width: 480px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-img {
        width: 100%;
        aspect-ratio: 3/2;
    }
}


/* ── NOSOTROS ────────────────────────────────── */
.nosotros {
    background: var(--acento);
    color: var(--blanco);
    padding: 5rem 2rem;
    margin-top: 4rem;
}

.nosotros-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.nosotros h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.nosotros p {
    opacity: 0.78;
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 300;
}

.nosotros-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(200,169,110,0.15);
    border: 1px solid rgba(200,169,110,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--acento2);
}

.feature-texto h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.feature-texto p {
    font-size: 0.82rem;
    opacity: 0.65;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .nosotros-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .nosotros { padding: 3.5rem 1.5rem; }
}


/* ── CONTACTO ────────────────────────────────── */
.contacto {
    padding: 5rem 2rem;
    background: var(--crema);
}

.contacto-inner {
    max-width: 560px;
    margin: 0 auto;
}

.contacto-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contacto-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.contacto-header p {
    color: var(--gris-texto);
    font-size: 0.95rem;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-grupo label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--negro);
}

.form-grupo input,
.form-grupo textarea {
    padding: 11px 16px;
    border: 1px solid var(--crema2);
    border-radius: var(--radio);
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    background: var(--blanco);
    color: var(--negro);
    outline: none;
    transition: border-color 0.2s;
}

.form-grupo input:focus,
.form-grupo textarea:focus {
    border-color: var(--acento);
}

.form-grupo textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-enviar {
    background: var(--acento);
    color: var(--blanco);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    align-self: flex-end;
    transition: opacity 0.2s;
}

.btn-enviar:hover { opacity: 0.85; }

.contacto-ok {
    display: none;
    text-align: center;
    color: #22a06b;
    font-size: 0.9rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .contacto { padding: 3.5rem 1.5rem; }
    .btn-enviar { align-self: stretch; text-align: center; }
}


/* ── FOOTER ──────────────────────────────────── */
footer {
    background: var(--negro);
    color: rgba(255,255,255,0.4);
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
}

.footer-links {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ── ANIMACIONES ────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }


/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
    nav {
        padding: 0 1.5rem;
    }
}
