:root{
    --wine:#5f2f43;
    --wine-soft:#744257;
    --ink:#201c1f;
    --muted:#7b7478;
    --line:#e8e3e5;
    --soft:#faf9f9;
}

body{
    background:#fff;
}

.winery-page{
    background:#fff;
    color:var(--ink);
}

.winery-breadcrumb-wrap{
    border-bottom:1px solid var(--line);
    background:#fff;
}

.winery-breadcrumb{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:42px;
    margin:0;
    font-size:12px;
    line-height:1;
    white-space:nowrap;
    overflow:hidden;
}

.winery-breadcrumb a{
    color:#6f686c;
    font-weight:600;
    text-decoration:none;
}

.winery-breadcrumb .sep{
    color:#b3acae;
    font-size:14px;
}

.winery-breadcrumb .current{
    color:#90898d;
    overflow:hidden;
    text-overflow:ellipsis;
}

.winery-profile{
    padding:36px 0 72px;
}

.winery-main{
    width:100%;
}

/* Cabecera de viña: aprovecha el ancho, sin texto redundante */
.winery-brand{
    width:100%;
    max-width:1160px;
    margin:0 auto;
    padding-bottom:34px;
    border-bottom:1px solid var(--line);
    text-align:center;
}

.winery-logo-box{
    min-height:145px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:18px;
}

.winery-logo-box img{
    display:block;
    width:auto;
    max-width:310px;
    max-height:135px;
    object-fit:contain;
}

.winery-brand h1{
    margin:0 auto 22px;
    max-width:980px;
    color:var(--ink);
    font-size:clamp(34px,3.5vw,48px);
    line-height:1.06;
    letter-spacing:-.03em;
}

.winery-description{
    width:100%;
    max-width:960px;
    margin:0 auto;
    color:#595256;
    font-size:16px;
    line-height:1.75;
    text-align:left;
}

/* El perfil se lee como una pieza editorial continua.
   Nada de columnas, porque cortaban Historia y Viñedos en lugares absurdos. */
.winery-description p{
    margin:0 0 16px;
}

.winery-description p:last-child{
    margin-bottom:0;
}

.winery-description h2,
.winery-description h3,
.winery-description h4,
.winery-description h5{
    margin:30px 0 10px;
    color:var(--ink);
    font-weight:650;
    line-height:1.2;
}

.winery-description h2{
    font-size:25px;
}

.winery-description h3,
.winery-description h4{
    font-size:20px;
}

.winery-description h5{
    font-size:17px;
}

/* Datos iniciales de la viña */
.winery-description strong{
    color:var(--ink);
    font-weight:650;
}

.winery-description a{
    color:var(--wine);
    text-decoration:none;
}

.winery-description a:hover{
    text-decoration:underline;
}

.winery-description img{
    display:block;
    width:100%;
    max-width:960px;
    height:auto;
    margin:24px auto 28px;
    border-radius:6px;
}

.winery-description ul,
.winery-description ol{
    margin:8px 0 18px;
    padding-left:20px;
}

.winery-description li{
    margin-bottom:6px;
}

/* Vinos */
.winery-wines{
    max-width:1160px;
    margin:36px auto 0;
}

.winery-wines-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}

.winery-wines-head h2{
    margin:0;
    color:var(--ink);
    font-size:24px;
    line-height:1.2;
    font-weight:650;
}

.winery-year-tabs{
    display:flex;
    align-items:center;
    gap:4px;
    border-bottom:1px solid var(--line);
}

.winery-year-tab{
    appearance:none;
    border:0;
    border-bottom:2px solid transparent;
    padding:7px 10px 8px;
    background:transparent;
    color:#827a7e;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}

.winery-year-tab:hover{
    color:var(--wine);
}

.winery-year-tab.active{
    border-bottom-color:var(--wine);
    color:var(--wine);
}

/* Cards compactas */
.winery-wine-list{
    display:none;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:14px;
}

.winery-wine-list.active{
    display:grid;
}

.winery-wine-card{
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:7px;
    background:#fff;
    transition:border-color .16s ease, transform .16s ease;
}

.winery-wine-card:hover{
    transform:translateY(-2px);
    border-color:#d4c8cd;
}

.winery-wine-image{
    position:relative;
    height:175px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    padding:14px 14px 10px;
    background:#fbfafb;
    border-bottom:1px solid var(--line);
    text-decoration:none;
}

.winery-wine-image .wine-bottle{
    display:block;
    width:auto;
    height:150px;
    max-width:72%;
    object-fit:contain;
}

.winery-wine-image .wine-seal{
    position:absolute;
    top:8px;
    right:8px;
    width:48px;
    height:48px;
    object-fit:contain;
}

.winery-wine-copy{
    padding:11px 12px 12px;
}

.winery-wine-copy h3{
    margin:0 0 7px;
    min-height:34px;
    font-size:13px;
    line-height:1.28;
    font-weight:650;
}

.winery-wine-copy h3 a{
    color:var(--ink);
    text-decoration:none;
}

.winery-wine-copy h3 a:hover{
    color:var(--wine);
}

.winery-wine-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    color:var(--muted);
    font-size:11px;
}

.winery-wine-meta a{
    color:var(--wine);
    font-weight:700;
    text-decoration:none;
}

@media (max-width:1199.98px){
    .winery-wine-list{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}

@media (max-width:991.98px){
    .winery-wine-list{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media (max-width:767.98px){
    .winery-profile{
        padding-top:28px;
    }

    .winery-brand{
        padding-bottom:28px;
    }

    .winery-logo-box{
        min-height:120px;
        margin-bottom:14px;
    }

    .winery-logo-box img{
        max-width:245px;
        max-height:110px;
    }

    .winery-brand h1{
        font-size:32px;
        margin-bottom:18px;
    }

    .winery-description{
        font-size:15px;
        line-height:1.68;
    }

    .winery-wines-head{
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
    }

    .winery-wine-list{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .winery-wine-image{
        height:165px;
    }

    .winery-wine-image .wine-bottle{
        height:140px;
    }

    .winery-wine-image .wine-seal{
        width:44px;
        height:44px;
    }
}

@media (max-width:420px){
    .winery-wine-copy h3{
        min-height:0;
    }
}
