/* ========================================
   ESTILOS PÁGINA DE CONTACTOS
   ======================================== */

/* RESET Y CONFIGURACIÓN BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ========================================
   PÁGINA DE CONTACTOS
   ======================================== */

.pagina-contactos {
    min-height: 100vh;
}

/* HEADER CONTACTOS */
.encabezado-contactos {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.Viive{
    display: flex;
    width: 138px;
    height: 56px;
}
.contenedor-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
}

.logo-contactos a {
    text-decoration: none;
    color: #667eea;
}

.logo-contactos h1 {
    font-size: 2rem;
    font-weight: 700;
}

.menu-contactos {
    display: flex;
    gap: 30px;
}

/* MENÚ HAMBURGUESA - OCULTO POR DEFECTO EN DESKTOP */
.menu-hamburguesa {
    display: none;
}

.enlace-nav {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
}

.enlace-nav:hover {
    background-color: #f0f0f0;
    color: #667eea;
}

.enlace-activo {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: #f0f0f0;
}

/* DROPDOWN HERRAMIENTAS */
.dropdown-herramientas {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-herramientas {
    background: transparent;
    border: none;
    font: inherit;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-herramientas i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.dropdown-herramientas.abierto .btn-herramientas i {
    transform: rotate(180deg);
}

.dropdown-herramientas.dropdown-activo .btn-herramientas {
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
}

.menu-desplegable-herramientas {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 30, 67, 0.12);
    padding: 12px;
    display: none;
    min-width: 230px;
    flex-direction: column;
    gap: 8px;
    z-index: 1200;
}

.dropdown-herramientas.abierto .menu-desplegable-herramientas {
    display: flex;
}

.menu-desplegable-herramientas .item-herramienta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #1a202c;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.menu-desplegable-herramientas .item-herramienta i {
    color: inherit;
}

.menu-desplegable-herramientas .item-herramienta:hover {
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
}

.menu-desplegable-herramientas .item-herramienta.activo {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
}

@media (max-width: 917px) {
    .dropdown-herramientas {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .btn-herramientas {
        width: 100%;
        justify-content: space-between;
    }

    .menu-desplegable-herramientas {
        position: static;
        box-shadow: none;
        padding: 10px 0;
        background: transparent;
        gap: 10px;
    }

    .dropdown-herramientas.abierto .menu-desplegable-herramientas {
        display: flex;
    }

    .menu-desplegable-herramientas .item-herramienta {
        background: rgba(248, 250, 252, 0.95);
        color: #1a202c;
    }

    .menu-desplegable-herramientas .item-herramienta:hover {
        background: rgba(102, 126, 234, 0.15);
        color: #667eea;
    }
}

/* HERO SECTION DE CONTACTOS */
.hero-contactos {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
}

.contenedor-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.contenido-hero-contactos {
    max-width: 1000px;
    margin: 0 auto;
}

.titulo-hero-contactos {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.texto-destacado {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitulo-hero-contactos {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.9;
    line-height: 1.6;
}

.botones-contacto-rapido {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.boton-whatsapp-contacto {
    background: #25d366;
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.boton-whatsapp-contacto:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.boton-email-contacto {
    background: white;
    color: #667eea;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.boton-email-contacto:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* SECCIÓN DE INFORMACIÓN DE CONTACTO */
.seccion-info-contacto {
    padding: 100px 0;
    background: white;
}

.contenedor-info-contacto {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.titulo-seccion {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
}

.grid-info-contacto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tarjeta-info-contacto {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.tarjeta-info-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

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

.icono-info-contacto {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: white;
}

.tarjeta-info-contacto h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.descripcion-contacto {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.detalles-contacto {
    margin-bottom: 25px;
    text-align: left;
}

.detalles-contacto-2 {
    padding: 20px 0px;
    text-align: left;
}
.detalles-contacto-2 p,
.detalles-contacto  p {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
}

.detalles-contacto strong {
    color: #333;
}

.boton-contactar-info {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.boton-contactar-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* SECCIÓN DE FORMULARIO DE CONTACTO */
.seccion-formulario-contacto {
    padding: 100px 0;
    background: #f8f9fa;
}

.contenedor-formulario-contacto {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.subtitulo-seccion {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.formulario-contacto {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.fila-formulario-contacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.grupo-formulario-contacto {
    display: flex;
    flex-direction: column;
}

.grupo-formulario-contacto label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.grupo-formulario-contacto input,
.grupo-formulario-contacto select,
.grupo-formulario-contacto textarea {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Poppins', sans-serif;
}

.grupo-formulario-contacto input:focus,
.grupo-formulario-contacto select:focus,
.grupo-formulario-contacto textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.grupo-formulario-contacto textarea {
    resize: vertical;
    min-height: 120px;
}

.termino-contacto {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.termino-contacto input[type="checkbox"] {
    margin-top: 5px;
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

.termino-contacto label {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.botones-formulario-contacto {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.boton-limpiar-formulario {
    background: #f8f9fa;
    color: #667eea;
    padding: 15px 30px;
    border: 2px solid #667eea;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.boton-limpiar-formulario:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.boton-enviar-formulario-contacto {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.boton-enviar-formulario-contacto:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.boton-enviar-formulario-contacto:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* SECCIÓN DE PREGUNTAS FRECUENTES */
.seccion-preguntas-frecuentes {
    padding: 100px 0;
    background: white;
}

.contenedor-preguntas {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

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

.tarjeta-pregunta {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.tarjeta-pregunta h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.tarjeta-pregunta p {
    color: #666;
    line-height: 1.6;
}

/* SECCIÓN DE HORARIOS DE ATENCIÓN */
.seccion-horarios-atencion {
    padding: 100px 0;
    background: #f8f9fa;
}

.contenedor-horarios {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

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

.tarjeta-horario {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.icono-horario {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #25d366, #1ea952);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: white;
}

.tarjeta-horario h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.horario-detalle {
    text-align: left;
}

.horario-detalle p {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
}

.horario-detalle strong {
    color: #333;
}

/* FOOTER CONTACTOS */
.pie-pagina-contactos {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.contenedor-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

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

.logo-footer h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.logo-footer p {
    color: #ccc;
}

.contacto-footer h4,
.servicios-footer h4 {
    margin-bottom: 15px;
    color: #ffd700;
}

.contacto-footer p,
.servicios-footer p {
    margin-bottom: 8px;
    color: #ccc;
}

.derechos-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* CELULAR: 0px a 420px */
@media (max-width: 420px) {
    .contenedor-header,
    .contenedor-hero,
    .contenedor-info-contacto,
    .contenedor-formulario-contacto,
    .contenedor-preguntas,
    .contenedor-horarios,
    .contenedor-footer {
        padding: 0 10px;
        width: 100%;
    }
    
    /* AJUSTAR HEADER PARA MÓVIL */
    .contenedor-header {
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .titulo-hero-contactos {
        font-size: 2rem;
        width: 100%;
    }
    
    .titulo-seccion {
        font-size: 1.8rem;
        width: 100%;
    }
    
    .grid-info-contacto,
    .grid-preguntas,
    .grid-horarios {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .fila-formulario-contacto {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .botones-formulario-contacto {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .info-footer {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    /* MENÚ HAMBURGUESA PARA MÓVIL - VISIBLE */
    .menu-hamburguesa {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 35px;
        height: 35px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
        position: relative;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    
    .menu-hamburguesa:hover {
        background-color: rgba(102, 126, 234, 0.1);
    }
    
    .linea-hamburguesa {
        width: 25px;
        height: 3px;
        background: #667eea;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
        display: block;
    }
    
    /* ASEGURAR QUE EL MENÚ HAMBURGUESA SEA VISIBLE EN MÓVIL */
    .menu-hamburguesa {
        display: flex !important;
    }
    
    .menu-hamburguesa.menu-activo .linea-hamburguesa:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-hamburguesa.menu-activo .linea-hamburguesa:nth-child(2) {
        opacity: 0;
    }
    
    .menu-hamburguesa.menu-activo .linea-hamburguesa:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* MENÚ PRINCIPAL EN MÓVIL - COMPLETAMENTE OCULTO */
    .menu-contactos {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 40px 20px !important;
        gap: 30px !important;
        transition: left 0.3s ease !important;
        z-index: 1000 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
        display: none !important;
    }
    
    .menu-contactos.menu-abierto {
        display: flex !important;
        left: 0 !important;
    }
    
    .menu-contactos a {
        font-size: 1.2rem !important;
        padding: 15px 30px !important;
        width: 100% !important;
        max-width: 300px !important;
        text-align: center !important;
        border-radius: 15px !important;
        background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        transition: all 0.3s ease !important;
    }
    
    .menu-contactos a:hover {
        background: linear-gradient(135deg, #667eea, #764ba2) !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    }
    
    .menu-contactos .enlace-activo {
        background: linear-gradient(135deg, #667eea, #764ba2) !important;
        color: white !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    }
    
    .formulario-contacto {
        padding: 20px;
        width: 100%;
    }
    .Viive{
        width: 100px;
        height: 46px;
    }
}

/* TABLET: 421px a 917px */
@media (min-width: 421px) and (max-width: 917px) {
    .contenedor-header {
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .contenedor-header,
    .contenedor-hero,
    .contenedor-info-contacto,
    .contenedor-formulario-contacto,
    .contenedor-preguntas,
    .contenedor-horarios,
    .contenedor-footer {
        padding: 0 20px;
        width: 100%;
    }
    
    .titulo-hero-contactos {
        font-size: 2.5rem;
        width: 100%;
    }
    
    .titulo-seccion {
        font-size: 2rem;
        width: 100%;
    }
    
    .grid-info-contacto,
    .grid-preguntas,
    .grid-horarios {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
    
    .fila-formulario-contacto {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .info-footer {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
    
    /* MENÚ HAMBURGUESA PARA TABLET - VISIBLE */
    .menu-hamburguesa {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 6px;
        z-index: 1001;
        position: relative;
        border-radius: 6px;
        transition: background-color 0.3s ease;
    }
    
    .menu-hamburguesa:hover {
        background-color: rgba(102, 126, 234, 0.1);
    }
    
    .linea-hamburguesa {
        width: 28px;
        height: 3px;
        background: #667eea;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
        display: block;
    }
    
    .menu-hamburguesa.menu-activo .linea-hamburguesa:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .menu-hamburguesa.menu-activo .linea-hamburguesa:nth-child(2) {
        opacity: 0;
    }
    
    .menu-hamburguesa.menu-activo .linea-hamburguesa:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* MENÚ PRINCIPAL EN TABLET - OCULTO */
    .menu-contactos {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 50px 30px !important;
        gap: 35px !important;
        transition: left 0.3s ease !important;
        z-index: 1000 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
        display: none !important;
    }
    
    .menu-contactos.menu-abierto {
        display: flex !important;
        left: 0 !important;
    }
    
    .menu-contactos a {
        font-size: 1.3rem !important;
        padding: 18px 35px !important;
        width: 100% !important;
        max-width: 350px !important;
        text-align: center !important;
        border-radius: 15px !important;
        background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        transition: all 0.3s ease !important;
    }
    
    .menu-contactos a:hover {
        background: linear-gradient(135deg, #667eea, #764ba2) !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    }
    
    .menu-contactos .enlace-activo {
        background: linear-gradient(135deg, #667eea, #764ba2) !important;
        color: white !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    }
}

/* DESKTOP: 918px en adelante */
@media (min-width: 918px) {
    .menu-hamburguesa {
        display: none !important;
    }
    
    .menu-contactos {
        display: flex !important;
        gap: 30px !important;
    }
}
