/* ==========================================================
   CABALLOS ALTO CIERZO
   style.css
========================================================== */

/* ---------- VARIABLES ---------- */

:root{

    --primary:#CC7722;
    --secondary:#613118;
    --background:#F0EAD6;
    --text:#363636;
    --accent:#9EA996;

    --white:#ffffff;

    --shadow:0 12px 35px rgba(0,0,0,.10);

    --transition:.35s ease;

    --radius:18px;

}

/* ---------- RESET ---------- */

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    color:var(--text);

    background:white;

    line-height:1.7;

}

img{

    width:100%;
    display:block;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

.section{

    padding:110px 0;

}

/* ---------- TITULOS ---------- */


h1,h2,h3{

    font-family:'Cormorant Garamond',serif;

    color:var(--secondary);

}

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-title h2{

    font-size:3.4rem;

    font-weight:700;

}

.section-title p{

    max-width:720px;

    margin:auto;

    color:#666;

}

/* ---------- NAVBAR ---------- */

.navbar-custom{

    background:rgba(255,255,255,.94);

    backdrop-filter:blur(10px);

    padding:18px 0;

    transition:.4s;

    box-shadow:0 2px 12px rgba(0,0,0,.05);

}

.navbar-brand{

    display:flex;

    flex-direction:column;

    line-height:1;

}

.brand-small{

    letter-spacing:6px;

    color:var(--primary);

    font-size:.70rem;

    font-weight:600;

}

.brand-big{

    font-family:'Cormorant Garamond',serif;

    font-size:2rem;

    color:var(--secondary);

    font-weight:700;

}

.nav-link{

    color:var(--text);

    margin-left:20px;

    font-weight:500;

    transition:var(--transition);

}

.nav-link:hover{

    color:var(--primary);

}

/* ---------- BOTONES ---------- */

.btn-custom{

    display:inline-block;

    padding:15px 40px;

    background:var(--primary);

    color:var(--background);

    border-radius:50px;

    transition:var(--transition);

    font-weight:600;

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

}

.btn-custom:hover{

    background:var(--secondary);

    color:var(--background);

    transform:translateY(-3px);

}

/*====================================
HERO
====================================*/
.hero{

    position:relative;

    height:100vh;

    overflow:hidden;

    display:flex;

    align-items:center;

}

.hero-video{

    position:absolute;

    inset:0;

    z-index:0;

    width:100%;

    height:100%;

    object-fit:cover;

    transform:scale(1.05);

    transition:transform .15s ease;

}

.hero-overlay{

    position:absolute;

    inset:0;

    z-index:1;

    background:
            linear-gradient(
                    rgba(0,0,0,.48),
                    rgba(0,0,0,.68)
            );

    pointer-events:none;

}

/*========================================
 HERO NUEVO
========================================*/

.hero{

    position:relative;
    height:100vh;
    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#F0EAD6;

}

/* Gradiente muy suave */

.hero::before{

    content:"";

    position:absolute;
    inset:0;

    z-index:2;

    background:

            radial-gradient(circle at 20% 20%, rgba(204,119,34,.08), transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(97,49,24,.05), transparent 45%),
            radial-gradient(circle at 50% 90%, rgba(158,169,150,.08), transparent 50%);

}

/* SVG */

.topography{

    position:absolute;
    inset:0;

}

#topo-svg{

    width:110%;
    height:110%;

}

#topo-svg path{

    fill:none;

    stroke:#61311822;

    stroke-width:2;

    vector-effect:non-scaling-stroke;

}

.hero-content{

    position:relative;

    z-index:50;

    max-width:750px;

    text-align:center;

    color:var(--background);

}

.hero-top{

    letter-spacing:8px;

    color:var(--primary);

    font-size:.9rem;

    font-weight:600;

    text-shadow:0 2px 14px var(--text);

}

.hero h1{

    font-size:7rem;

    margin:20px 0;

    color:var(--background);

    text-shadow:0 4px 24px var(--text);

}

.hero p{

    font-size:1.2rem;

    max-width:600px;

    margin:auto auto 40px;

    color:var(--background);

    text-shadow:0 2px 16px var(--text);

}
#terrain{

    position:absolute;

    inset:0;

    z-index:3;

    width:100%;

    height:100%;

}

.light{

    position:absolute;

    z-index:4;

    width:700px;

    height:700px;

    border-radius:50%;

    pointer-events:none;

    filter:blur(120px);

    background:rgba(204,119,34,.08);

    transform:translate(-50%,-50%);

    transition:.25s;

}

.hero{

    background:#F0EAD6;

    overflow:hidden;

    position:relative;

}

.btn-card{

    display:inline-block;

    margin-top:20px;

    color:var(--primary);

    font-weight:600;

}

.btn-card:hover{

    color:var(--secondary);

}

/* ---------- CARRUSEL CABALLOS ---------- */

.horses-carousel{

    position:relative;

    width:min(94vw, 1720px);

    margin:0 calc(50% - min(47vw, 860px));

    padding:0 76px 56px;

}

.carousel-stage{

    overflow:hidden;

    border-radius:8px;

}

.carousel-track{

    display:flex;

    transition:transform .7s cubic-bezier(.22,1,.36,1);

    will-change:transform;

}

.horse-slide{

    flex:0 0 100%;

    padding:8px;

}

.horse-showcase{

    position:relative;

    min-height:640px;

    overflow:hidden;

    border-radius:8px;

    background:var(--text);

    box-shadow:0 26px 70px rgba(54,54,54,.18);

    isolation:isolate;

}

.horse-showcase::before{

    content:"";

    position:absolute;

    inset:0;

    z-index:1;

    background:
            linear-gradient(90deg, rgba(54,54,54,.86), rgba(54,54,54,.35) 44%, rgba(54,54,54,.08)),
            linear-gradient(0deg, rgba(97,49,24,.34), transparent 46%);

}

.horse-showcase img{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

    transform:scale(1.04);

    transition:transform .9s ease;

}

.horse-slide.is-active .horse-showcase img{

    transform:scale(1);

}

.horse-panel{

    position:relative;

    z-index:2;

    width:min(470px, 92%);

    min-height:560px;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:54px;

    color:var(--background);

}

.horse-kicker{

    margin-bottom:18px;

    color:var(--primary);

    font-size:.78rem;

    font-weight:600;

    letter-spacing:5px;

    text-transform:uppercase;

}

.horse-panel h3{

    color:var(--background);

    font-size:4.7rem;

    line-height:.92;

    margin-bottom:24px;

}

.horse-meta{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:24px;

}

.horse-meta span{

    padding:8px 12px;

    border:1px solid rgba(240,234,214,.34);

    border-radius:999px;

    background:rgba(240,234,214,.08);

    color:var(--background);

    font-size:.82rem;

}

.horse-description{

    max-width:390px;

    margin-bottom:30px;

    color:var(--background);

    font-size:1.02rem;

}

.horse-cta{

    align-self:flex-start;

    display:inline-flex;

    align-items:center;

    gap:12px;

    color:var(--background);

    font-weight:600;

}

.horse-cta span{

    display:grid;

    place-items:center;

    width:38px;

    height:38px;

    border-radius:50%;

    background:var(--primary);

    color:var(--background);

    transition:var(--transition);

}

.horse-cta:hover{

    color:var(--background);

}

.horse-cta:hover span{

    background:var(--secondary);

    transform:translateX(4px);

}

.carousel-arrow{

    position:absolute;

    top:45%;

    z-index:5;

    width:52px;

    height:52px;

    border:1px solid rgba(97,49,24,.18);

    border-radius:50%;

    background:var(--background);

    color:var(--secondary);

    font-size:2.4rem;

    line-height:1;

    display:grid;

    place-items:center;

    cursor:pointer;

    transition:var(--transition);

    box-shadow:0 16px 36px rgba(54,54,54,.12);

}

.carousel-arrow:hover{

    background:var(--primary);

    color:var(--background);

    transform:translateY(-3px);

}

.carousel-prev{

    left:0;

}

.carousel-next{

    right:0;

}

.carousel-dots{

    position:absolute;

    left:50%;

    bottom:0;

    display:flex;

    gap:12px;

    transform:translateX(-50%);

}

.carousel-dot{

    width:34px;

    height:4px;

    border:0;

    border-radius:999px;

    background:rgba(97,49,24,.24);

    cursor:pointer;

    transition:var(--transition);

}

.carousel-dot.is-active{

    width:58px;

    background:var(--primary);

}

.carousel-empty{

    padding:70px 30px;

    border:1px solid rgba(97,49,24,.16);

    border-radius:8px;

    background:var(--background);

    text-align:center;

    color:var(--secondary);

}

/* ---------- CARDS ---------- */

.horse-card{

    background:white;

    border-radius:var(--radius);

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.horse-card:hover{

    transform:translateY(-10px);

}

.horse-card img{

    height:340px;

    object-fit:cover;

    transition:.5s;

}

.horse-card:hover img{

    transform:scale(1.06);

}

.horse-info{

    padding:30px;

}

.horse-info h3{

    font-size:2rem;

    margin-bottom:8px;

}

.horse-info p{

    color:#666;

}

/* ---------- FILOSOFÍA ---------- */

.values{

    background:var(--background);

    padding:110px 0;

}

.values .col-md-4{

    text-align:center;

    padding:20px 40px;

}

.values h3{

    font-size:2.2rem;

    margin-bottom:20px;

}

.values p{

    color:#555;

}

/* ---------- FOOTER ---------- */

footer{

    background:#222;

    color:white;

    text-align:center;

    padding:60px 0;

}

footer h3{

    color:white;

    font-size:2rem;

    margin-bottom:10px;

}

footer p{

    opacity:.8;

}

/* ---------- ANIMACIONES ---------- */

.horse-card,
.values .col-md-4,
.section-title{

    animation:fadeUp .8s ease both;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ---------- SCROLLBAR ---------- */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

}

::-webkit-scrollbar-track{

    background:#eee;

}
/* ==========================================================
FICHA CABALLO
========================================================== */

.horse-header{

    padding-top:160px;
    padding-bottom:90px;

}

.main-image{

    border-radius:20px;

    box-shadow:var(--shadow);

    height:620px;

    object-fit:cover;

}

.subtitle{

    font-size:1.2rem;

    color:var(--primary);

    margin:20px 0;

}

.price{

    font-size:2.7rem;

    font-family:'Cormorant Garamond', serif;

    margin-top:40px;

    color:var(--secondary);

}

.gallery img{

    height:220px;

    object-fit:cover;

    border-radius:15px;

    cursor:pointer;

    transition:.35s;

}

.gallery img:hover{

    transform:scale(1.04);

}

.table{

    margin-top:30px;

}

.table td{

    padding:18px;

    font-size:1rem;

}

.table td:first-child{

    font-weight:600;

    color:var(--secondary);

    width:180px;

}

.video-section{

    background:var(--background);

}

.ideal-box{

    background:white;

    padding:60px;

    border-radius:20px;

    box-shadow:var(--shadow);

}

.contact-box{

    background:var(--background);

}

.horse-detail-page{
    background:var(--accent);
}

#terrain.detail-terrain{
    position:fixed;
    inset:0;
    z-index:0;
    width:100%;
    height:100%;
    pointer-events:none;
    opacity:.32;
}

.horse-detail{
    position:relative;
    z-index:5;
    width:min(92vw, 1500px);
    margin:0 auto;
    padding:120px 0 42px;
}

.horse-detail-page .navbar-custom,
.horse-detail,
footer{
    position:relative;
    z-index:1;
}

.detail-hero{
    display:grid;
    grid-template-columns:minmax(0, .8fr) minmax(420px, 1.2fr);
    gap:34px;
    align-items:start;
}

.detail-back,
.detail-kicker{
    color:var(--secondary);
    font-size:.82rem;
    font-weight:600;
    letter-spacing:4px;
    text-transform:uppercase;
}

.detail-hero h1{
    margin:18px 0;
    font-size:6.2rem;
    line-height:.9;
}

.detail-description{
    max-width:620px;
    margin-bottom:22px;
    color:var(--text);
}

.detail-price{
    margin-bottom:22px;
    color:var(--secondary);
    font-family:'Cormorant Garamond', serif;
    font-size:2.5rem;
    font-weight:700;
}

.detail-image-wrap{
    position:relative;
    z-index:10;
    border-radius:8px;
    background:var(--accent);
    box-shadow:0 26px 70px rgba(54,54,54,.2);
    overflow:hidden;
}

.detail-main-image{
    height:620px;
    border-radius:8px;
    object-fit:cover;
}

.detail-grid{
    display:grid;
    grid-template-columns:.75fr 1.25fr;
    gap:32px;
    margin-top:34px;
}

.detail-grid h2,
.instagram-feed h2,
.detail-contact h2{
    margin-bottom:18px;
    font-size:2.8rem;
}

.detail-info{
    display:grid;
    gap:10px;
    margin:0;
}

.detail-info div{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:12px 0;
    border-bottom:1px solid rgba(97,49,24,.22);
}

.detail-info dt{
    color:var(--secondary);
    font-weight:600;
}

.detail-info dd{
    margin:0;
}

.detail-gallery{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:12px;
}

.detail-gallery button{
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
}

.detail-gallery img{
    height:180px;
    border-radius:8px;
    object-fit:cover;
    transition:var(--transition);
}

.detail-gallery button:hover img{
    transform:translateY(-4px);
}

.instagram-feed,
.detail-contact{
    margin-top:34px;
    padding:32px;
    border-radius:8px;
    background:rgba(255, 255, 255, 1.0);
}

.instagram-feed iframe{
    width:100%;
    height:520px;
    margin-bottom:18px;
    border:0;
    border-radius:8px;
    background:var(--background);
}

.image-modal{
    position:fixed;
    inset:0;
    z-index:2000;
    display:none;
    place-items:center;
    padding:36px;
    background:rgba(0,0,0,.76);
}

.image-modal.is-open{
    display:grid;
}

.image-modal img{
    width:min(86vw, 980px);
    max-height:78vh;
    border-radius:8px;
    object-fit:contain;
}

.modal-close{
    position:absolute;
    top:24px;
    right:28px;
    border:0;
    background:transparent;
    color:var(--background);
    font-size:2.6rem;
    cursor:pointer;
}

@media (max-width: 900px){
    .detail-hero,
    .detail-grid{
        grid-template-columns:1fr;
    }

    .detail-hero h1{
        font-size:4rem;
    }

    .detail-main-image{
        height:430px;
    }

    .detail-gallery{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width: 992px){

    .horses-carousel{
        padding:0 58px 54px;
    }

    .horse-showcase,
    .horse-panel{
        min-height:500px;
    }

    .horse-panel{
        padding:42px;
    }

    .horse-panel h3{
        font-size:3.9rem;
    }

}

@media (max-width: 768px){

    .horses-carousel{
        padding:0 0 50px;
    }

    .carousel-stage{
        overflow:visible;
    }

    .horse-slide{
        padding:0;
    }

    .horse-showcase,
    .horse-panel{
        min-height:560px;
    }

    .horse-showcase::before{
        background:
                linear-gradient(0deg, rgba(54,54,54,.88), rgba(54,54,54,.34) 70%, rgba(54,54,54,.12)),
                linear-gradient(0deg, rgba(97,49,24,.28), transparent 52%);
    }

    .horse-panel{
        width:100%;
        justify-content:flex-end;
        padding:34px 26px;
    }

    .horse-kicker{
        letter-spacing:3px;
    }

    .horse-panel h3{
        font-size:3.2rem;
    }

    .horse-description{
        font-size:.98rem;
    }

    .carousel-arrow{
        top:auto;
        bottom:-4px;
        width:44px;
        height:44px;
        font-size:2rem;
    }

    .carousel-prev{
        left:18px;
    }

    .carousel-next{
        right:18px;
    }

}

@media (max-width: 480px){

    .horse-showcase,
    .horse-panel{
        min-height:510px;
    }

    .horse-panel{
        padding:28px 22px;
    }

    .horse-panel h3{
        font-size:2.7rem;
    }

    .horse-meta span{
        font-size:.78rem;
    }

}
