* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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



/* Estilos personalizados para el navbar Bootstrap */
.navbar-custom {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 90, 160, 0.1);
    box-shadow: 0 2px 10px rgba(44, 90, 160, 0.1);
    padding: 0.8rem 0;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(44, 90, 160, 0.1));
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: #2c5aa0 !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.08);
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2c5aa0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
    background: #00d4ff;
}

.phone-btn {
    color: #2c5aa0 !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #2c5aa0;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.phone-btn:hover {
    background: #2c5aa0;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.whatsapp-btn {
    color: #25D366 !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #25D366;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.whatsapp-btn:hover {
    background: #25D366;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn {
    color: #25D366 !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #25D366;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.whatsapp-btn:hover {
    background: #25D366;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.lang-selector {
    color: #2c5aa0 !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-selector:hover {
    color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.08);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232c5aa0' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive contact buttons */
.navbar-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 991.98px) {
    .navbar-contact {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        width: 100%;
    }
    
    .phone-btn, .whatsapp-btn, .lang-selector {
        width: 100%;
        text-align: center;
    }
}

/* Ajustar el contenido principal para compensar el navbar fijo */
body {
    padding-top: 85px;
}

/* Enhanced Hero Section with Clean White Background and Clinic Image */
.hero {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.623) 0%, 
        rgba(255, 255, 255, 0.623) 100%), 
        url('imagenes/fondosonrisa.jpg');
    background-size: cover;
    background-position: center right;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #333333; /* Black text */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(44, 90, 160, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: #2c5aa0; /* Dark blue title */
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none; /* Remove text shadow for clean look */
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: clamp(2rem, 2.8vw, 2rem);
    margin-bottom: 2.5rem;
    color: #333333; /* Black text */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: none;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 0.6s both;
    margin-bottom: 3rem;
}

.btn-primary {
    background: rgba(44, 90, 160); /* Celeste buttons */
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    border: 2px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: rgba(44, 90, 160);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(44, 90, 160, 0.1); /* Light blue secondary */
    color: #2c5aa0; /* Dark blue text */
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(44, 90, 160, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: rgba(44, 90, 160, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(44, 90, 160, 0.3);
    border-color: rgba(44, 90, 160, 0.5);
    color: #2c5aa0;
}

/* WhatsApp Icon Only Button */
.btn-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white !important;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border: 2px solid rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-icon:hover {
    background: #128C7E;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: white !important;
}

/* Floating dental elements - REMOVED */

/* Float animation - REMOVED */

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,212,255,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #2c5aa0;
    transform: translateY(-3px);
}

/* Simple Rating Section - Only Stars and Text */
.rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease 0.9s both;
}

.stars {
    display: flex;
    gap: 0.3rem;
}

.stars i {
    color: #ffd700;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: sparkle 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.stars i:nth-child(1) { --i: 0; }
.stars i:nth-child(2) { --i: 1; }
.stars i:nth-child(3) { --i: 2; }
.stars i:nth-child(4) { --i: 3; }
.stars i:nth-child(5) { --i: 4; }

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.rating p {
    font-size: 0.95rem;
    margin: 0;
    color: #333333; /* Black text */
    font-weight: 500;
}

/* Enhanced Diagnóstico Section with White Background */
.diagnostico {
    padding: 6rem 0;
    background: #ffffff; /* Pure white background */
    position: relative;
    overflow: hidden;
}

.diagnostico::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(0, 212, 255, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 75%, rgba(44, 90, 160, 0.05) 0%, transparent 25%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="medical" patternUnits="userSpaceOnUse" width="50" height="50"><circle cx="25" cy="25" r="2" fill="%2300d4ff" opacity="0.1"/><path d="M20,25 L30,25 M25,20 L25,30" stroke="%232c5aa0" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="200" height="200" fill="url(%23medical)"/></svg>');
    background-size: auto, auto, 200px 200px;
    pointer-events: none;
}

.diagnostico-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.diagnostico-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1); /* Celeste shadow */
    border: 1px solid rgba(0, 212, 255, 0.1); /* Celeste border */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.diagnostico-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #0099cc); /* Celeste gradient */
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.diagnostico-card:hover::before {
    transform: scaleX(1);
}

.diagnostico-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.15);
    border-color: rgba(0, 212, 255, 0.2);
}

.diagnostico-card img {
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(44, 90, 160, 0.2));
}

.diagnostico-card:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0, 212, 255, 0.3));
}

.diagnostico-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.diagnostico-card:hover h3 {
    color: #00d4ff;
}

.diagnostico-card p {
    color: #333333; /* Black text */
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2c5aa0; /* Dark blue titles */
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #333333; /* Black text */
    max-width: 800px;
    margin: 0 auto;
}

.diagnostico-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.diagnostico-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.diagnostico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.2);
    border-color: #00d4ff;
}

.diagnostico-card i {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.diagnostico-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

/* Slow Dentistry Section with White Background */
.slow-dentistry {
    padding: 5rem 0;
    background: #ffffff; /* White background */
    color: #333333; /* Black text */
}

.slow-dentistry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.slow-principles {
    display: grid;
    gap: 1.5rem;
}

.principle {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #00d4ff;
    transition: all 0.3s ease;
}

.principle:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(10px);
}

.principle h4 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.comparison-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.comparison-card h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.comparison-card ul {
    list-style: none;
}

.comparison-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comparison-card li:before {
    content: '✓';
    color: #00d4ff;
    margin-right: 0.5rem;
}

/* Servicios Section with White Background */
.servicios {
    padding: 5rem 0;
    background: #ffffff; /* White background */
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.servicio-image {
    height: 200px;
    background: rgba(44, 90, 160);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.servicio-content {
    padding: 2rem;
}

.servicio-content h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.servicio-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.servicio-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.servicio-link:hover {
    color: #2c5aa0;
    transform: translateX(5px);
}

/* Testimonios Section with White Background */
.testimonios {
    padding: 5rem 0;
    background: #ffffff; /* White background */
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonio-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

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

.testimonio-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #00d4ff;
    line-height: 1;
}

.testimonio-rating {
    color: #ffd700;
    margin-bottom: 1rem;
}

.testimonio-text {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #555;
}

.testimonio-author {
    font-weight: bold;
    color: #2c5aa0;
}

/* Contact Section with Clean Design */
.contact {
    padding: 5rem 0;
    background: #ffffff; /* White background */
    color: #333333; /* Black text */
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en la misma línea */
    gap: 1.5rem; /* Menos espacio entre elementos */
    margin-top: 2rem; /* Menos margen superior */
    max-width: 1000px; /* Limitar ancho máximo */
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    background: rgb(0, 213, 255); /* Fondo celeste muy suave */
    padding: 1.2rem; /* Menos padding para hacerlos más pequeños */
    border-radius: 12px; /* Bordes más pequeños */
    border: 1px solid rgba(0, 212, 255, 0.2); /* Borde celeste */
    transition: all 0.3s ease;
    text-align: center;
}

.contact-item:hover {
    background: rgb(235, 235, 235); /* Hover celeste más intenso */
    transform: translateY(-3px); /* Menos elevación */
    box-shadow: 0 8px 20px rgb(0, 213, 255); /* Sombra celeste */
    border-color: rgb(0, 213, 255);
}

.contact-item i {
    font-size: 2rem; /* Íconos más pequeños */
    color: #00d4ff; /* Celeste para los iconos */
    margin-bottom: 0.8rem; /* Menos margen */
}

.contact-item h4 {
    margin-bottom: 0.3rem; /* Menos margen */
    color: #2c5aa0; /* Azul oscuro para los títulos */
    font-size: 1.1rem; /* Títulos más pequeños */
}

.contact-item a {
    color: #00d4ff; /* Enlaces celestes */
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem; /* Texto más pequeño */
}

.contact-item a:hover {
    color: #2c5aa0; /* Hover azul oscuro */
}

/* Enhanced Disclaimer */
.disclaimer {
    font-style: italic;
    color: #777;
    font-size: 0.95rem;
    margin-top: 3rem;
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid #00d4ff;
}

/* Process Steps Enhanced */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background:#2c5aa0;
    z-index: 0;
    opacity: 0.3;
}

.process-step {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95));
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.25);
}

.step-number {
    width: 80px;
    height: 80px;
    background: #00d4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

.step-content h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.step-content p {
    color: #555555;
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* Types Grid */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.type-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95));
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.type-card:hover::before {
    left: 100%;
}

.type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.25);
}

.type-icon {
    width: 90px;
    height: 90px;
    background: #0099cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.type-card:hover .type-icon {
    transform: scale(1.1) rotate(5deg);
}

.type-card h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.type-card p {
    color: #555555;
    text-align: center;
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Special Cards Enhanced */
.motivation-card,
.consultation-card,
.approach-card,
.harmony-card,
.transform-card,
.care-card,
.importance-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(44, 90, 160, 0.08));
    padding: 4rem 3rem;
    border-radius: 25px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.12);
}

.motivation-card::before,
.consultation-card::before,
.approach-card::before,
.harmony-card::before,
.transform-card::before,
.care-card::before,
.importance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%2300d4ff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)" /></svg>') repeat;
    z-index: 0;
}

/* Special Cards Enhanced - Responsive */
.motivation-card,
.consultation-card,
.approach-card,
.harmony-card,
.transform-card,
.care-card,
.importance-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(44, 90, 160, 0.08));
    padding: clamp(3rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);
    border-radius: clamp(20px, 3vw, 30px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    margin-top: clamp(3rem, 5vw, 5rem);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.12);
    transition: all 0.4s ease;
}

.motivation-card:hover,
.consultation-card:hover,
.approach-card:hover,
.harmony-card:hover,
.transform-card:hover,
.care-card:hover,
.importance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.18);
}

.motivation-card::before,
.consultation-card::before,
.approach-card::before,
.harmony-card::before,
.transform-card::before,
.care-card::before,
.importance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%2300d4ff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)" /></svg>') repeat;
    z-index: 0;
}

.motivation-card h2,
.consultation-card h2,
.approach-card h2,
.harmony-card h2,
.transform-card h2,
.care-card h2,
.importance-card h2 {
    color: #2c5aa0;
    margin-bottom: 2rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.motivation-card p,
.consultation-card p,
.approach-card p,
.harmony-card p,
.transform-card p,
.care-card p,
.importance-card p {
    color: #555555;
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    margin: 0;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Care Features */
.care-list,
.approach-features,
.harmony-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.care-item,
.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.care-item:hover,
.feature:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.15);
}

.care-item i,
.feature i {
    color: #00d4ff;
    font-size: 1.5rem;
    min-width: 24px;
}

.care-item span,
.feature span {
    color: #333333;
    font-weight: 500;
    font-size: 1rem;
}

/* Services Grid for specific pages */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95));
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.25);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-item h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.service-item p {
    color: #555555;
    text-align: center;
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Age Timeline for pediatric dentistry */
.age-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.age-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #00d4ff, #2c5aa0);
    z-index: 0;
    opacity: 0.3;
}

.age-stage {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95));
    padding: 2.5rem 2rem;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.age-stage:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 212, 255, 0.25);
}

.age-marker {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.age-content h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.age-content p {
    color: #555555;
    margin: 0;
    line-height: 1.6;
}

/* Process explanation */
.process-explanation {
    background: rgba(0, 212, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 4px solid #00d4ff;
    margin-bottom: 3rem;
}

.process-explanation p {
    color: #444444;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Responsive Design Enhanced */
@media (max-width: 768px) {
    .service-hero {
        padding: 6rem 0 3rem;
    }
    
    .service-hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .service-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .service-subtitle {
        font-size: 1.1rem;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .advantages-grid,
    .benefits-grid,
    .types-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .technology-highlight {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 2rem;
    }
    
    .tech-features {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid::before {
        display: none;
    }
    
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .age-timeline {
        grid-template-columns: 1fr;
    }
    
    .age-timeline::before {
        display: none;
    }
    
    .care-list,
    .approach-features,
    .harmony-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-hero {
        padding: 5rem 0 2rem;
    }
    
    .service-hero-content h1 {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .treatment-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .advantage-card,
    .benefit-card,
    .type-card,
    .service-item,
    .process-step {
        padding: 2rem 1.5rem;
    }
    
    .technology-highlight,
    .motivation-card,
    .consultation-card,
    .approach-card,
    .harmony-card,
    .transform-card,
    .care-card,
    .importance-card {
        padding: 2.5rem 2rem;
    }
}

/* Responsive Design - Mobile First Enhanced */
@media (max-width: 480px) {
    .service-hero {
        padding: 6rem 0 4rem;
        min-height: 60vh;
    }
    
    .service-hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1.2rem 2rem;
    }
    
    .service-content {
        padding: 4rem 0;
    }
    
    .service-content .container {
        padding: 0 1rem;
    }
    
    .content-section {
        margin-bottom: 5rem;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .content-text {
        text-align: left;
    }
    
    .advantages-grid,
    .benefits-grid,
    .types-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2.5rem;
    }
    
    .advantage-card,
    .benefit-card,
    .type-card,
    .service-item {
        padding: 2.5rem 2rem;
        border-radius: 20px;
    }
    
    .advantage-icon,
    .benefit-icon,
    .type-icon,
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .technology-highlight {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 2rem;
        gap: 3rem;
        border-radius: 20px;
    }
    
    .tech-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .feature {
        padding: 1rem;
        border-radius: 12px;
        justify-content: center;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .process-grid::before {
        display: none;
    }
    
    .process-step {
        padding: 3rem 2rem;
        border-radius: 20px;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .cta-section {
        padding: 4rem 2rem;
        margin-top: 5rem;
        border-radius: 20px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .treatment-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .treatment-card {
        padding: 2rem 1.5rem;
    }
    
    .treatment-card img {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .service-hero {
        padding: 8rem 0 5rem;
        min-height: 65vh;
    }
    
    .service-hero .container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
        padding: 0 1.5rem;
    }
    
    .service-content {
        padding: 6rem 0;
    }
    
    .service-content .container {
        padding: 0 1.5rem;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .advantages-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .types-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .technology-highlight {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 3rem;
        gap: 4rem;
    }
    
    .tech-features {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .process-grid::before {
        display: none;
    }
    
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-section {
        padding: 5rem 3rem;
    }
    
    .cta-actions {
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .service-hero .container {
        gap: 4rem;
        padding: 0 2rem;
    }
    
    .advantages-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .types-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .technology-highlight {
        padding: 4rem 3rem;
        gap: 4rem;
    }
    
    .tech-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .treatment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .service-hero .container {
        max-width: 1200px;
        gap: 5rem;
    }
    
    .advantages-grid,
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .types-grid,
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .treatment-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1441px) {
    .service-hero .container {
        max-width: 1400px;
        gap: 6rem;
    }
    
    .advantages-grid,
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .advantage-card,
    .benefit-card,
    .type-card,
    .service-item {
        padding: 4rem 3.5rem;
    }
    
    .technology-highlight {
        padding: 6rem 5rem;
        gap: 6rem;
    }
    
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    
    .process-step {
        padding: 5rem 4rem;
    }
    
    .cta-section {
        padding: 7rem 5rem;
    }
    
    .treatment-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2.5rem;
    }
}

/* Enhanced Typography Scale */
html {
    font-size: 16px;
}

@media (min-width: 320px) {
    html {
        font-size: calc(16px + 6 * ((100vw - 320px) / 680));
    }
}

@media (min-width: 1000px) {
    html {
        font-size: 18px;
    }
}

@media (min-width: 1400px) {
    html {
        font-size: 20px;
    }
}

/* Container responsive */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styles */
::selection {
    background: rgba(0, 212, 255, 0.2);
    color: #2c5aa0;
}

::-moz-selection {
    background: rgba(0, 212, 255, 0.2);
    color: #2c5aa0;
}

/* Footer */
.footer {
    background: #1e3a5f;
    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-section h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.3rem 0;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.payment-icon {
    background: white;
    padding: 0.5rem;
    border-radius: 5px;
    color: #2c5aa0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}



/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Revolutionary Mobile-First Responsive Design */
@media (max-width: 1200px) {
    .hero::after {
        width: 150px;
        height: 150px;
        right: 5%;
    }
}

@media (max-width: 1024px) {
    .hero {
        min-height: 90vh;
    }
    
    .hero::after {
        display: none;
    }
    
    .diagnostico-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding-bottom: 2rem;
    }
    
    .hero-container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: clamp(0.95rem, 4vw, 1.2rem);
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 1.2rem 2rem;
        font-size: 1rem;
        text-align: center;
        justify-content: center;
    }
    
    .rating {
        max-width: 280px;
        padding: 1.2rem;
    }

    .slow-dentistry-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .principle {
        padding: 1.5rem;
    }
    
    .slow-description {
        padding: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
    
    .diagnostico {
        padding: 4rem 0;
    }
    
    .diagnostico-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .diagnostico-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }
    
    .section-title p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
    
    .tech-features {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Ultra-responsive mobile design */
@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
        padding-bottom: 1rem;
    }
    
    .hero-container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 10vw, 2.2rem);
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: clamp(0.9rem, 4.5vw, 1.1rem);
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 260px;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 40px;
    }
    
    .rating {
        max-width: 260px;
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .stars i {
        font-size: 1.1rem;
    }
    
    .rating p {
        font-size: 0.85rem;
    }
    
    .diagnostico {
        padding: 3rem 0;
    }
    
    .diagnostico-grid {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .diagnostico-card {
        padding: 1.8rem 1.2rem;
        border-radius: 15px;
        margin: 0;
    }
    
    .diagnostico-card h3 {
        font-size: 1.1rem;
    }
    
    .diagnostico-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: clamp(1.5rem, 8vw, 2rem);
        line-height: 1.2;
    }
    
    .section-title p {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        line-height: 1.4;
    }
    
    .principle {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .principle h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .principle p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .slow-description {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .slow-description h3 {
        font-size: 1.2rem;
    }
    
    .slow-description p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .contact-item {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .contact-item i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .mobile-nav-content {
        padding: 1.5rem 1rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero {
        min-height: 80vh;
    }
    
    .hero-container {
        padding: 0 0.8rem;
    }
    
    .hero h1 {
        font-size: clamp(1.3rem, 12vw, 1.8rem);
        margin-bottom: 0.6rem;
    }
    
    .hero p {
        font-size: clamp(0.85rem, 5vw, 1rem);
        margin-bottom: 1.2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        max-width: 240px;
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .rating {
        max-width: 240px;
        padding: 0.8rem;
    }
    
    .diagnostico-card {
        padding: 1.5rem 1rem;
    }
    
    .section-title h2 {
        font-size: clamp(1.3rem, 10vw, 1.7rem);
    }
    
    .section-title p {
        font-size: clamp(0.8rem, 4vw, 0.95rem);
    }
}

/* Innovative Dental-Themed Creative Elements */

/* Pulsing dental health indicator */
.health-indicator {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 999;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.health-indicator:hover {
    opacity: 1;
}

.health-pulse {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00d4ff, #2c5aa0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: healthPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

@keyframes healthPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
    }
}

/* Floating medical particles */
.medical-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 8s linear infinite;
}

.particle:nth-child(2n) {
    background: rgba(44, 90, 160, 0.2);
    animation-duration: 10s;
    animation-delay: -2s;
}

.particle:nth-child(3n) {
    background: rgba(255, 255, 255, 0.1);
    animation-duration: 12s;
    animation-delay: -4s;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Advanced Testimonial Cards */
.testimonio-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(44, 90, 160, 0.05);
}

.testimonio-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    color: rgba(0, 212, 255, 0.1);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.testimonio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.15);
    border-color: rgba(0, 212, 255, 0.2);
}

.testimonio-rating {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.testimonio-rating i {
    color: #ffd700;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.testimonio-card:hover .testimonio-rating i {
    animation: starGlow 0.6s ease;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes starGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.testimonio-text {
    font-style: italic;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.testimonio-author {
    font-weight: 600;
    color: #2c5aa0;
    text-align: center;
    position: relative;
}

.testimonio-author::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #2c5aa0);
    border-radius: 2px;
}

/* Enhanced Service Cards */
.servicio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid rgba(44, 90, 160, 0.05);
}

.servicio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(44, 90, 160, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.servicio-card:hover::after {
    opacity: 1;
}

.servicio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.15);
    border-color: rgba(0, 212, 255, 0.2);
}

.servicio-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.servicio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.servicio-card:hover .servicio-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.servicio-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.servicio-content h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.servicio-card:hover .servicio-content h3 {
    color: #00d4ff;
}

.servicio-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.servicio-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.servicio-link:hover {
    color: #2c5aa0;
    transform: translateX(5px);
}

.servicio-link i {
    transition: transform 0.3s ease;
}

.servicio-link:hover i {
    transform: translateX(3px);
}

/* Enhanced Scroll to top button with dental theme */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(44, 90, 160);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-top:hover {
    background: linear-gradient(135deg, #2c5aa0, #00d4ff);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.scroll-top:active {
    transform: translateY(-3px) scale(1.05);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 12px 35px rgba(0, 212, 255, 0.5);
    }
}

/* Enhanced Services Section */
.servicios {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><defs><pattern id="dental-bg" patternUnits="userSpaceOnUse" width="60" height="60"><circle cx="30" cy="30" r="1" fill="%2300d4ff" opacity="0.1"/><path d="M25,30 Q30,25 35,30 Q30,35 25,30" fill="%232c5aa0" opacity="0.05"/></pattern></defs><rect width="300" height="300" fill="url(%23dental-bg)"/></svg>');
    background-size: 300px 300px;
    opacity: 0.5;
    pointer-events: none;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* Enhanced Testimonials Section */
.testimonios {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fbff 0%, #e6f3ff 100%);
    position: relative;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* Enhanced Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1a4480 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="contact-pattern" patternUnits="userSpaceOnUse" width="80" height="80"><circle cx="40" cy="40" r="2" fill="%2300d4ff" opacity="0.2"/><path d="M35,40 L45,40 M40,35 L40,45" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="400" height="400" fill="url(%23contact-pattern)"/></svg>');
    background-size: 400px 400px;
    pointer-events: none;
}

.contact .section-title h2,
.contact .section-title p {
    color: white;
}

/* Payment methods styling */
.payment-methods {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-start;
    align-items: center;
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Final accessibility and performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .health-pulse,
    .particle,
    .scroll-top.visible,
    .shimmer,
    .sparkle,
    .float {
        animation: none !important;
    }
    
    .hero::after {
        display: none;
    }
    
    * {
        transition-duration: 0.1s !important;
        animation-duration: 0.1s !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .mobile-nav-link:active {
        background: rgba(0, 212, 255, 0.2);
        transform: scale(0.98);
    }
    
    .diagnostico-card:active,
    .servicio-card:active,
    .testimonio-card:active {
        transform: scale(0.98);
    }
}

/* Progressive enhancement */
@supports (backdrop-filter: blur(10px)) {
    .rating,
    .scroll-top {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

@supports (background-clip: text) {
    .hero h1 {
        background-clip: text;
        -webkit-background-clip: text;
    }
}

/* Loading animation for images */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #00d4ff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: rgba(44, 90, 160, 0.1);
    border: 2px solid rgba(44, 90, 160, 0.2);
    color: #2c5aa0;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1002;
    position: relative;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.1);
}

.mobile-menu-btn:hover {
    background: rgba(44, 90, 160, 0.15);
    border-color: rgba(44, 90, 160, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.2);
}

/* Hamburger Lines */
.hamburger-line {
    width: 22px;
    height: 2.5px;
    background-color: #2c5aa0;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.mobile-menu-btn.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.mobile-menu-btn.active .hamburger-line {
    background-color: #00d4ff;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1001;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    border-right: 1px solid rgba(44, 90, 160, 0.1);
}

.mobile-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    color: #2c5aa0;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 251, 255, 0.95) 50%, 
        rgba(240, 248, 255, 0.9) 100%);
}

/* Mobile Navigation Header */
.mobile-nav-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 1.5rem 0;
    border-bottom: 2px solid rgba(44, 90, 160, 0.1);
    margin-bottom: 2.5rem;
}

.mobile-logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(44, 90, 160, 0.2));
}

/* Mobile Navigation Links */
.mobile-nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 1.8rem;
    color: #2c5aa0;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(44, 90, 160, 0.1);
    margin-bottom: 0.5rem;
    transform: translateY(30px);
    opacity: 0;
    animation: slideInMobile 0.6s ease forwards;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(44, 90, 160, 0.08);
}

.mobile-nav.active .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav.active .mobile-nav-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav.active .mobile-nav-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav.active .mobile-nav-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-nav.active .mobile-nav-link:nth-child(5) { animation-delay: 0.5s; }

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.mobile-nav-link i {
    font-size: 1.4rem;
    color: #00d4ff;
    width: 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover i {
    transform: scale(1.1);
    color: #0099cc;
}

/* Mobile Contact Section */
.mobile-nav-contact {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 2.5rem 0;
    border-top: 2px solid rgba(44, 90, 160, 0.1);
    margin-bottom: 1.5rem;
}

.mobile-contact-item {
    transform: translateY(30px);
    opacity: 0;
    animation: slideInMobile 0.6s ease forwards;
}

.mobile-nav.active .mobile-contact-item:nth-child(1) { animation-delay: 0.6s; }
.mobile-nav.active .mobile-contact-item:nth-child(2) { animation-delay: 0.7s; }
.mobile-nav.active .mobile-contact-item:nth-child(3) { animation-delay: 0.8s; }

.mobile-phone-btn,
.mobile-whatsapp-btn,
.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.8rem;
    color: white;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-phone-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
}

.mobile-whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.mobile-lang-btn {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.9) 0%, rgba(30, 58, 95, 0.9) 100%);
    color: white;
}

.mobile-phone-btn:hover,
.mobile-whatsapp-btn:hover,
.mobile-lang-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.mobile-phone-btn:hover {
    background: linear-gradient(135deg, #0099cc 0%, #00d4ff 100%);
}

.mobile-whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

.mobile-lang-btn:hover {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(44, 90, 160, 0.95) 100%);
}

.mobile-phone-btn i,
.mobile-whatsapp-btn i,
.mobile-lang-btn i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

/* Mobile Navigation Footer */
.mobile-nav-footer {
    text-align: center;
    padding: 1.5rem 0;
    font-style: italic;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(44, 90, 160, 0.7);
    transform: translateY(30px);
    opacity: 0;
    animation: slideInMobile 0.6s ease forwards;
    animation-delay: 0.9s;
    border-top: 1px solid rgba(44, 90, 160, 0.1);
    letter-spacing: 0.5px;
}

.mobile-nav.active .mobile-nav-footer {
    opacity: 0.8;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-img {
    animation: pulse 3s ease-in-out infinite;
}

.logo-img:hover {
    animation: none;
}

/* Touch devices - disable hover animations that don't work well */
@media (hover: none) {
    .mobile-nav-link:hover {
        background: rgba(255, 255, 255, 0.7);
        border-color: rgba(44, 90, 160, 0.1);
        transform: none;
        box-shadow: 0 4px 20px rgba(44, 90, 160, 0.08);
        color: #2c5aa0;
    }
    
    .mobile-phone-btn:hover,
    .mobile-whatsapp-btn:hover,
    .mobile-lang-btn:hover {
        transform: none;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-menu-btn:hover {
        background: rgba(44, 90, 160, 0.1);
        border-color: rgba(44, 90, 160, 0.2);
        transform: none;
        box-shadow: 0 4px 15px rgba(44, 90, 160, 0.1);
    }
    
    .nav-menu a:hover {
        background: transparent;
        transform: none;
    }
    
    .phone-btn:hover,
    .lang-selector:hover {
        transform: none;
    }
}

/* Better focus states for accessibility */
.mobile-nav-link:focus,
.mobile-phone-btn:focus,
.mobile-whatsapp-btn:focus,
.mobile-lang-btn:focus {
    outline: 3px solid #00d4ff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(0, 212, 255, 0.2);
}

.mobile-menu-btn:focus {
    outline: 3px solid #00d4ff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(0, 212, 255, 0.2);
}

.nav-menu a:focus,
.phone-btn:focus,
.lang-selector:focus {
    outline: 3px solid #00d4ff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(0, 212, 255, 0.2);
}

/* Improved scrollbar for mobile menu */
.mobile-nav::-webkit-scrollbar {
    width: 6px;
}

.mobile-nav::-webkit-scrollbar-track {
    background: rgba(44, 90, 160, 0.1);
    border-radius: 3px;
}

.mobile-nav::-webkit-scrollbar-thumb {
    background: rgba(44, 90, 160, 0.3);
    border-radius: 3px;
}

.mobile-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 90, 160, 0.5);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

/* Improved typography for small screens */
@media (max-width: 480px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    h3 {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 0.6rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .section-title p {
        font-size: 0.9rem;
    }
}

/* Enhanced focus visibility for all interactive elements */
*:focus {
    outline: 3px solid #00d4ff !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 6px rgba(0, 212, 255, 0.2) !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .mobile-nav {
        transition: none;
    }
    
    .mobile-nav-link,
    .mobile-contact-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header {
        background: #fff;
        border-bottom: 3px solid #000;
    }
    
    .nav-menu a {
        color: #000;
        border: 2px solid transparent;
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .phone-btn {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .lang-selector {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .mobile-nav {
        background: #fff;
        border: 3px solid #000;
    }
    
    .mobile-nav-link {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link:focus {
        background: #000;
        color: #fff;
    }
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
    .mobile-nav-link,
    .mobile-phone-btn,
    .mobile-whatsapp-btn,
    .mobile-lang-btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }
    
    .mobile-menu-btn {
        min-width: 48px;
        min-height: 48px;
    }
    
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .contact-item a {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        padding: 0.5rem;
    }
}

/* Better spacing for small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .diagnostico-grid,
    .servicios-grid,
    .testimonios-grid {
        gap: 1.5rem;
    }
    
    .hero-actions {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .rating {
        margin-top: 2rem;
    }
    
    .contact-info {
        gap: 2rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
}

/* Improved readability */
.testimonio-text,
.principle p,
.slow-description p {
    text-align: left;
    max-width: 65ch;
}

/* Better button states */
.btn-primary:focus,
.btn-secondary:focus,
.phone-btn:focus,
.lang-selector:focus {
    transform: none;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Featured service styling */
.featured-service {
    margin-top: 4rem;
    background: linear-gradient(135deg, #00d4ff, #2c5aa0);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: white;
}

.featured-service h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-service p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .featured-service {
        padding: 2rem;
        margin-top: 3rem;
    }
    
    .featured-service h3 {
        font-size: 1.5rem;
    }
    
    .featured-service p {
        font-size: 1rem;
    }
}

/* Address styling */
address {
    font-style: normal;
    line-height: 1.5;
}

/* Horarios styling */
.horarios p {
    margin-bottom: 0.3rem;
}

/* Improved mobile navigation performance */
.mobile-nav {
    will-change: transform, opacity;
}

.mobile-nav-link {
    will-change: transform, opacity;
}

/* Better loading for images */
img {
    max-width: 100%;
    height: auto;
}

.servicio-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Slow Dentistry Content */
.slow-dentistry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.slow-principles {
    display: grid;
    gap: 2rem;
}

.principle {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.1);
    border-left: 4px solid #00d4ff;
}

.principle h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.slow-description {
    background: rgba(44, 90, 160, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
}

.slow-description h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.contact-item a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slow-dentistry-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .principle {
        padding: 1.5rem;
    }
    
    .slow-description {
        padding: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .principle {
        padding: 1rem;
    }
    
    .principle h3 {
        font-size: 1.1rem;
    }
    
    .slow-description {
        padding: 1.5rem;
    }
    
    .slow-description h3 {
        font-size: 1.3rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item i {
        font-size: 2rem;
    }
}

/* RESPONSIVE DESIGN - Mobile First Approach */

/* Base styles - Mobile first */
@media (min-width: 0px) {
    .header {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 10px rgba(44, 90, 160, 0.1);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
    }
    
    .nav-container {
        padding: 0.8rem 1rem;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: transparent;
    }
    
    .logo {
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
    }
    
    .logo-img {
        height: 35px;
        width: auto;
        display: block !important;
        max-width: 150px;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .desktop-contact {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1003;
    }
    
    .hamburger-line {
        width: 100%;
        height: 3px;
        background: #2c5aa0;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    /* Hero mobile fixes */
    .hero {
        padding-top: 60px !important;
        background-attachment: scroll !important;
        min-height: 100vh;
    }
    
    .hero-container {
        padding: 1rem !important;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
        line-height: 1.5;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        text-align: center;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }
}

/* Tablet styles */
@media (min-width: 769px) {
    .nav-container {
        padding: 1rem 1.5rem;
        height: 70px;
    }
    
    .logo-img {
        height: 45px;
    }
}

/* Desktop styles */
@media (min-width: 993px) {
    .nav-container {
        padding: 1rem 2rem;
        height: 70px;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .desktop-menu {
        display: flex !important;
    }
    
    .desktop-contact {
        display: flex !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Large desktop */
@media (min-width: 1201px) {
    .nav-container {
        padding: 1rem 2rem;
        height: 75px;
    }
    
    .logo-img {
        height: 50px;
    }
}