/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: #0c71c3;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

/* Top Header */
#top-header {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

#top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-info .phone,
.contact-info .email {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-info .email:hover {
    color: #0c71c3;
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.language-selector {
    display: flex;
    gap: 5px;
    background: white;
    border-radius: 20px;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn:hover {
    color: #0c71c3;
}

.lang-btn.active {
    background: #0c71c3;
    color: white;
}

.flag-icon {
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #0c71c3;
}

/* Main Header */
#main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #0c71c3;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0c71c3;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide:nth-child(1) {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/hero-1.png');
}

.slide:nth-child(2) {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/hero-2.jpg');
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.what-we-do {
    margin: 2rem 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    max-width: 100%;
}

.what-we-do h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-align: center;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    padding-left: 30px;
    position: relative;
}

.check-list li:before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #0c71c3;
    font-weight: bold;
    font-size: 1.2rem;
}

.cta-button {
    display: inline-block;
    background: #0c71c3;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.cta-button:hover {
    background: #095a9e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 113, 195, 0.4);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    pointer-events: none;
    left: 0;
    right: 0;
}

.prev-slide,
.next-slide {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 1001;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(255,255,255,0.3);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
}

/* Welcome Section */
.welcome-section {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0c71c3, #095a9e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: white;
    display: inline-block;
    width: auto;
    height: auto;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-card-list {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: left;
    padding-left: 20px;
}

.service-button {
    display: inline-block;
    background: transparent;
    color: #0c71c3;
    border: 2px solid #0c71c3;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-button:hover {
    background: #0c71c3;
    color: white;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

.about-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-list li {
    margin-bottom: 25px;
    padding-left: 45px;
    position: relative;
    padding-top: 5px;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #0c71c3 0%, #0a5fa0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(12, 113, 195, 0.3);
}

.about-list li:nth-child(1)::before {
    content: '1';
    color: white;
    font-weight: bold;
    font-size: 1rem;
    line-height: 30px;
    text-align: center;
}

.about-list li:nth-child(2)::before {
    content: '2';
    color: white;
    font-weight: bold;
    font-size: 1rem;
    line-height: 30px;
    text-align: center;
}

.about-list li:nth-child(3)::before {
    content: '3';
    color: white;
    font-weight: bold;
    font-size: 1rem;
    line-height: 30px;
    text-align: center;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Diagnóstico Section */
.diagnostico-section {
    padding: 80px 0;
    background: white;
}

.diagnostico-content {
    margin-top: 50px;
}

.diagnostico-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: white;
}

.pilares {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pilar {
    text-align: center;
    padding: 30px 25px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.pilar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pilar i {
    font-size: 3rem;
    color: #0c71c3;
    margin-bottom: 15px;
    display: inline-block;
    width: auto;
    height: auto;
}

.pilar h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.pilar p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    text-align: left;
    margin-top: 10px;
}

.ecografias-frecuentes {
    margin-top: 20px;
    text-align: left;
}

.ecografias-frecuentes h5 {
    font-size: 1.1rem;
    color: #0c71c3;
    margin-bottom: 15px;
    font-weight: 600;
}

.ecografias-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ecografias-list li {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.ecografias-list li:before {
    content: "•";
    color: #0c71c3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.diagnostico-features {
    margin: 40px 0;
}

.diagnostico-features .feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.diagnostico-features .feature i {
    font-size: 2rem;
    color: #0c71c3;
    margin-top: 5px;
    display: inline-block;
    width: auto;
    height: auto;
}

.diagnostico-features .feature h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.diagnostico-features .feature p {
    color: #666;
    line-height: 1.6;
}

.diagnostico-slogan {
    text-align: center;
    font-size: 1.3rem;
    color: white;
    margin-top: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #0c71c3, #095a9e);
    border-radius: 15px;
}

/* Tratamiento Section */
.tratamiento-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.tratamiento-intro {
    text-align: center;
    margin-bottom: 50px;
}

.tratamiento-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.tratamiento-opciones h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #333;
}

.opciones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.opcion {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.opcion:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.opcion i {
    font-size: 3rem;
    color: #0c71c3;
    margin-bottom: 20px;
    display: inline-block;
    width: auto;
    height: auto;
}

.opcion h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.opcion p {
    color: #666;
    margin-bottom: 15px;
}

.opcion ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

.opcion ul li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.opcion ul li:before {
    content: '•';
    color: #0c71c3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Patologías Section */
.patologias-section {
    padding: 80px 0;
    background: white;
}

.patologias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.patologia-categoria {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.patologia-categoria:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.categoria-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.categoria-header i {
    font-size: 2rem;
    color: #0c71c3;
}

.categoria-header h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 0;
}

.patologia-categoria ul {
    list-style: none;
    padding: 0;
}

.patologia-categoria ul li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.patologia-categoria ul li:before {
    content: '→';
    color: #0c71c3;
    position: absolute;
    left: 0;
}

.patologia-categoria p {
    color: #666;
    line-height: 1.6;
}

/* Rehabilitación Section */
.rehabilitacion-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.rehabilitacion-text {
    text-align: center;
    margin-top: 50px;
}

.rehabilitacion-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.rehabilitacion-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.rehabilitacion-features .feature {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.rehabilitacion-features .feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.rehabilitacion-features .feature i {
    font-size: 2.5rem;
    color: #0c71c3;
    margin-bottom: 20px;
    display: inline-block;
    width: auto;
    height: auto;
}

.rehabilitacion-features .feature h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.rehabilitacion-features .feature p {
    color: #666;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-member {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.member-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #0c71c3;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.team-member p {
    color: #666;
    margin-bottom: 20px;
}

.member-details {
    text-align: left;
    margin: 0 0 20px 0;
    padding-left: 20px;
    color: #666;
    line-height: 1.6;
}

.member-details li {
    margin-bottom: 10px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    width: 40px;
    height: 40px;
    background: #0c71c3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background: #095a9e;
    transform: scale(1.1);
}

/* Footer */
.main-footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #0c71c3;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    color: #0c71c3;
}

.footer-button {
    display: inline-block;
    background: #0c71c3;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.footer-button:hover {
    background: #095a9e;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #0c71c3;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.contact-form {
    margin-top: 15px;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-top: 5px;
    margin-bottom: 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #0c71c3;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0c71c3;
}

.submit-button {
    background: #0c71c3;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: #095a9e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-slider {
        height: auto;
        min-height: 500px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .slide {
        min-height: 500px;
        padding: 20px 0;
    }
    
    .slide-content {
        max-width: 100%;
        padding: 20px;
        z-index: 1;
    }
    
    .slider-controls {
        z-index: 1000;
        padding: 0 15px;
        left: 0;
        right: 0;
    }
    
    .prev-slide,
    .next-slide {
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
        z-index: 1001;
        background: rgba(255,255,255,0.3);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .what-we-do {
        padding: 12px;
        margin: 1rem 0;
        max-width: 100%;
    }
    
    .what-we-do h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .check-list {
        margin: 0;
        padding: 0;
    }
    
    .check-list li {
        font-size: 0.85rem;
        padding-left: 20px;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    
    .slide-content .cta-button {
        margin-top: 1rem;
        padding: 12px 25px;
        font-size: 0.85rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .opciones-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 30px;
        padding: 0 20px;
    }
    
    .about-list {
        padding-left: 0;
        margin-top: 20px;
    }
    
    .about-list li {
        margin-bottom: 30px;
        padding-left: 50px;
        padding-right: 10px;
    }
    
    .about-list li::before {
        width: 35px;
        height: 35px;
        top: 5px;
    }
    
    .about-list li:nth-child(1)::before,
    .about-list li:nth-child(2)::before,
    .about-list li:nth-child(3)::before {
        line-height: 35px;
        font-size: 1.1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .pilares {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pilar {
        padding: 25px 20px;
    }
    
    .pilar h4 {
        font-size: 1.1rem;
    }
    
    .pilar p {
        font-size: 0.95rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    #top-header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-right {
        flex-direction: column;
        gap: 10px;
    }
    
    .language-selector {
        order: -1;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 450px;
        max-height: 85vh;
    }
    
    .slide {
        min-height: 450px;
        padding: 15px 0;
    }
    
    .slide-content {
        padding: 15px;
        z-index: 1;
    }
    
    .slider-controls {
        z-index: 1000;
        padding: 0 10px;
        left: 0;
        right: 0;
    }
    
    .prev-slide,
    .next-slide {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        z-index: 1001;
        background: rgba(255,255,255,0.35);
        font-size: 1.2rem;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .slide-content h2 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .what-we-do {
        padding: 10px;
        margin: 0.8rem 0;
    }
    
    .what-we-do h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .check-list li {
        font-size: 0.8rem;
        padding-left: 18px;
        margin-bottom: 0.4rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
    }
    
    .about-section {
        padding: 50px 0;
    }
    
    .about-content {
        padding: 0 15px;
        gap: 30px;
    }
    
    .about-list li {
        margin-bottom: 25px;
        padding-left: 45px;
        padding-right: 5px;
        font-size: 1rem;
    }
    
    .about-list li::before {
        width: 32px;
        height: 32px;
    }
    
    .about-list li:nth-child(1)::before,
    .about-list li:nth-child(2)::before,
    .about-list li:nth-child(3)::before {
        line-height: 32px;
        font-size: 1rem;
    }
}

/* Clinic Gallery Section */
.clinic-gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.clinic-carousel {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f0f0f0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: #0c71c3;
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #0c71c3;
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .clinic-gallery-section {
        padding: 40px 0;
    }
    
    .gallery-description {
        font-size: 0.95rem;
        padding: 0 20px;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .clinic-carousel {
        padding: 0 10px;
    }
    
    .carousel-container {
        height: auto;
        min-height: 250px;
        max-height: 400px;
        aspect-ratio: 4/3;
    }
    
    .carousel-slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-slide img {
        object-fit: contain;
        width: 100%;
        height: auto;
        max-height: 100%;
    }
    
    .carousel-dots {
        margin-top: 15px;
        gap: 8px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-dot.active {
        width: 25px;
    }
}

@media (max-width: 480px) {
    .clinic-gallery-section {
        padding: 30px 0;
    }
    
    .gallery-description {
        font-size: 0.9rem;
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .clinic-carousel {
        padding: 0 5px;
    }
    
    .carousel-container {
        min-height: 200px;
        max-height: 300px;
        aspect-ratio: 4/3;
    }
    
    .carousel-slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-slide img {
        object-fit: contain;
        width: 100%;
        height: auto;
        max-height: 100%;
    }
    
    .carousel-dots {
        margin-top: 10px;
        gap: 6px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-dot.active {
        width: 20px;
    }
} 