/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Top Info Bar */
.top-info-bar {
    background: white;
    color: #333;
    padding: 15px 0;
    font-size: 14px;
    
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    margin-right: 8px;
    width: 16px;
    color: #8B5CF6;
}

/* Navigation */
.navbar-custom {
    background: white !important;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #6B46C1 !important;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #8B5CF6 !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-item {
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #F3F4F6;
    color: #8B5CF6;
}


/* ============= HERO SECTION - VERSIÓN COMPLETA ============= */
/* Sección principal: Contiene toda la imagen y el espacio en los lados. */
.hero-section {
    /* Define el alto de la sección. */
    height: 70vh;
    min-height: 500px;
    
    /* Centra la sección horizontalmente y le da un ancho máximo. */
    margin: 0 auto;
    max-width: 1920px;

    /* Agrega un "padding" interno que actúa como margen en los bordes. */
    padding: 0 20px;
    
    box-sizing: border-box; /* Fundamental para que el padding no agregue ancho extra. */
}

/* Contenedor de la imagen: Da la forma de la "tarjeta". */
.hero-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden; /* Muy importante para que la imagen no sobresalga de los bordes redondeados. */
}

/* La imagen en sí. */
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para que llene el contenedor sin distorsionarse. */
    object-position: center; /* Centra la imagen dentro del contenedor. */
    display: block; /* Elimina cualquier espacio adicional debajo de la imagen. */
}

/* ============= HERO SECTION OPTIMIZADA ============= */
.hero-content {
    position: absolute; /* Permite posicionar el texto sobre la imagen. */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Utiliza flexbox para alinear los elementos. */
    align-items: flex-end; /* Alinea los elementos en la parte inferior. */
    padding-bottom: 5rem; /* Agrega espacio en la parte inferior. */
}

/* En pantallas móviles (menores a 768px) */
@media (max-width: 768px) {
    .hero-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .hero-content {
        padding-bottom: 3rem; /* Menos espacio en la parte inferior en móviles */
    }
    .hero-content .text-white {
        text-align: center !important; /* Centra el texto en pantallas pequeñas */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Título y subtítulo */
.hero-title {
    color: white; /* Color del texto para que sea legible sobre la imagen. */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Sombra para mejor visibilidad. */
}

.hero-subtitle {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Posiciona el texto del hero a la derecha */
.hero-text-right {
    margin-left: 1px; /* Juega con este valor para moverlo a tu gusto */
}

/* Asegura que el contenedor del texto ocupe todo el ancho disponible */
.hero-content .container {
    width: 100%;
}

/* Quick Actions */
.quick-actions {
    position: absolute;
    bottom: -30px;
    right: 5%;
    width: 90%;
    max-width: 300px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    z-index: 3;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.quick-actions h5 {
    color: #6B46C1;
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.action-item {
    display: block;
    color: #8B5CF6;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.action-item:last-child {
    border-bottom: none;
}

.action-item:hover {
    color: #A855F7;
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
}

.action-item i {
    margin-right: 0.625rem;
    width: 1.25rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-container {
        border-radius: 15px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        min-height: 400px;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-container {
        border-radius: 12px;
    }
    
    .quick-actions {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 2rem auto 0;
        width: 100%;
    }
}

/* Welcome Section */
.welcome-section {
    background: white;
}

.section-title {
    color: #6B46C1;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #8B5CF6;
}

.section-description {
    font-size: 1.2rem;
    color: #64748B;
    line-height: 1.6;
}

/* Medical Rehabilitation Section */
.medical-rehabilitation {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}

.card {
    border: none;
}

.feature-icon {
    color: #8B5CF6;
    font-size: 1.5rem;
}

.purple-gradient-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    border: none;
    padding: 8px 20px;
    color: white;
    transition: all 0.3s ease;
}

.purple-gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

/* Physical Therapy Section */
.physical-therapy {
    background: white;
}

.feature-title {
    color: #6B46C1;
    font-weight: 600;
}

.feature-title i {
    color: #8B5CF6;
}

.therapy-img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
}

/* Services Conditions Section */

/* Services Conditions Section */
.services-conditions {
    background: #F9FAFB;
}

.service-card {
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    background: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	transition: all 0.3s ease, background-image 0.5s ease !important; 
    z-index: 1;
}

.service-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    color: #374151;
    background: transparent;
    transition: all 0.3s ease;
	z-index: 2;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(56%) sepia(97%) saturate(314%) hue-rotate(92deg) brightness(97%) contrast(86%);
    transition: all 0.3s ease;
}



.service-content h5 {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.service-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.view-all-btn {
    color: #6B46C1;
    border-color: #6B46C1;
    padding: 12px 35px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.view-all-btn:hover {
    background-color: #6B46C1;
    color: white;
    transform: translateY(-2px);
}

.section-title {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-card {
        height: 250px;
    }
    
    .service-content {
        padding: 20px 15px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .service-content h5 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .service-content p {
        font-size: 0.85rem;
    }
    
    .view-all-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .service-card {
        height: 220px;
    }
    
    .service-content {
        padding: 15px 12px;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .service-content h5 {
        font-size: 0.95rem;
    }
    
    .service-content p {
        font-size: 0.8rem;
    }
}

/* Goal Section */
.goal-section {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}

.goal-img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
}

.check-icon {
    color: #10B981;
    font-size: 1.5rem;
}

/* Better Rehab Section */
.better-rehab {
    padding: 5rem 0;
    background: linear-gradient(135deg, #6a0dad 0%, #9b59b6 100%);
}

.better-rehab .section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.highlight-white {
    color: white;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.better-rehab .section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.amenities-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    display: inline-block;
}

.amenities-title:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: white;
}

.video-wrapper {
    background: #000;
    transition: transform 0.3s ease;
    border: 3px solid white;
}

.video-wrapper:hover {
    transform: scale(1.02);
}

/* Counter Section */
.counter-section {
    background: linear-gradient(135deg, #f3e5ff 0%, #d9b3ff 100%);
    color: #333;
}

.counter-item {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    margin: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
}

.counter-number {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #6a1b9a;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-label {
    font-size: 1rem;
    color: #555;
    line-height: 1.4;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #f5eeff 0%, #e8d6ff 100%);
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    height: 100%;
    box-shadow: 0 8px 20px rgba(122, 81, 157, 0.1);
    border-left: 4px solid #9c27b0;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(122, 81, 157, 0.15);
}

.rating {
    color: #ffb300;
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    margin-bottom: 20px;
}

.patient-info {
    color: #6a1b9a;
    font-weight: 500;
}

.btn-purple {
    background-color: #7b1fa2;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background-color: #6a1b9a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 31, 162, 0.3);
}

/* Blog Section */
.blog-section {
    background-color: #f9f5ff;
}

.blog-list {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    height: 100%;
}

.blog-list-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.blog-list-item:last-child {
    border-bottom: none;
}

.blog-list-item:hover {
    transform: translateX(5px);
}

.small-thumbnail {
    width: 100px;
    height: 70px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.blog-list-content {
    padding-left: 15px;
}

.blog-list-title {
    font-size: 1rem;
    color: #444;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.blog-list-item:hover .blog-list-title {
    color: #7e57c2;
}

.blog-list-date {
    font-size: 0.8rem;
    color: #888;
}

.featured-blog {
    position: relative;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.blog-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #5d3a9e;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.featured-thumbnail {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-thumbnail:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.featured-content {
    padding: 25px;
    background: white;
}

.featured-date {
    font-size: 0.8rem;
    color: #9575cd;
    margin-bottom: 10px;
}

.featured-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
}

.featured-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.read-more-link {
    color: #7e57c2;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.read-more-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more-link:hover {
    color: #5d3a9e;
}

.read-more-link:hover i {
    transform: translateX(3px);
}

.btn-outline-purple {
    border: 2px solid #7e57c2;
    color: #7e57c2;
    background: transparent;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-purple:hover {
    background: #7e57c2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(126, 87, 194, 0.3);
}

/* Consultation Section */
.consultation-section {
    margin-top: 50px;
}

.consultation-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.banner-image {
    background-size: cover;
    background-position: center;
    min-height: 450px;
    position: relative;
}

.logo-corner-top-left {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
}

.banner-bottom-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.text-corner {
    max-width: 50%;
}

.banner-subtitle {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.btn-consultation {
    background-color: #6a1b9a;
    color: white;
    padding: 16px 40px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
}

.btn-consultation:hover {
    background-color: #5e35b1;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

.service-card {
    border-top: 4px solid #8B5CF6;
}

.service-icon {
    color: #8B5CF6;
}

/* About Section */
.about-section {
    background: white;
}

.about-img {
    max-height: 400px;
    object-fit: cover;
}

/* Footer */
.footer-section {
    background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%);
    color: white;
    padding: 60px 0 30px;
    font-family: 'Arial', sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    padding: 0 15px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.contact-info p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.address {
    font-weight: 500;
}

.directions {
    color: #b388ff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.directions:hover {
    color: white;
}

.directions i {
    margin-left: 5px;
}

.phone, .email {
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #b388ff;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e1bee7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-services {
    list-style: none;
    padding: 0;
    columns: 2;
    column-gap: 20px;
}

.footer-services li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #e1bee7;
    break-inside: avoid;
}

.footer-services a {
    color: #e1bee7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 2px 0;
}

.footer-services a:hover {
    color: white;
    text-decoration: underline;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
}

.newsletter-form input {
    padding: 12px 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: #ff9800;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #fb8c00;
}

.image-credits {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #b39ddb;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #d1c4e9;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .quick-actions {
        position: static;
        margin-top: 30px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section {
        height: auto;
        min-height: 60vh;
        padding: 40px 0;
    }
    
    .top-info-bar {
        text-align: center;
    }
    
    .info-item {
        justify-content: center;
        margin-bottom: 8px;
    }
    
    .counter-number {
        font-size: 1.8rem;
    }
    
    .counter-label {
        font-size: 0.85rem;
    }
    
    .counter-item {
        padding: 15px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .logo-corner-top-left {
        font-size: 1.5rem;
        top: 15px;
        left: 15px;
    }
    
    .banner-bottom-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .text-corner {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .btn-consultation {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-services {
        columns: 1;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
    
    .blog-list-item {
        flex-direction: column;
    }
    
    .small-thumbnail {
        width: 100%;
        height: 120px;
        margin-bottom: 10px;
    }
    
    .blog-list-content {
        padding-left: 0;
    }
    
    .featured-title {
        font-size: 1.2rem;
    }
    
    .featured-thumbnail {
        height: 200px;
    }
}