/* ========================================
   MAIN CSS - IMPORTS ALL MODULES
======================================== */

/* Import all module CSS files */
@import url('modules/base.css');
@import url('modules/preloader.css');
@import url('modules/navigation.css'); 
@import url('modules/hero.css');
@import url('modules/services.css');
@import url('modules/testimonials.css');
@import url('modules/blog.css');
@import url('modules/buttons.css');
@import url('modules/footer.css');

/* Global Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xxl) 0;
}

.bg-light-gray {
    background-color: var(--bg-light);
}

/* Global Text Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-white {
    color: var(--text-white) !important;
}

/* Global Margin Utilities */
.mb-10 {
    margin-bottom: 15px; /* Reducido de 25px a 15px */
}

.mt-10 {
    margin-top: 60px;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
    
    .mb-10 {
        margin-bottom: var(--spacing-xxl);
    }
    
    .mt-10 {
        margin-top: var(--spacing-xxl);
    }
}

/* Print Styles */
@media print {
    .fixed-button,
    .navbar-toggler,
    .whatsapp-button {
        display: none !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Better Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
    
    .service-card,
    .feature-tag {
        border-width: 2px;
    }
}

/* ========================================
   BOTONES CAROUSEL CONSEJOS - MÁXIMA ESPECIFICIDAD
======================================== */

/* Selectors súper específicos para la sección de Cuidados y Salud Animal */
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    text-align: left !important;
    z-index: 20 !important;
    display: block !important;
}

section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav button,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-prev,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav button,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-prev,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next {
    position: absolute !important;
    top: 0 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15) !important;
    color: var(--primary-color) !important;
    font-size: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    outline: none !important;
    transform: translateY(0) !important;
    margin: 0 !important;
    padding: 0 !important;
}

section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-prev,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-prev {
    left: -25px !important;
    right: auto !important;
}

section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next {
    right: -25px !important;
    left: auto !important;
}

/* Iconos con pseudoelementos */
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-prev::before,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-prev::before {
    content: '◀' !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: var(--primary-color) !important;
    display: block !important;
    line-height: 1 !important;
}

section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next::before,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next::before {
    content: '▶' !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: var(--primary-color) !important;
    display: block !important;
    line-height: 1 !important;
}

/* Ocultar todo el contenido original */
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav button span,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-prev span,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next span,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav button span,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-prev span,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next span {
    display: none !important;
    visibility: hidden !important;
}

/* Hover states específicos */
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav button:hover,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-prev:hover,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next:hover,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav button:hover,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-prev:hover,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next:hover {
    opacity: 1 !important;
    background: var(--primary-color) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25) !important;
    transform: scale(1.1) !important;
}

section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-prev:hover::before,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next:hover::before,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-prev:hover::before,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next:hover::before {
    color: white !important;
}

/* Mostrar siempre */
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav button,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav button {
    visibility: visible !important;
    opacity: 0.8 !important;
}

/* Asegurarse de que no haya bordes en todos los estados */
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav button,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-prev,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav button,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-prev,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav button:hover,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-prev:hover,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next:hover,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav button:hover,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-prev:hover,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next:hover,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav button:focus,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-prev:focus,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next:focus,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav button:focus,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-prev:focus,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next:focus {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15) !important;
}

section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav button:hover,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-prev:hover,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next:hover,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav button:hover,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-prev:hover,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next:hover {
    box-shadow: 0 5px 20px rgba(44, 95, 65, 0.25) !important;
}

/* Responsive específico */
@media (max-width: 768px) {
    section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-prev,
    section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next,
    .blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-prev,
    .blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next {
        width: 40px !important;
        height: 40px !important;
        left: -20px !important;
        right: -20px !important;
    }
    
    section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next,
    .blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next {
        right: -20px !important;
        left: auto !important;
    }
    
    section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-prev::before,
    section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-nav .owl-next::before,
    .blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-prev::before,
    .blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-nav .owl-next::before {
        font-size: 14px !important;
    }
}

/* ========================================
   DOTS/CÍRCULOS DE NAVEGACIÓN DEL CAROUSEL CONSEJOS
======================================== */

/* Contenedor de los dots */
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots {
    text-align: center !important;
    margin-top: 40px !important;
    margin-bottom: 0 !important;
    line-height: 0 !important;
}

/* Cada dot individual */
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot {
    display: inline-block !important;
    margin: 0 6px !important;
    cursor: pointer !important;
    outline: none !important;
}

/* El círculo/span dentro del dot */
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot span,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot span {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    display: block !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    outline: none !important;
}

/* Dot activo (slide actual) */
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot.active span,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot.active span {
    background: var(--primary-color) !important;
    border: none !important;
    transform: scale(1.2) !important;
    outline: none !important;
}

/* Hover en dots */
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot:hover span,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--primary-color) !important;
    border: none !important;
    opacity: 0.8 !important;
    outline: none !important;
}

/* Responsive para dots */
@media (max-width: 768px) {
    section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots,
    .blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots {
        margin-top: 30px !important;
    }
    
    section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot,
    .blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot {
        margin: 0 4px !important;
    }
    
    section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot span,
    .blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot span {
        width: 10px !important;
        height: 10px !important;
    }
}

/* Asegurar que no haya bordes en los dots en ningún estado */
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot:hover,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot:hover,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot:focus,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot:focus,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot.active,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot.active,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot span,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot span,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot:hover span,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot:hover span,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot:focus span,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot:focus span,
section.blog1.section-padding.bg-light-gray .owl-carousel.owl-theme .owl-dots .owl-dot.active span,
.blog1.section-padding.bg-light-gray .col-md-12 .owl-carousel.owl-theme .owl-dots .owl-dot.active span {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Patients Gallery Styles */
.patients-gallery {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.patients-grid {
    margin-top: 30px;
}

.patient-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    height: 280px;
}

.patient-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.patient-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.patient-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.patient-card:hover .patient-image img {
    transform: scale(1.1);
}

.patient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    padding: 20px 15px 15px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.patient-card:hover .patient-overlay {
    background: linear-gradient(to top, rgba(44, 95, 65, 0.9) 0%, rgba(44, 95, 65, 0.7) 40%, rgba(44, 95, 65, 0.4) 70%, transparent 100%);
}

.patient-name {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
    margin: 0;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .patient-card {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .patient-name {
        font-size: 1.2rem;
        padding: 6px 10px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.7);
    }
    
    .patient-overlay {
        padding: 15px 12px 12px;
    }
}

@media (max-width: 480px) {
    .patient-card {
        height: 220px;
    }
    
    .patient-name {
        font-size: 1.1rem;
        padding: 5px 8px;
        text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.8);
        letter-spacing: 0.3px;
    }
    
    .patient-overlay {
        padding: 12px 10px 10px;
    }
    
    .patients-grid .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Animation effects */
.patient-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.patient-card:nth-child(1) { animation-delay: 0.1s; }
.patient-card:nth-child(2) { animation-delay: 0.2s; }
.patient-card:nth-child(3) { animation-delay: 0.3s; }
.patient-card:nth-child(4) { animation-delay: 0.4s; }
.patient-card:nth-child(5) { animation-delay: 0.5s; }
.patient-card:nth-child(6) { animation-delay: 0.6s; }
.patient-card:nth-child(7) { animation-delay: 0.7s; }
.patient-card:nth-child(8) { animation-delay: 0.8s; }
.patient-card:nth-child(9) { animation-delay: 0.9s; }
.patient-card:nth-child(10) { animation-delay: 1.0s; }
.patient-card:nth-child(11) { animation-delay: 1.1s; }
.patient-card:nth-child(12) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
