/* =========================================================
   BODEGA PULMARY â€” STYLE.CSS
   DiseÃ±o elegante, responsive y compatible con index.html
   ========================================================= */

:root {
    --vino: #5b1f2a;
    --vino-oscuro: #351218;
    --dorado: #c5a15b;
    --crema: #f6f1e8;
    --crema-claro: #fbf9f5;
    --negro: #171717;
    --gris: #625f5a;
    --blanco: #ffffff;
    --borde: rgb(0, 0, 0);
    --sombra: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--crema-claro);
    color: var(--negro);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

section {
    scroll-margin-top: 100px;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 96px;
    padding: 14px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 1px solid rgba(251, 251, 248, 0.08);
    transition: background .35s ease, min-height .35s ease, box-shadow .35s ease;
}

.logo {
    flex-shrink: 0;
}

.logo img {

    height: 66px;

    width: auto;

    object-fit: contain;

    border: none;

    outline: none;

    box-shadow: none;

    background: transparent;

}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 22px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: var(--blanco);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    padding: 8px 0;
    transition: color .25s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 1px;
    background: var(--dorado);
    transition: width .3s ease;
}

nav a:hover {
    color: var(--dorado);
}

nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vino-oscuro);
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.48)),
        linear-gradient(to right, rgba(53,18,24,.25), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(900px, 90%);
    text-align: center;
    color: var(--blanco);
    padding-top: 70px;
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(72px, 11vw, 138px);
    line-height: .85;
    font-weight: 600;
    letter-spacing: .11em;
    margin-left: .11em;
    text-shadow: 0 5px 25px rgba(0,0,0,.28);
}

.hero-content h3 {
    margin-top: 28px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #f2e7d2;
}

.hero-content p {
    max-width: 720px;
    margin: 28px auto 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    line-height: 1.5;
    font-weight: 400;
}

.buttons {
    margin-top: 42px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    min-width: 190px;
    padding: 15px 28px;
    border-radius: 2px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-weight: 600;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.gold,
.gold {
    background: var(--dorado);
    color: var(--vino-oscuro);
    border: 1px solid var(--dorado);
}

.btn.gold:hover,
.gold:hover {
    background: #d7ba7e;
    border-color: #d7ba7e;
}

.btn.transparent,
.transparent {
    background: rgba(0,0,0,.08);
    color: var(--blanco);
    border: 1px solid rgba(255,255,255,.75);
}

.btn.transparent:hover,
.transparent:hover {
    background: var(--blanco);
    color: var(--vino-oscuro);
}

/* SECCIONES DE CONTENIDO */
#historia,
#familia,
#finca,
#bodega {
    padding: 115px 8%;
}

#historia,
#finca {
    background: var(--crema-claro);
}

#familia,
#bodega {
    background: var(--crema);
}

.container {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
    align-items: center;
}

.imagenes {
    position: relative;
}

.imagenes::before {
    content: "";
    position: absolute;
    width: 70%;
    height: 70%;
    left: -18px;
    bottom: -18px;
    border: 1px solid rgba(197,161,91,.55);
    z-index: 0;
}

.imagenes img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 570px;
    object-fit: cover;
    box-shadow: var(--sombra);
    transition: transform .55s ease, filter .55s ease;
}

.imagenes:hover img {
    transform: scale(1.012);
}

.texto {
    max-width: 560px;
}

.texto span {
    display: inline-block;
    color: var(--dorado);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.texto h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--vino-oscuro);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.03;
    font-weight: 600;
    margin-bottom: 30px;
}

.texto h2::after {
    content: "";
    display: block;
    width: 58px;
    height: 1px;
    background: var(--dorado);
    margin-top: 25px;
}

.texto p {
    color: var(--gris);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 18px;
}

blockquote {
    margin-top: 30px;
    padding: 22px 0 22px 25px;
    border-left: 2px solid var(--dorado);
    font-family: 'Cormorant Garamond', serif;
    font-size: 23px;
    font-style: italic;
    color: var(--vino);
}

/* VINOS */
/*=========================================
        SECCIÓN NUESTROS VINOS
=========================================*/

#vinos{
    padding:120px 6%;
    background:#111;
    color:#fff;
    text-align:center;
}

.vinos-texto{
    max-width:850px;
    margin:25px auto 70px;
    font-size:20px;
    color:#d8d8d8;
}

.vinos-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:45px;

    max-width:1500px;

    margin:auto;

}

.vino-card{

    background:#1b1b1b;

    border:1px solid rgba(197,161,91,.25);

    border-radius:12px;

    overflow:hidden;

    transition:.35s;

    box-shadow:0 15px 35px rgba(0,0,0,.30);

}

.vino-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 45px rgba(0,0,0,.45);

}

.vino-card h3{

    font-family:"Cormorant Garamond",serif;

    font-size:42px;

    margin:30px 0 20px;

    color:#c5a15b;

}

.vino-galeria{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:6px;

    padding:0 18px;

}

.vino-galeria img{

    width:100%;

    height:180px;

    object-fit:cover;

    transition:.4s;

    border-radius:5px;

}

.vino-galeria img:hover{

    transform:scale(1.08);

}

.vino-card p{

    padding:30px;

    color:#d7d7d7;

    line-height:1.8;

    font-size:15px;

}

.vino-botones{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

    padding:0 30px 35px;

}

.btn-ficha,
.btn-comprar{

    padding:13px 26px;

    text-decoration:none;

    border-radius:3px;

    transition:.3s;

    font-size:12px;

    letter-spacing:1px;

    text-transform:uppercase;

    font-weight:600;

}

.btn-ficha{

    background:transparent;

    border:1px solid #c5a15b;

    color:#c5a15b;

}

.btn-ficha:hover{

    background:#c5a15b;

    color:#111;

}

.btn-comprar{

    background:#c5a15b;

    color:#111;

}

.btn-comprar:hover{

    background:#ffffff;

}

.tienda-completa{

    margin-top:90px;

    background:#181818;

    border:1px solid rgba(197,161,91,.30);

    border-radius:15px;

    padding:60px;

}

.tienda-completa h3{

    font-family:"Cormorant Garamond",serif;

    font-size:55px;

    color:#c5a15b;

    margin-bottom:20px;

}

.tienda-completa p{

    color:#ddd;

    font-size:18px;

    max-width:750px;

    margin:0 auto 35px;

}

.btn-tienda{

    display:inline-block;

    background:#c5a15b;

    color:#111;

    text-decoration:none;

    padding:18px 45px;

    border-radius:4px;

    font-size:13px;

    letter-spacing:2px;

    text-transform:uppercase;

    font-weight:700;

    transition:.3s;

}

.btn-tienda:hover{

    background:#fff;

    transform:translateY(-3px);

}

/* TURISMO */
#turismo {
    padding: 120px 8%;
    text-align: center;
    background: var(--crema);
}

#turismo h2 {
    color: var(--vino-oscuro);
}

#turismo > p {
    width: min(760px, 100%);
    margin: 0 auto 18px;
    color: var(--gris);
    font-size: 15px;
    line-height: 1.9;
}

#turismo > p:first-of-type {
    font-family: 'Cormorant Garamond', serif;
    color: var(--vino);
    font-size: 23px;
    line-height: 1.6;
}

#turismo strong {
    color: var(--vino-oscuro);
}

/* GALERÃA */
#galeria {
    padding: 120px 5%;
    background: var(--crema-claro);
    text-align: center;
}

#galeria h2 {
    color: var(--vino-oscuro);
    margin-bottom: 50px;
}

.galeria-grid {
    width: min(1300px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.galeria-grid img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    transition: transform .5s ease, filter .5s ease;
}

.galeria-grid img:hover {
    transform: scale(.985);
    filter: brightness(.88);
}

/* CONTACTO */
#contacto {
    padding: 110px 8%;
    text-align: center;
    background: var(--blanco);
}

#contacto h2 {
    color: var(--vino-oscuro);
}

#contacto p {
    margin: 8px auto;
    color: var(--gris);
    font-size: 15px;
}

#contacto p:first-of-type {
    font-family: 'Cormorant Garamond', serif;
    color: var(--vino);
    font-size: 27px;
}

/* FOOTER */
footer {
    padding: 30px 5%;
    text-align: center;
    background: var(--vino-oscuro);
    color: rgba(255,255,255,.68);
    border-top: 1px solid rgba(197,161,91,.25);
}

footer p {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* SELECCIÃ“N DE TEXTO */
::selection {
    background: var(--vino);
    color: var(--blanco);
}

/* TABLET */
@media (max-width: 1050px) {
    header {
        padding-left: 4%;
        padding-right: 4%;
    }

    nav {
        gap: 14px;
    }

    nav a {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .container {
        gap: 45px;
    }

    .imagenes img {
        height: 500px;
    }
}

/* CELULAR / TABLET */
@media (max-width: 850px) {
    header {
        min-height: 78px;
        padding: 10px 22px;
        justify-content: center;
    }

    .logo img {
        height: 56px;
    }

    nav {
        display: none;
    }

    .hero {
        min-height: 650px;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-content h1 {
        font-size: clamp(62px, 18vw, 95px);
        letter-spacing: .06em;
        margin-left: .06em;
    }

    .hero-content h3 {
        font-size: 10px;
        letter-spacing: 2.2px;
        line-height: 1.7;
    }

    .hero-content p {
        font-size: 21px;
    }

    #historia,
    #familia,
    #finca,
    #bodega {
        padding: 85px 7%;
    }

    .container,
    .container.reverse {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    #familia .texto,
    #bodega .texto {
        order: 2;
    }

    #familia .imagenes,
    #bodega .imagenes {
        order: 1;
    }

    .texto {
        max-width: none;
    }

    .imagenes img {
        height: min(110vw, 560px);
    }

    #vinos,
    #turismo,
    #galeria,
    #contacto {
        padding-top: 85px;
        padding-bottom: 85px;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .galeria-grid img {
        height: 70vw;
        max-height: 500px;
    }
}

/* CELULARES PEQUEÃ‘OS */
@media (max-width: 520px) {
    .hero-content {
        width: 88%;
    }

    .hero-content h1 {
        font-size: 58px;
    }

    .hero-content h3 {
        margin-top: 20px;
    }

    .hero-content p {
        margin-top: 22px;
        font-size: 19px;
    }

    .buttons {
        margin-top: 32px;
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .texto h2 {
        font-size: 42px;
    }

    .texto p {
        font-size: 14px;
    }

    .imagenes::before {
        left: -9px;
        bottom: -9px;
    }

    #vinos > p,
    #turismo > p:first-of-type {
        font-size: 20px;
    }

    footer {
        padding: 25px 8%;
    }
}

/* ACCESIBILIDAD: reduce animaciones si el dispositivo lo solicita */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}