* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html 
{
    font-size: 16px;
    scroll-behavior: smooth;
}

body 
{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, select, button 
{
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    font-family: inherit;
}

img 
{
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    pointer-events: none;
}

a, button 
{
    pointer-events: auto;
    cursor: pointer;
}

.header 
{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    
    padding: 0.5rem 15px; 
    
    background: #000000;
    color: #ffffff;
    width: 100%;
    max-width: 100%;
    position: relative;
    gap: 1rem;
}

.logo-container 
{
    display: flex;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #ffffff;
    flex-shrink: 0; 
    margin-right: auto; 
}

.logo-container img 
{
    width: 70px;
    height: auto;
}

.logo-container div 
{
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    white-space: nowrap;
}

.header h1 
{
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.1;
    text-align: center;
}

.eslogan 
{
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.9;
    text-align: center;
    margin-top: 2px;
}

.contacto-container 
{
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem; 
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.contacto-container a 
{
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

/* Botón de acceso destacado en escritorio */
.contacto-container a[href*="acceso"] {
    border: 1px solid #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    margin-left: 10px;
}

.contacto-container a[href*="acceso"]:hover {
    background: #ffffff;
    color: #000000;
}

/* --- FIN HEADER --- */

.formulario-cita 
{
    background: #ffffff;
    padding: 1.5rem;
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.formulario-cita h2 
{
    text-align: center;
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.grupo-campo 
{
    margin-bottom: 1rem;
}

.grupo-campo label 
{
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #000000;
}

.opciones-servicio 
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.opciones-servicio label 
{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="email"],
input[type="tel"],
select 
{
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #000000;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.2s;
    
    /* --- CORRECCIONES PARA MÓVILES --- */
    background-color: #ffffff;   /* Fuerza el fondo blanco (quita el gris de iOS) */
    -webkit-appearance: none;    /* Elimina el estilo nativo de iPhone/Safari */
    appearance: none;            /* Elimina el estilo nativo en otros móviles */
    min-height: 50px;            /* Asegura que todos tengan la misma altura mínima */
    line-height: normal;         /* Centra el texto verticalmente de forma consistente */
    color: #000000;              /* Asegura que el texto sea negro */
}

input:focus,
select:focus 
{
    border-color: #000000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,105,170,0.2);
}

.btn-cita 
{
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    transition: background 0.3s;
}

.btn-cita:hover 
{
    background: #333;
}

.whatsapp-float 
{
    position: fixed;
    right: 0rem;
    bottom: 0.5rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover 
{
    transform: scale(1.1);
}

.whatsapp-float img 
{
    width: 32px;
    height: 32px;
    pointer-events: none;
}

.footer 
{
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

.footer p 
{
    margin: 0.3rem 0;
}

.contenido-principal 
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.informacion-empresa 
{
    background: #ffffff;
    padding: 1.5rem;
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.informacion-empresa h2 
{
    text-align: center;
    margin-bottom: 1.5rem;
}

.informacion-empresa .beneficios 
{
    margin-bottom: 2rem;
}

.eslogan-destacado 
{
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.beneficios 
{
    margin: 1rem 0;
}

.beneficios p 
{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.beneficios i 
{
    color: #000000;
    width: 20px;
}


.botones-contacto 
{
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    justify-content: center;
    margin-top: 1.5rem;
    width: 100%;
}

.btn-llamar, .btn-ubicar, .btn-escribir
{
    align-items: center;
    justify-content: center;
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    min-width: 140px;
}

.btn-llamar:hover, .btn-ubicar:hover, .btn-escribir:hover
{
    background: #333;
    transform: translateY(-2px) scale(1.03);
}

.formulario-cita 
{
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Estilos para la sección de videos */
.seccion-videos 
{
    padding: 60px 5%;
    background-color: #fff; /* O puedes usar #f9f9f9 para diferenciar el fondo */
    text-align: center;
}

.contenedor-videos 
{
    display: flex;
    justify-content: space-between; /* Distribuye espacio entre los videos */
    gap: 20px; /* Espacio entre cada tarjeta */
    flex-wrap: wrap; /* Permite que bajen si no hay espacio */
    margin-top: 30px;
}

.tarjeta-video 
{
    flex: 1; /* Todos ocupan el mismo ancho */
    min-width: 220px; /* Ancho mínimo antes de saltar de línea */
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.tarjeta-video:hover 
{
    transform: translateY(-5px); /* Efecto al pasar el mouse */
}

.marco-video 
{
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporción 16:9 para YouTube */
    height: 0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.marco-video iframe 
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tarjeta-video h3 
{
    font-size: 1.1rem;
    color: #333; /* Color oscuro similar al de tu diseño */
    margin-bottom: 10px;
    font-weight: bold;
}

.tarjeta-video p 
{
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* RESPONSIVE: Para móviles */
@media (max-width: 900px) {
    .contenedor-videos {
        flex-direction: column; /* Pone los videos uno debajo del otro */
        align-items: center;
    }

    .tarjeta-video {
        width: 100%;
        max-width: 400px;
    }
}
/* =========================================
   MEDIA QUERIES (TABLETS Y MÓVILES)
   ========================================= */

@media (max-width: 1024px) 
{
    /* 1. Header en columna vertical */
    .header {
        flex-direction: column;
        justify-content: center;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    /* 2. Logo, nombre y eslogan centrados */
    .logo-container {
        flex-direction: column; /* Logo arriba, texto abajo */
        text-align: center;
        justify-content: center;
        margin-right: 0; /* Reset del margen de escritorio */
        width: 100%;
    }

.logo-container div 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: nowrap;
}
    
.header h1 
{
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.1;
    text-align: center;
}

.eslogan 
{
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.9;
    text-align: center;
    margin-top: 2px;
}

    .contacto-container 
    {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        gap: 0.8rem;
        text-align: center;
    }

    .contacto-container a 
    {
        justify-content: center;
        width: 100%;
        font-size: 1rem;
    }

    .contacto-container a[href*="acceso"] 
    {
        order: 10; 
        margin-top: 1rem; 
        background-color: #333; 
        color: white;
        width: 80%; /* Ocupa buena parte del ancho */
        justify-content: center;
        padding: 0.8rem;
        border: none;
        margin-left: 0; /* Reset del margen izquierdo */
    }

    /* Ajustes generales de layout móvil */
    .contenido-principal {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .informacion-empresa, 
    .formulario-cita {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }


    .fila-dos-columnas,
    .fila-tres-columnas 
    {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.3rem;
    }
    
    .opciones-servicio {
        grid-template-columns: 1fr;
    }

    .btn-llamar, 
    .btn-ubicar, 
    .btn-escribir {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    html {
        font-size: 14px; /* Ajuste ligero de fuente base */
    }
    
    /* El botón de acceso ocupa TODO el ancho en pantallas muy pequeñas */
    .contacto-container a[href*="acceso"] {
        width: 100%;
    }
}

.fila-dos-columnas,
.fila-tres-columnas 
{
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fila-dos-columnas .grupo-campo,
.fila-tres-columnas .grupo-campo 
{
    flex: 1;
    min-width: 0;
}

/* --- ESTILOS PARA SERVICIOS DESTACADOS --- */
.servicios-destacados {
    padding: 3rem 1rem;
    background-color: #f4f4f4;
    text-align: center;
}

.titulo-seccion h2 
{
    font-size: 2rem;
    color: #000000;
    margin-bottom: 0.5rem;
}

.linea-dorada 
{
    width: 60px;
    height: 3px;
    background: #c5a059;
    margin: 0 auto 2rem auto;
}

.contenedor-tarjetas 
{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tarjeta-servicio 
{
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1 1 250px;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tarjeta-servicio:hover 
{
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-bottom: 3px solid #c5a059;
}

.icono-servicio 
{
    font-size: 2.5rem;
    color: #c5a059;
    margin-bottom: 1rem;
}

.tarjeta-servicio h3 
{
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* --- ESTILOS PARA TESTIMONIOS --- */
.testimonios 
{
    padding: 3rem 1rem;
    color: #ffffff;
    text-align: center;
}

.testimonios h2 
{
    font-size: 2rem;
    color: #000000;
    margin-bottom: 0.5rem;
}

.contenedor-testimonios 
{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.caja-testimonio 
{
    background: #000000;
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1 1 300px;
    max-width: 350px;
    position: relative;
    text-align: center;
}

.caja-testimonio p 
{
    font-style: italic;
    color: #ffffff;
    margin-bottom: 1rem;
}

.caja-testimonio .autor 
{
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #ffffff;
    justify-content: flex-end;
}

.caja-testimonio .estrellas 
{
    color: #ffd700;
    margin-top: 5px;
    text-align: right;
}

@media (max-width: 768px) 
{
    .tarjeta-servicio, 
    .caja-testimonio 
    {
        max-width: 100%;
    }
}

/* =========================================
   ANIMACIÓN DE APARICIÓN (ZOOM SCROLL)
   ========================================= */

.animar-zoom 
{
    opacity: 0;
    transform: scale(0.5) translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.animar-zoom.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* =========================================
   PANTALLA DE CARGA / ÉXITO
   ========================================= */
.overlay-oculto {
    display: none; /* Oculto por defecto */
}

.overlay-activo {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95); /* Fondo oscuro elegante */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.contenedor-animacion {
    width: 80%;
    max-width: 500px;
    text-align: center;
}

/* Pista de la barra de progreso */
.pista-progreso {
    position: relative;
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.barra-relleno 
{
    width: 0%;
    height: 100%;
    background-color: #c5a059;
    border-radius: 10px;
    animation: llenarBarra 3s linear forwards; /* 3 segundos de duración */
}

/* El Diente Corredor */
.diente-animado {
    position: absolute;
    top: -40px; /* Posicionado encima de la barra */
    left: 0;
    font-size: 2.5rem;
    color: #ffffff;
    /* Animación compuesta: Moverse a la derecha + Saltar */
    animation: 
        correrDerecha 3s linear forwards, 
        saltar 0.25s infinite alternate;
}

.texto-exito {
    opacity: 0;
    color: #ffffff;
    animation: aparecerTexto 0.5s ease-in forwards;
    animation-delay: 3.2s; /* Aparece justo después de que el diente termina */
}

.texto-exito h2 
{
    color: #c5a059;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.texto-exito p 
{
    font-size: 1.2rem;
    font-weight: 300;
}


@keyframes llenarBarra 
{
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes correrDerecha 
{
    0% { left: 0%; }
    100% { left: 95%; } /* Llega casi al final */
}

@keyframes saltar 
{
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(-10px) rotate(10deg); } /* Efecto de trote */
}

@keyframes aparecerTexto 
{
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-aceptar 
{
    margin-top: 25px;
    padding: 12px 40px;
    background-color: #c5a059;
    color: #000000;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.btn-aceptar:hover 
{
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-aceptar:active 
{
    transform: translateY(1px);
}