@charset "utf-8";
.detail-page{
    background:#0B0B0B;
    color:#fff;
    padding-top:78px;
}

.detail-hero{
    padding:70px 20px;
    background:
    radial-gradient(circle at top left, rgba(212,175,55,.12), transparent 35%),
    #0B0B0B;
}

.detail-container{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:45px;
    align-items:center;
}

.detail-gallery{
    width:100%;
}

.main-photo{
    width:100%;
    height:540px;
    border-radius:28px;
    overflow:hidden;
    border:1px solid rgba(212,175,55,.18);
    box-shadow:0 30px 80px rgba(0,0,0,.55);
}

.main-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.thumbs{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:14px;
    margin-top:14px;
}

.thumbs img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:18px;
    cursor:pointer;
    opacity:.65;
    border:2px solid transparent;
    transition:.3s ease;
}

.thumbs img.active,
.thumbs img:hover{
    opacity:1;
    border-color:#D4AF37;
}

.detail-info{
    background:#151515;
    border:1px solid rgba(212,175,55,.16);
    border-radius:28px;
    padding:34px;
    box-shadow:0 25px 60px rgba(0,0,0,.35);
}

.detail-badge{
    display:inline-flex;
    background:rgba(212,175,55,.12);
    border:1px solid rgba(212,175,55,.28);
    color:#D4AF37;
    padding:8px 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:1.5px;
    margin-bottom:18px;
}

.detail-info h1{
    font-size:42px;
    line-height:1.1;
    margin-bottom:12px;
}

.detail-location{
    color:#aaa;
    margin-bottom:18px;
}

.detail-location i{
    color:#D4AF37;
    margin-right:6px;
}

.detail-price{
    color:#D4AF37;
    font-size:34px;
    font-weight:900;
    margin-bottom:20px;
}

.detail-description{
    color:#ccc;
    font-size:15px;
    line-height:1.8;
    margin-bottom:26px;
}

.detail-actions{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.whatsapp-btn,
.video-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    text-decoration:none;
    padding:15px 18px;
    border-radius:999px;
    font-weight:900;
    transition:.3s ease;
}

.whatsapp-btn{
    background:#25D366;
    color:#050505;
}

.video-btn{
    background:#fff;
    color:#050505;
}

.whatsapp-btn:hover,
.video-btn:hover{
    transform:translateY(-2px);
}

.horse-details-section{
    padding:20px 20px 90px;
    background:#0B0B0B;
}

.details-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
}

.details-card{
    background:#151515;
    border:1px solid rgba(212,175,55,.14);
    border-radius:28px;
    padding:30px;
}

.details-card h2{
    font-size:24px;
    margin-bottom:22px;
}

.info-list{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.info-list div{
    background:#101010;
    border:1px solid rgba(255,255,255,.06);
    border-radius:18px;
    padding:16px;
}

.info-list span{
    display:block;
    color:#999;
    font-size:12px;
    margin-bottom:6px;
}

.info-list strong{
    color:#fff;
    font-size:14px;
}

.owner-box{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:22px;
}

.owner-icon{
    width:58px;
    height:58px;
    border-radius:50%;
    background:linear-gradient(135deg,#D4AF37,#F5D76E);
    color:#050505;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
}

.owner-box h3{
    font-size:18px;
    margin-bottom:4px;
}

.owner-box p{
    color:#aaa;
    font-size:14px;
}

.contact-list p{
    color:#ccc;
    margin-bottom:12px;
    font-size:14px;
}

.contact-list i{
    color:#D4AF37;
    margin-right:8px;
}

@media(max-width:900px){
    .detail-container,
    .details-grid{
        grid-template-columns:1fr;
    }

    .main-photo{
        height:430px;
    }
}

@media(max-width:600px){
    .detail-hero{
        padding:40px 15px;
    }

    .detail-info{
        padding:24px;
    }

    .detail-info h1{
        font-size:32px;
    }

    .detail-price{
        font-size:28px;
    }

    .main-photo{
        height:330px;
        border-radius:22px;
    }

    .thumbs img{
        height:85px;
        border-radius:14px;
    }

    .info-list{
        grid-template-columns:1fr;
    }

    .details-card{
        padding:24px;
    }
}/* CSS Document */
.video-thumb{
    height:120px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#111;
    color:#fff;
    font-size:22px;
    cursor:pointer;
    border:2px solid rgba(255,255,255,.1);
    transition:.3s;
}

.video-thumb:hover{
    border-color:#D4AF37;
    color:#D4AF37;
}

.main-photo iframe{
    width:100%;
    height:100%;
    border:none;
}
.pro-gallery{
    position:relative;
}

.gallery-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:44px;
    height:44px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,.55);
    color:#fff;
    font-size:34px;
    cursor:pointer;
    z-index:5;
    transition:.3s ease;
}

.gallery-arrow:hover{
    background:#D4AF37;
    color:#050505;
}

.gallery-prev{
    left:16px;
}

.gallery-next{
    right:16px;
}

.gallery-counter{
    position:absolute;
    top:16px;
    right:16px;
    z-index:6;
    background:rgba(0,0,0,.65);
    color:#fff;
    border:1px solid rgba(212,175,55,.35);
    padding:7px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    backdrop-filter:blur(8px);
}

.pro-gallery img{
    cursor:pointer;
}

.video-thumb{
    height:120px;
    border-radius:18px;
    display:flex;
    flex-direction:column;
    gap:6px;
    align-items:center;
    justify-content:center;
    background:#111;
    color:#fff;
    font-size:20px;
    cursor:pointer;
    border:2px solid rgba(255,255,255,.1);
    transition:.3s ease;
}

.video-thumb span{
    font-size:12px;
    font-weight:800;
}

.video-thumb:hover,
.video-thumb.active{
    border-color:#D4AF37;
    color:#D4AF37;
}

.main-photo iframe{
    width:100%;
    height:100%;
    border:none;
}

.fullscreen-gallery{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.94);
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.fullscreen-gallery.active{
    display:flex;
}

.fullscreen-content{
    width:min(1100px, 92vw);
    height:min(700px, 78vh);
    border-radius:24px;
    overflow:hidden;
    border:1px solid rgba(212,175,55,.25);
    background:#000;
}

.fullscreen-content img,
.fullscreen-content iframe{
    width:100%;
    height:100%;
    object-fit:contain;
    border:none;
}

.fullscreen-close{
    position:absolute;
    top:22px;
    right:24px;
    width:44px;
    height:44px;
    border:none;
    border-radius:50%;
    background:#D4AF37;
    color:#050505;
    font-size:28px;
    font-weight:900;
    cursor:pointer;
    z-index:100001;
}

.fullscreen-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:38px;
    cursor:pointer;
    z-index:100000;
}

.fullscreen-prev{
    left:24px;
}

.fullscreen-next{
    right:24px;
}

.fullscreen-arrow:hover{
    background:#D4AF37;
    color:#050505;
}

@media(max-width:600px){
    .gallery-arrow{
        width:36px;
        height:36px;
        font-size:28px;
    }

    .gallery-prev{
        left:10px;
    }

    .gallery-next{
        right:10px;
    }

    .video-thumb{
        height:85px;
        border-radius:14px;
        font-size:18px;
    }

    .fullscreen-content{
        width:94vw;
        height:62vh;
        border-radius:18px;
    }

    .fullscreen-arrow{
        width:42px;
        height:42px;
        font-size:32px;
    }

    .fullscreen-prev{
        left:12px;
    }

    .fullscreen-next{
        right:12px;
    }
}
.contact-form-mini{
    margin:20px 0 25px;
    padding:18px;
    background:#101010;
    border:1px solid rgba(212,175,55,.18);
    border-radius:18px;
}

.contact-form-mini h4{
    font-size:15px;
    margin-bottom:12px;
    color:#D4AF37;
}

.contact-form-mini form{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.form-row{
    display:flex;
    gap:10px;
}

.form-row input{
    width:100%;
}

.contact-form-mini input,
.contact-form-mini textarea{
    width:100%;
    background:#0B0B0B;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    padding:12px;
    font-size:13px;
    color:#fff;
    outline:none;
}

.contact-form-mini input::placeholder,
.contact-form-mini textarea::placeholder{
    color:#777;
}

.contact-form-mini input:focus,
.contact-form-mini textarea:focus{
    border-color:#D4AF37;
}

.contact-form-mini button{
    margin-top:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:linear-gradient(135deg,#D4AF37,#F5D76E);
    color:#050505;
    border:none;
    padding:12px;
    border-radius:999px;
    font-weight:900;
    cursor:pointer;
    transition:.3s;
}

.contact-form-mini button:hover{
    transform:translateY(-1px);
}

/* MOBILE */
@media(max-width:600px){
    .form-row{
        flex-direction:column;
    }
}
/* ================= EQUINOS SIMILARES ================= */

.similar-horses-section{
    background:#0B0B0B;
    padding:20px 20px 90px;
}

.similar-carousel-wrap{
    position:relative;
}

.similar-carousel{
    display:flex;
    gap:18px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding:8px 4px 18px;
    scrollbar-width:none;
}

.similar-carousel::-webkit-scrollbar{
    display:none;
}

.similar-card{
    flex:0 0 calc((100% - 72px) / 5);
    min-width:210px;
    background:#151515;
    border:1px solid rgba(212,175,55,.14);
    border-radius:22px;
    overflow:hidden;
    transition:.35s ease;
}

.similar-card:hover{
    transform:translateY(-6px);
    border-color:rgba(212,175,55,.45);
    box-shadow:0 24px 50px rgba(212,175,55,.12);
}

.similar-card img{
    width:100%;
    height:160px;
    object-fit:cover;
    display:block;
}

.similar-info{
    padding:15px;
}

.similar-info span{
    color:#D4AF37;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:1px;
}

.similar-info h3{
    color:#fff;
    font-size:16px;
    margin:7px 0 6px;
    line-height:1.25;
}

.similar-info p{
    color:#aaa;
    font-size:12px;
    margin-bottom:10px;
}

.similar-info p i{
    color:#D4AF37;
    margin-right:4px;
}

.similar-info strong{
    display:block;
    color:#D4AF37;
    font-size:15px;
    margin-bottom:12px;
}

.similar-info a{
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    background:linear-gradient(135deg,#D4AF37,#F5D76E);
    color:#050505;
    padding:10px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.similar-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,.75);
    color:#fff;
    font-size:30px;
    cursor:pointer;
    z-index:5;
    border:1px solid rgba(212,175,55,.25);
}

.similar-arrow:hover{
    background:#D4AF37;
    color:#050505;
}

.similar-prev{
    left:-18px;
}

.similar-next{
    right:-18px;
}

@media(max-width:1100px){
    .similar-card{
        flex-basis:calc((100% - 54px) / 4);
    }
}

@media(max-width:850px){
    .similar-card{
        flex-basis:calc((100% - 36px) / 3);
    }
}

@media(max-width:600px){
    .similar-horses-section{
        padding:10px 15px 70px;
    }

    .similar-card{
        flex-basis:78%;
        min-width:240px;
    }

    .similar-card img{
        height:180px;
    }

    .similar-prev{
        left:6px;
    }

    .similar-next{
        right:6px;
    }
}
.detail-container{
    display:grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap:48px;

    align-items:start; /* 🔥 CLAVE */
}
.detail-info{
    align-self: flex-start;
}

/* ===== FIX VIDEO EN DETALLES ===== */

.main-photo video,
.pro-gallery video{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    background:#000 !important;
    border-radius:24px !important;
}

/* Si el video es vertical, no lo recorta */
.video-box video{
    width:100%;
    height:auto;
    max-height:620px;
    object-fit:contain !important;
    background:#000;
}

/* Contenedor elegante para video vertical */
.main-photo:has(video),
.pro-gallery:has(video){
    background:#000 !important;
}
/* ===== VIDEO COMPLETO EN DETALLES - NO RECORTAR ===== */

.pro-gallery video,
.main-photo video,
.detail-video-player{
    width:100% !important;
    height:auto !important;
    max-height:none !important;
    object-fit:contain !important;
    background:#000 !important;
    display:block !important;
    border-radius:24px !important;
}

/* Cuando el contenido sea video, el contenedor NO debe tener altura fija */
.pro-gallery:has(video),
.main-photo:has(video){
    height:auto !important;
    min-height:auto !important;
    max-height:none !important;
    aspect-ratio:auto !important;
    background:#000 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
}

/* Para móvil */
@media(max-width:768px){
    .pro-gallery video,
    .main-photo video,
    .detail-video-player{
        width:100% !important;
        height:auto !important;
        object-fit:contain !important;
    }

    .pro-gallery:has(video),
    .main-photo:has(video){
        height:auto !important;
        max-height:none !important;
    }
}
/* ===== MODAL VIDEO REAL TUEQUINO ===== */

.video-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    background:rgba(0,0,0,.94);
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.video-modal.active{
    display:flex;
}

.video-modal-box{
    width:min(100%, 1100px);
    height:min(90vh, 760px);
    display:flex;
    align-items:center;
    justify-content:center;
    background:#000;
    border-radius:26px;
    overflow:hidden;
    border:1px solid rgba(212,175,55,.35);
    box-shadow:0 35px 100px rgba(0,0,0,.8);
}

.video-modal-box video{
    width:100%;
    height:100%;
    object-fit:contain !important;
    background:#000;
}

.video-modal-close{
    position:fixed;
    top:22px;
    right:26px;
    width:52px;
    height:52px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.18);
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:34px;
    cursor:pointer;
    z-index:10000;
}

@media(max-width:768px){
    .video-modal{
        padding:0;
    }

    .video-modal-box{
        width:100vw;
        height:100vh;
        border-radius:0;
        border:0;
    }

    .video-modal-close{
        top:16px;
        right:16px;
        background:rgba(0,0,0,.55);
    }
}
/* ===== FIX RESPONSIVE DETALLES TUEQUINO ===== */

@media(max-width: 768px){

    .detail-page{
        padding-top:0 !important;
    }

    .detail-container{
        display:flex !important;
        flex-direction:column !important;
        gap:24px !important;
        width:100% !important;
        padding:22px 16px !important;
    }

    .detail-gallery{
        width:100% !important;
        max-width:100% !important;
        order:1 !important;
    }

    .detail-info{
        width:100% !important;
        max-width:100% !important;
        order:2 !important;
        position:relative !important;
        top:auto !important;
        padding:28px 22px !important;
        border-radius:26px !important;
    }

    .main-photo,
    .pro-gallery{
        width:100% !important;
        height:auto !important;
        min-height:auto !important;
        aspect-ratio:4 / 5 !important;
        border-radius:24px !important;
        overflow:hidden !important;
    }

    .main-photo img,
    .pro-gallery img{
        width:100% !important;
        height:100% !important;
        object-fit:cover !important;
    }

    .pro-thumbs{
        display:grid !important;
        grid-template-columns:repeat(3, 1fr) !important;
        gap:10px !important;
        margin-top:14px !important;
    }

    .pro-thumbs img,
    .video-thumb{
        width:100% !important;
        height:82px !important;
        border-radius:14px !important;
        object-fit:cover !important;
    }

    .detail-info h1{
        font-size:32px !important;
        line-height:1.05 !important;
    }

    .detail-price{
        font-size:28px !important;
    }

    .detail-actions{
        display:flex !important;
        flex-direction:column !important;
        gap:12px !important;
    }

    .detail-actions a{
        width:100% !important;
        text-align:center !important;
        justify-content:center !important;
    }
}

