/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #113b65;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo .logo {
    margin-top: 6px;
    height: 35px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #5abbf7;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content .highlight {
    background: #113b65;
    padding: 0.2rem 1rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.prev-btn, .next-btn {
    background: #113b65;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background: #113b65;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: #909ca4;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #113b65;
    margin-bottom: 1rem;
}

/* Specialties Section */
.specialties {
    padding: 5rem 0;
    background: #f8f9fa;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.specialty-card {
    background: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.specialty-card:hover {
    transform: translateY(-5px);
}

.specialty-card.dark {
    background: #113b65;
    color: white;
}

.specialty-card.blue {
    background: #5abbf7;
    color: white;
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card-icon img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.specialty-card.blue .card-icon img,
.specialty-card.dark .card-icon img {
    filter: brightness(0) invert(1);
}

.specialty-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.btn-agendar {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.specialty-card.dark .btn-agendar:hover {
    background: white;
    color: #113b65;
}

.specialty-card.blue .btn-agendar:hover {
    background: white;
    color: #5abbf7;
}

/* About Section - Quiénes Somos */
.about-content {
    display: grid;
    grid-template-columns: 3fr 0fr;
    gap: 4rem;
    align-items: start;
}

.about-description {
    margin-bottom: 3rem;
    text-align: justify;
}

.about-description p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
   
}

.about-description strong {
    color: #113b65;
    font-weight: 600;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: #5abbf7;
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: #113b65;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: #113b65;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    background: #5abbf7;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Treatments Section */
.treatments {
    padding: 5rem 0;
    background: white;
}

.treatments-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #5abbf7;
    color: white;
}

.tab-btn:hover {
    background: #113b65;
    color: white;
}

.tab-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-panel {
    display: none;
    padding: 2rem;
}

.tab-panel.active {
    display: block;
}

.treatment-list {
    list-style: none;
    margin-bottom: 2rem;
}

.treatment-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.treatment-list li:before {
    content: '•';
    color: #5abbf7;
    font-weight: bold;
    margin-right: 0.5rem;
}

.btn-info {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #113b65;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-info:hover {
    background: #5abbf7;
}

/* Rehabilitation Section */
.rehabilitation {
    padding: 5rem 0;
    background: #f8f9fa;
}

.rehab-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.rehab-tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rehab-tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: #113b65;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.rehab-tab-btn.active,
.rehab-tab-btn:hover {
    background: #5abbf7;
}

.rehab-tab-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-height: 300px;
}

.rehab-tab-panel {
    display: none;
    padding: 2rem;
}

.rehab-tab-panel.active {
    display: block;
}

.rehab-list {
    list-style: none;
    columns: 2;
    column-gap: 3rem;
}

.rehab-list li {
    padding: 0.5rem 0;
    font-weight: 500;
    break-inside: avoid;
}

.equipment-teams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team h4 {
    color: #113b65;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.team p {
    margin-bottom: 0.5rem;
}

.team span {
    color: #666;
    font-size: 0.9rem;
}

.interventions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.intervention-item {
    background: #5abbf7;
    color: white;
    padding: 1rem;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
}

.ortesis-content h4 {
    color: #113b65;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ortesis-content p {
    color: #666;
    line-height: 1.6;
}

/* Exams Section */
.exams {
    padding: 5rem 0;
    background: white;
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.exam-card {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.exam-icon {
    margin-bottom: 1rem;
}

.exam-icon img {
    width: 50px;
    height: 50px;
}

.exam-card h3 {
    color: #113b65;
    font-weight: 600;
}

/* Electromiografía Detail Section */
.electro-detail {
    background: #113b65;
    color: white;
    padding: 3rem 0;
}

.electro-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.electro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.btn-agendar-detail {
    display: inline-block;
    padding: 1rem 2rem;
    background: #113b65;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-agendar-detail:hover {
    background: white;
    color: #113b65;
    cursor: pointer;
}

.electro-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer */
.footer {
    background: #113b65;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    color: white;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #5abbf7;
    text-decoration: none;
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    color: #5abbf7;
    text-decoration: none;
    margin-right: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #5abbf7;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 30px;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    padding: 1rem;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s ease;
    max-width: 250px;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}


#wsicon{
    font-size: 20rem !important;
    font-weight: 500;
}

.whatsapp-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Professionals Section - Versión Mejorada */
.professionals {
    padding: 5rem 0;
    background: white;
}

.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.professional-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px; /* Altura mínima consistente */
}

.professional-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-header {
    background: #113b65;
    color: white;
    padding: 1.5rem;
    text-align: center;
    flex-shrink: 0; /* Evita que el header se encoja */
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1; /* Ocupa todo el espacio disponible */
    display: flex;
    flex-direction: column;
}

.professionals-list {
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Ocupa el espacio restante */
}

.professional-name {
    padding: 0.5rem 0;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.professional-name:last-child {
    border-bottom: none;
}

.schedule {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #5abbf7;
    margin-top: auto; /* Esto empuja el horario hacia abajo */
    flex-shrink: 0; /* Evita que se encoja */
}

.schedule i {
    color: #5abbf7;
    font-size: 1.1rem;
    min-width: 20px;
    margin-top: 2px; /* Alinea mejor el icono */
}

.schedule span {
    color: #113b65;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

/* Animaciones para las tarjetas */
.professional-card:nth-child(1) { animation-delay: 0.1s; }
.professional-card:nth-child(2) { animation-delay: 0.2s; }
.professional-card:nth-child(3) { animation-delay: 0.3s; }
.professional-card:nth-child(4) { animation-delay: 0.4s; }
.professional-card:nth-child(5) { animation-delay: 0.5s; }
.professional-card:nth-child(6) { animation-delay: 0.6s; }
.professional-card:nth-child(7) { animation-delay: 0.7s; }
.professional-card:nth-child(8) { animation-delay: 0.8s; }
.professional-card:nth-child(9) { animation-delay: 0.9s; }

/* Responsive Design */

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #113b65;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .rehab-tab-buttons {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }

    .rehab-list {
        columns: 1;
    }

    .electro-content {
        flex-direction: column;
        text-align: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .whatsapp-btn {
        right: 10px;
        padding: 0.8rem;
        max-width: 200px;
    }

    

    .whatsapp-btn span {
        font-size: 0.8rem;
    }

    .professionals-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .professional-card {
        max-width: 100%;
        min-height: 260px; /* Ajuste para móvil */
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    .schedule {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .slide-content {
        left: 5%;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .whatsapp-btn span {
        display: none;
    }

    .whatsapp-btn {
        border-radius: 50%;
        padding: 1rem;
        width: 60px;
        height: 60px;
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .about-description p {
        font-size: 1rem;
    }
    .professionals {
        padding: 3rem 0;
    }
    
    .professional-card {
        min-height: 250px;
    }
    
    .schedule {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .schedule i {
        margin-top: 2px;
    }
    
    .schedule span {
        font-size: 0.9rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specialty-card, .exam-card {
    animation: fadeInUp 0.6s ease forwards;
}

.specialty-card:nth-child(2) { animation-delay: 0.1s; }
.specialty-card:nth-child(3) { animation-delay: 0.2s; }
.specialty-card:nth-child(4) { animation-delay: 0.3s; }
