/* ==========================================================================
   Marchena Fotografía — identidad visual 2027
   Unifica la web con los PDFs de paquetes (Cormorant Garamond + Jost,
   fondo crema, tinta cálida y acento café).
   Este archivo se carga DESPUÉS de los estilos propios de cada página,
   por lo que sobrescribe colores y tipografías heredadas.
   ========================================================================== */

:root {
    --crema: #f2ede7;
    --papel: #e8e2d8;
    --linea: #cfc6b9;
    --tinta: #1e1b18;
    --texto: #2b2722;
    --gris: #5e564d;
    --cafe: #8b6b4a;
    --noche: #1d1b17;

    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

    /* variables heredadas de las páginas anteriores */
    --color-primary: var(--tinta);
    --color-secondary: var(--cafe);
    --color-text: var(--texto);
    --color-muted: var(--gris);
    --color-accent: var(--linea);
    --color-bg: var(--crema);
    --color-border: var(--linea);
    --container: 1180px;
}

/* ---------- Base ---------- */

body {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--texto);
    background: var(--crema);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.section-title,
.hero h1,
.hero-overlay h1 {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--tinta);
    letter-spacing: 0;
}

h1 em, h2 em, h3 em, .acento {
    font-style: italic;
    color: var(--cafe);
}

p, li, .section-text, .value-copy p, .video-copy p {
    color: var(--gris);
}

strong { font-weight: 500; color: var(--texto); }

::selection { background: var(--papel); }

.container { width: min(100% - 48px, var(--container)); }

.eyebrow,
.etiqueta {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--cafe);
}

/* ---------- Encabezado ---------- */

.header {
    background: var(--crema);
    border-bottom: 1px solid var(--linea);
    padding: 0;
}

.header .nav,
.nav {
    padding: 22px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.logo:hover img { opacity: 0.75; }

.nav-links a {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--texto);
    white-space: nowrap;
}

.nav-links a::after { background: var(--cafe); }

.nav-links a[aria-current="page"]::after { width: 100%; }

/* Encabezado sobre la foto (inicio) */
.header--over {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.28);
}

.header--over .logo img { filter: brightness(0) invert(1); }

.header--over .nav-links a { color: rgba(255, 255, 255, 0.94); }

.header--over .nav-links a::after { background: #fff; }

/* ---------- Botones ---------- */

.btn,
.btn-outline,
button.btn {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    min-height: 50px;
    padding: 0 30px;
    border-radius: 0;
    cursor: pointer;
}

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

.btn:hover {
    background: var(--cafe);
    border-color: var(--cafe);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

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

.btn-linea:hover {
    background: var(--tinta);
    color: #fff;
}

.service-link {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--cafe);
    border-bottom: 1px solid var(--linea);
    padding-bottom: 4px;
}

/* ---------- Héroe ---------- */

.hero h1,
.hero-overlay h1 {
    font-weight: 400;
    line-height: 1.04;
}

.hero p { font-weight: 300; }

.hero-overlay .eyebrow,
.hero .hero-inner .eyebrow { color: rgba(255, 255, 255, 0.85); }

.hero-overlay h1 { color: #fff; }

.hero-overlay h1 em { color: #e9dccb; }

.hero-overlay p { color: rgba(255, 255, 255, 0.88); }

.hero-inner {
    background: transparent;
}

/* Inicio: velo cálido para que el texto se lea sobre la foto */
.header--over + main .hero::after {
    background: linear-gradient(rgba(29, 27, 23, 0.45), rgba(29, 27, 23, 0.25) 45%, rgba(29, 27, 23, 0.55));
}

.hero-inner h1 {
    font-size: clamp(44px, 6.4vw, 80px);
    text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}

.hero-inner p { color: rgba(255, 255, 255, 0.9); }

.hero-inner h1 { color: #fff; }

.hero-inner h1 em { color: #e9dccb; }

/* ---------- Tarjetas y bloques ---------- */

.service-card,
.pricing-card,
.portfolio-card,
.value-note,
.notes-box,
.testimonial,
.video-card {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--linea);
    border-radius: 0;
}

.service-card:hover,
.pricing-card:hover,
.portfolio-card:hover {
    box-shadow: none;
}

.service-body,
.pricing-body,
.portfolio-body {
    padding: 22px 0 0;
}

.service-card img,
.pricing-card img,
.portfolio-card img { margin-top: 0; }

.service-body h3,
.pricing-body h2,
.portfolio-body h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 34px;
    color: var(--tinta);
}

.desde {
    display: block;
    margin: -4px 0 14px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cafe);
}

.value-note {
    background: var(--papel);
    border-top: 0;
    padding: 32px;
}

.value-note h3 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
}

.testimonial {
    padding: 28px 0 0;
}

.testimonial p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 21px;
    line-height: 1.5;
    color: var(--texto);
}

.testimonial span {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--cafe);
}

.video-embed,
.video-frame {
    background: var(--papel);
    border: 0;
}

.values div,
.values > * {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--linea);
    border-radius: 0;
    color: var(--texto);
}

/* ---------- Formularios ---------- */

input,
select,
textarea {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--texto);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--linea);
    border-radius: 0;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-bottom-color: var(--cafe);
}

label { color: var(--gris); font-size: 13px; }

/* ---------- Llamado final ---------- */

.cta {
    background: var(--noche);
    color: #fff;
}

.cta h2,
.cta .section-title { color: #fff; }

.cta h2 em { color: #d9c4a8; }

.cta p,
.cta .section-text { color: rgba(255, 255, 255, 0.78); }

.cta .eyebrow { color: #c9b08f !important; }

.cta .btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
}

.cta .btn:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Pie de página (como el cierre de los PDFs) ---------- */

.footer {
    background: var(--crema);
    border-top: 1px solid var(--linea);
    padding: 56px 0 36px;
}

.footer-marca {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--linea);
}

.footer-marca img {
    height: 58px;
    width: auto;
}

.footer-contacto {
    display: grid;
    gap: 2px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--texto);
    text-align: right;
}

.footer-contacto a:hover { color: var(--cafe); }

.footer-legal {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gris);
}

/* ---------- Responsivo ---------- */

@media (max-width: 980px) {
    .logo img { height: 46px; }

    .header .nav {
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
    }
}

@media (max-width: 640px) {
    .container { width: min(100% - 32px, var(--container)); }

    .logo img { height: 42px; }

    .nav-links a { font-size: 10px; letter-spacing: 0.18em; }

    .footer-marca {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-contacto { text-align: center; }

    .footer-legal { justify-content: center; text-align: center; }
}
