/* Estilos específicos para index.html */

/* Animaciones para elementos de destino */
.destination-item {
    transition: transform 0.5s ease;
}

.destination-item:hover {
    transform: scale(1.1);
}

/* Barra superior responsiva */
.topbar-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-contact-info, .topbar-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-contact-info p {
    margin: 0 10px 0 0;
    font-size: 1rem;
    color: #444;
    display: flex;
    align-items: center;
}

.topbar-social a {
    color: #7bb241 !important;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.topbar-social a:hover {
    color: #4e7c1b !important;
}

/* Responsive para barra superior */
@media (max-width: 600px) {
    .topbar-contact-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .topbar-contact-info, .topbar-social {
        gap: 10px;
    }
    .topbar-contact-info p {
        font-size: 0.95rem;
    }
}

/* Tarjetas de cobertura */
.cobertura-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Modal de cobertura */
.modal-cobertura {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-cobertura-content {
    background: #fff;
    margin: auto;
    padding: 0;
    border-radius: 16px;
    max-width: 600px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
    animation: modalIn 0.3s;
}

@keyframes modalIn {
    from { 
        transform: scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.modal-cobertura-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

.modal-cobertura-body {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 32px 24px 24px 24px;
    align-items: center;
}

.modal-cobertura-img {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-cobertura-desc {
    flex: 2 1 60%;
}

/* Responsive para modal */
@media (max-width: 600px) {
    .modal-cobertura-body {
        flex-direction: column;
        gap: 12px;
        padding: 18px 8px 16px 8px;
    }
    .modal-cobertura-content {
        max-width: 98vw;
    }
}

/* Estilos personalizados para la sección de Distribuidora Farmacéutica */
.bg-registration {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../img/IMG-20250606-WA0006.jpg), no-repeat center center !important;
    background-size: cover !important;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.bg-registration .container {
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Responsive para la sección de Distribuidora Farmacéutica */
@media (max-width: 768px) {
    .bg-registration {
        min-height: 400px;
    }
    
    .bg-registration .container {
        min-height: 300px;
    }
    
    .coverage-stats {
        flex-direction: column;
        align-items: center;
    }
}

/* COMPREHENSIVE MOBILE OPTIMIZATIONS - INDEX PAGE */
@media (max-width: 768px) {
    /* Carousel/Hero Section - Reduced Height */
    .carousel-item {
        height: 60vh !important;
        min-height: 400px !important;
    }
    
    .carousel-caption {
        bottom: 20% !important;
        padding: 0 15px !important;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
        line-height: 1.2 !important;
    }
    
    .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
        line-height: 1.4 !important;
    }
    
    .carousel-caption .btn {
        padding: 8px 20px !important;
        font-size: 0.85rem !important;
    }
    
    /* About Section - Compressed */
    .about-section {
        padding: 30px 0 !important;
    }
    
    .about-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    
    .about-section p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }
    
    .about-section .btn {
        padding: 8px 20px !important;
        font-size: 0.85rem !important;
    }
    
    /* Services Section - Compact Cards */
    .service-section {
        padding: 30px 0 !important;
    }
    
    .service-item {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
        border-radius: 15px !important;
    }
    
    .service-item i {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }
    
    .service-item h4 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    
    .service-item p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
    }
    
    /* Team Section - Smaller Cards */
    .team-section {
        padding: 30px 0 !important;
    }
    
    .team-item {
        margin-bottom: 20px !important;
        border-radius: 15px !important;
    }
    
    .team-item img {
        height: 200px !important;
        object-fit: cover !important;
    }
    
    .team-item h5 {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }
    
    .team-item p {
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
    }
    
    .team-item .small {
        font-size: 0.75rem !important;
    }
    
    /* Section Titles - Smaller */
    .section-title h2,
    .text-center h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    
    .section-title p,
    .text-center p {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }
    
    /* Footer - Mobile Optimized */
    footer.bg-dark {
        padding: 15px 10px !important;
        margin-top: 20px !important;
        border: none !important;
    }
    
    /* Hide desktop footer, show mobile footer */
    .desktop-footer {
        display: none !important;
    }
    
    .mobile-footer {
        display: block !important;
    }
    
    /* Mobile Footer Brand */
    .mobile-footer-brand h1 {
        font-size: 1.3rem !important;
        margin-bottom: 5px !important;
    }
    
    .mobile-footer-brand p {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
        opacity: 0.8;
    }
    
    /* Mobile Footer Sections */
    .mobile-footer-sections {
        margin: 15px 0 !important;
    }
    
    .mobile-footer-section {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 0 !important;
    }
    
    .mobile-footer-toggle {
        width: 100%;
        background: none;
        border: none;
        color: #fff;
        padding: 12px 0;
        text-align: left;
        font-size: 0.9rem;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-footer-toggle:hover {
        color: #007bff;
    }
    
    .mobile-footer-toggle i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .mobile-footer-content {
        display: none;
        padding: 0 0 15px 0;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 200px;
        }
    }
    
    .mobile-footer-content a {
        display: block;
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        padding: 5px 0;
        font-size: 0.8rem;
        transition: color 0.3s ease;
    }
    
    .mobile-footer-content a:hover {
        color: #007bff;
        text-decoration: none;
    }
    
    .mobile-footer-content p {
        color: rgba(255,255,255,0.7);
        font-size: 0.8rem;
        margin: 5px 0;
        line-height: 1.3;
    }
    
    /* Footer Copyright */
    .footer-copyright {
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        margin-top: 15px !important;
        padding-top: 15px !important;
    }
    
    .footer-copyright p {
        font-size: 0.75rem !important;
        margin: 0 !important;
    }
    
    /* General Mobile Optimizations */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    [class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Navbar Mobile Optimization */
    .navbar-brand h1 {
        font-size: 1.3rem !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem !important;
        padding: 8px 15px !important;
    }
    
    /* Topbar Mobile - Hide on small screens */
    .topbar {
        display: none !important;
    }
}

/* Desktop Footer Styles - Default */
.mobile-footer {
    display: none;
}

.desktop-footer {
    display: block;
}

/* Extra Small Devices - Even More Compressed */
@media (max-width: 575.98px) {
    .carousel-item {
        height: 50vh !important;
        min-height: 350px !important;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.8rem !important;
    }
    
    .about-section,
    .service-section,
    .team-section {
        padding: 25px 0 !important;
    }
    
    .service-item {
        padding: 15px 10px !important;
    }
    
    .service-item i {
        font-size: 1.8rem !important;
    }
    
    .team-item img {
        height: 180px !important;
    }
    
    .section-title h2,
    .text-center h2 {
        font-size: 1.3rem !important;
    }
    
    .mobile-footer-brand h1 {
        font-size: 1.1rem !important;
    }
    
    .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}
