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

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.7; color: #4a4a4a; background-color: #fdfdfd; }

/* Header y navegación */
header { padding: 1.2rem 0; background: #fff; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(2px); }
header nav { display: flex; justify-content: center; align-items: center; gap: 2rem; flex-wrap: wrap; max-width: 1100px; margin: auto; }
header a { text-decoration: none; color: #888; font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; padding: 8px 0; border-bottom: 2px solid transparent; }
header a:hover, header a.active { color: #2c3e50; border-bottom-color: #2c3e50; }

/* Secciones generales */
section { padding: 4rem 5%; max-width: 1000px; margin: auto; text-align: center; }
#inicio { background: linear-gradient(135deg, #f8f9fa 0%, #f1f4f6 100%); border-radius: 30px; margin: 2rem auto; padding: 5rem 5%; border: 1px solid #e9ecef; }
h1 { color: #2c3e50; margin-bottom: 1rem; font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; }
.subtitulo { font-size: clamp(1rem, 4vw, 1.3rem); color: #6c757d; margin-bottom: 2rem; }
h2 { color: #2c3e50; margin-bottom: 2rem; font-size: clamp(1.6rem, 5vw, 2rem); position: relative; display: inline-block; }
h2::after { content: ''; display: block; width: 60px; height: 3px; background: #6b8e8e; margin: 10px auto 0; border-radius: 3px; }

/* Perfil */
.perfil-img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid white; box-shadow: 0 8px 20px rgba(0,0,0,0.1); transition: transform 0.3s; }
.perfil-img:hover { transform: scale(1.02); }
.resaltado-matricula { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 16px; padding: 15px 25px; display: inline-block; margin-top: 20px; font-weight: 600; color: #2c3e50; }

/* Botón CTA */
.btn-cta { display: inline-block; padding: 14px 32px; background-color: #2c3e50; color: white; border: none; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 12px rgba(44,62,80,0.2); text-decoration: none; font-size: 1rem; }
.btn-cta:hover { background-color: #3e5871; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(44,62,80,0.3); }

/* Servicios grid */
.servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-top: 20px; }
.servicio-card { background: white; padding: 25px; border-radius: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.3s; border: 1px solid #f0f0f0; text-align: center; }
.servicio-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: #6b8e8e; }
.servicio-card h3 { color: #2c3e50; margin-bottom: 10px; }
.servicio-card p { font-size: 0.9rem; color: #6c757d; }

/* Acordeón mejorado */
.acordeon { margin-bottom: 15px; border: 1px solid #e9ecef; border-radius: 16px; background: white; overflow: hidden; transition: box-shadow 0.2s; }
.acordeon-header { width: 100%; padding: 18px 24px; background: white; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #2c3e50; font-size: 1rem; transition: background 0.2s; }
.acordeon-header:hover { background: #f8f9fa; }
.acordeon-header span { font-size: 1.5rem; transition: transform 0.2s; }
.acordeon-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #fefefe; padding: 0 24px; color: #555; }
.acordeon-body p { margin: 0 0 18px 0; }

/* Testimonios */
.testimonios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 20px; }
.testimonio-card { background: #f9f9f9; padding: 25px; border-radius: 20px; border-left: 4px solid #6b8e8e; text-align: left; transition: transform 0.2s; }
.testimonio-card:hover { transform: translateX(5px); }
.testimonio-card span { display: block; margin-top: 15px; font-weight: bold; color: #6b8e8e; }

/* Formulario de turnos */
.form-turno { max-width: 600px; margin: 30px auto 0; text-align: left; background: white; padding: 30px; border-radius: 28px; box-shadow: 0 8px 25px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #2c3e50; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 30px; font-family: inherit; transition: 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #6b8e8e; box-shadow: 0 0 0 3px rgba(107,142,142,0.2); }
.checkbox-group label { display: flex; align-items: center; gap: 10px; font-weight: normal; cursor: pointer; }
.checkbox-group input { width: auto; margin-right: 8px; }
.form-turno button { width: 100%; margin-top: 10px; background-color: #25d366; box-shadow: none; }
.form-turno button:hover { background-color: #1ebea5; transform: none; }
.form-mensaje { margin-top: 20px; text-align: center; font-weight: 500; }

/* Mapa */
.mapa-container { border-radius: 24px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.direccion { font-weight: 600; font-size: 1rem; color: #2c3e50; }

/* WhatsApp flotante */
.wa-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(37,211,102,0.4); z-index: 1000; transition: all 0.3s; animation: pulse 2s infinite; }
.wa-float:hover { background-color: #1ebea5; transform: translateY(-5px) scale(1.05); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); } 70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* Footer con crédito */
footer { background: #2c3e50; color: #bdc3c7; text-align: center; padding: 2rem 5%; margin-top: 4rem; }
footer p { margin: 5px 0; font-size: 0.85rem; }
footer .by-beluz a { color: #a0c4c4; text-decoration: none; transition: color 0.2s; }
footer .by-beluz a:hover { color: white; text-decoration: underline; }

/* Animaciones con Intersection Observer */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    header nav { gap: 0.8rem; }
    header a { font-size: 0.7rem; padding: 5px 8px; }
    section { padding: 2.5rem 5%; }
    #inicio { padding: 3rem 5%; }
    .form-turno { padding: 20px; }
    .wa-float { width: 55px; height: 55px; bottom: 20px; right: 20px; }
}