/* ===============================================
   PISOS PARA CABALLERIZAS - GRUPO EVEREST
   Estilos específicos para página de pisos ecuestres
   =============================================== */

/* ===== HERO SECTION CON VIDEO DE FONDO ===== */
.hero-pisos-caballerizas {
    position: relative;
    min-height: 500px;
    height: 100vh; /* Ocupa toda la altura de la pantalla */
    max-height: 800px; /* Límite máximo para pantallas muy altas */
    overflow: hidden;
}

/* Video de fondo */
.hero-pisos-caballerizas video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre todo el contenedor manteniendo proporción */
    object-position: center center; /* Centra el contenido del video */
    z-index: 0;
}

/* Fallback para navegadores que no soportan object-fit */
@supports not (object-fit: cover) {
    .hero-pisos-caballerizas video {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
    }
}

/* Overlay degradado para mejorar legibilidad del texto */
.hero-pisos-caballerizas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,44,91,0.85) 0%, rgba(0,44,91,0.65) 50%, rgba(0,44,91,0.3) 100%);
    z-index: 1;
}

/* Contenido del hero (texto y botones) */
.hero-pisos-caballerizas .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

/* ===== RESPONSIVE ===== */
/* Tablets */
@media (max-width: 992px) {
    .hero-pisos-caballerizas {
        min-height: 500px;
        max-height: 700px;
    }
    .hero-pisos-caballerizas .container {
        padding-bottom: 60px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .hero-pisos-caballerizas {
        min-height: 450px;
        max-height: 600px;
    }
    .hero-pisos-caballerizas .container {
        padding-bottom: 40px;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .hero-pisos-caballerizas {
        min-height: 400px;
        max-height: 550px;
    }
    .hero-pisos-caballerizas .container {
        padding-bottom: 30px;
    }
}

/* ===== OPCIONAL: Mejora de rendimiento ===== */
/* Precarga del video para evitar flickering */
.hero-pisos-caballerizas video[preload="auto"] {
    will-change: transform;
}

/* Si quieres que el video se reproduzca solo cuando esté visible (mejora rendimiento) */
@media (prefers-reduced-motion: reduce) {
    .hero-pisos-caballerizas video {
        display: none;
    }
    .hero-pisos-caballerizas {
        background: url('/images/piso-para-caballerizas/hero-fallback.jpg') center/cover no-repeat;
    }
}

.hero-pisos-caballerizas .container {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.hero-pisos-caballerizas h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-pisos-caballerizas .lead {
    font-size: 1.75rem;
    font-weight: 400;
}

.hero-pisos-caballerizas .btn-success {
    background-color: #c40000;
    border-color: #c40000;
    transition: all 0.3s ease;
}

.hero-pisos-caballerizas .btn-success:hover {
    background-color: transparent;
    border-color: #c40000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-pisos-caballerizas .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    color: #f2f2f2;
}

.hero-pisos-caballerizas .fa-check-circle {
    color: #c40000;
    margin-right: 0.5rem;
}

/* ===== INTRODUCCIÓN ===== */
.introduccion-pisos-caballerizas {
    background-color: #ffffff;
    padding: 4rem 0;
}

.introduccion-pisos-caballerizas .section-title {
    margin-bottom: 2rem;
    position: relative;
}

.introduccion-pisos-caballerizas .section-title .small-word {
    font-size: 2rem;
    font-weight: 600;
    display: inline-block;
}

.introduccion-pisos-caballerizas p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.5rem;
}

.introduccion-pisos-caballerizas strong {
    color: #002c5b;
    font-weight: 600;
}

/* ===== GALERÍA DE IMÁGENES ===== */
.galeria-pisos-caballerizas {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.galeria-pisos-caballerizas .section-title {
    color: #002c5b;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.galeria-pisos-caballerizas .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #002c5b;
}

.galeria-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.galeria-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,44,91,0.15);
}

.galeria-item img {
    width: 100%;
    /* height: 280px; */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.galeria-item p {
    padding: 1.25rem;
    margin: 0;
    font-weight: 600;
    color: #002c5b;
    background: white;
    text-align: center;
    font-size: 1.1rem;
}

/* ===== ESPECIFICACIONES TÉCNICAS ===== */
.especificaciones-piso-caballos {
    background-color: #ffffff;
    padding: 4rem 0;
}

.especificaciones-piso-caballos h2,
.especificaciones-piso-caballos h3 {
    color: #002c5b;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.especificaciones-piso-caballos .table {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.especificaciones-piso-caballos .table th {
    background-color: #f8f9fa;
    color: #002c5b;
    font-weight: 600;
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 2px solid #dee2e6;
}

.especificaciones-piso-caballos .table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.especificaciones-piso-caballos .table tr:last-child td {
    border-bottom: none;
}

.especificaciones-piso-caballos .table tr:hover {
    background-color: #f8f9fa;
}

.beneficios-detalle {
    background-color: #f8f9fa;
    border-radius: 16px;
    border-left: 6px solid #002c5b;
    height: 100%;
}

.beneficios-detalle .fa-shield-alt,
.beneficios-detalle .fa-tint,
.beneficios-detalle .fa-bolt,
.beneficios-detalle .fa-industry {
    font-size: 2.5rem;
    min-width: 50px;
}

.beneficios-detalle h5 {
    color: #002c5b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.beneficios-detalle p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.beneficios-detalle .btn-primary {
    background-color: #002c5b;
    border-color: #002c5b;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.beneficios-detalle .btn-primary:hover {
    background-color: #001f42;
    border-color: #001f42;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,44,91,0.3);
}

/* ===== SECCIÓN KEYWORDS LONG TAIL - REDISEÑADA ===== */
.keywords-longtail {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.keywords-container {
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 40px rgba(0,44,91,0.08);
    transition: all 0.4s ease;
    background: white;
    padding: 2.5rem !important;
}

.keywords-container:hover {
    box-shadow: 0 20px 50px rgba(0,44,91,0.15);
    transform: translateY(-5px);
}

.keywords-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.keywords-icon {
    background: linear-gradient(135deg, #002c5b, #004a8f);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.keywords-icon i {
    font-size: 1.75rem;
}

.keywords-title {
    margin-bottom: 0;
}

.keywords-title h3 {
    color: #002c5b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.keywords-title p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.keywords-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.keyword-category {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    border-left: 4px solid #c40000;
    transition: all 0.3s ease;
}

.keyword-category:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,44,91,0.05);
    transform: translateY(-3px);
    border-left-color: #002c5b;
}

.keyword-category h4 {
    color: #002c5b;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keyword-category h4 i {
    color: #c40000;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
    color: #495057;
    transition: all 0.2s ease;
    font-weight: 500;
}

.keyword-tag:hover {
    background: #002c5b;
    border-color: #002c5b;
    color: white;
}

.keyword-tag strong {
    font-weight: 700;
}

.keywords-cta {
    background: linear-gradient(135deg, #f1f8ff, #e3f0fa);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.keywords-cta p {
    margin-bottom: 0;
    font-size: 1.05rem;
    color: #002c5b;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.keywords-cta p i {
    color: #c40000;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.keywords-cta .btn-sm {
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    border-radius: 50px;
    background: #002c5b;
    border-color: #002c5b;
    color: white;
    transition: all 0.3s ease;
}

.keywords-cta .btn-sm:hover {
    background: #c40000;
    border-color: #c40000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

.keywords-note {
    display: flex;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #dee2e6;
    color: #6c757d;
    font-size: 0.85rem;
}

.keywords-note i {
    color: #ffc107;
    margin-right: 0.5rem;
}

/* ===== APLICACIONES ===== */
.aplicaciones-piso-caballos {
    background-color: #ffffff;
    padding: 4rem 0;
}

.aplicaciones-piso-caballos .section-title {
    color: #002c5b;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.aplicaciones-piso-caballos .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #002c5b, #c40000);
    border-radius: 2px;
}

.aplicacion-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.aplicacion-card:hover {
    border-color: #002c5b;
    box-shadow: 0 15px 40px rgba(0,44,91,0.1);
    transform: translateY(-5px);
}

.aplicacion-card i {
    color: #002c5b;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.aplicacion-card:hover i {
    transform: scale(1.1);
    color: #c40000;
}

.aplicacion-card h4 {
    color: #002c5b;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.aplicacion-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== INVITACIÓN CONTACTO ===== */
.invitacion-contacto-section {
    background: linear-gradient(135deg, #002c5b 0%, #003d7a 100%);
    padding: 4rem 0;
}

.invitacion-contacto-section h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.invitacion-contacto-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
}

.invitacion-contacto-section .btn-light {
    color: #002c5b;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
}

.invitacion-contacto-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background-color: white;
    color: #001f42;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
    .hero-pisos-caballerizas h1 {
        font-size: 3rem;
    }
    
    .hero-pisos-caballerizas .lead {
        font-size: 1.5rem;
    }
    
    .keywords-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .hero-pisos-caballerizas {
        min-height: 450px;
    }
    
    .hero-pisos-caballerizas h1 {
        font-size: 2.5rem;
    }
    
    .hero-pisos-caballerizas .lead {
        font-size: 1.25rem;
    }
    
    .introduccion-pisos-caballerizas p {
        font-size: 1rem;
    }
    
    /* .galeria-item img {
        height: 240px;
    }
     */
    
     .beneficios-detalle {
        margin-top: 2rem;
    }
    
    .keywords-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .keywords-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .keywords-cta p {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-pisos-caballerizas {
        min-height: 400px;
        text-align: center;
    }
    
    .hero-pisos-caballerizas h1 {
        font-size: 2rem;
    }
    
    .hero-pisos-caballerizas .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-pisos-caballerizas .fa-check-circle {
        display: block;
        margin: 0.5rem 0;
    }
    
    .introduccion-pisos-caballerizas {
        padding: 3rem 0;
    }
    
    .galeria-pisos-caballerizas {
        padding: 3rem 0;
    }
    
    /* .galeria-item img {
        height: 200px;
    } */
    
    .especificaciones-piso-caballos .table th,
    .especificaciones-piso-caballos .table td {
        padding: 0.75rem;
    }
    
    .invitacion-contacto-section {
        text-align: center;
    }
    
    .invitacion-contacto-section .btn-light {
        margin-top: 1rem;
    }
    
    .keywords-container {
        padding: 1.5rem !important;
    }
    
    .keywords-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .keyword-category {
        padding: 1rem;
    }
    
    .keywords-header {
        flex-direction: column;
        text-align: center;
    }
    
    .keywords-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-pisos-caballerizas h1 {
        font-size: 1.75rem;
    }
    
    .hero-pisos-caballerizas .lead {
        font-size: 1.1rem;
    }
    
    .hero-pisos-caballerizas .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .hero-pisos-caballerizas .btn {
        width: 100%;
    }
    
    /* .galeria-item img {
        height: 180px;
    } */
    
    .aplicacion-card {
        padding: 1.5rem 1rem;
    }
    
    .aplicacion-card i {
        font-size: 2.5rem;
    }
    
    .keywords-cta {
        padding: 1.25rem;
    }
    
    .keywords-cta p {
        font-size: 0.95rem;
    }
}

/* ===== UTILIDADES ===== */
.text-blue {
    color: #002c5b !important;
}

.bg-blue {
    background-color: #002c5b !important;
}

.text-justify {
    text-align: justify;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.galeria-item,
.aplicacion-card,
.beneficios-detalle,
.keywords-container {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== IMPRESIÓN ===== */
@media print {
    .hero-pisos-caballerizas {
        min-height: auto;
        background: none;
        color: black !important;
    }
    
    .hero-pisos-caballerizas::before {
        display: none;
    }
    
    .hero-pisos-caballerizas h1,
    .hero-pisos-caballerizas p {
        color: black !important;
    }
    
    .btn,
    .invitacion-contacto-section,
    .keywords-cta {
        display: none;
    }
}

.texto-centrado {
    text-align: center;
}