/* ===========================================================
   APEX ELECTRÓNICA — PÁGINA DE CONTACTO
   Paleta: navy #002554 · azul #0096C7 · cyan #48CAE4
   =========================================================== */

/* ---------- HERO ---------- */
.hero-contacto {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 2.5rem;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, #0a3a6b 0%, #002554 55%);
    box-shadow: 0 20px 45px rgba(0, 37, 84, 0.3);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 22px 22px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.hero-glow-1 {
    width: 280px;
    height: 280px;
    background: #0096C7;
    opacity: 0.28;
    top: -140px;
    right: -60px;
}

.hero-glow-2 {
    width: 240px;
    height: 240px;
    background: #48CAE4;
    opacity: 0.16;
    bottom: -130px;
    left: -70px;
}

.hero-contenido {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(72, 202, 228, 0.15);
    color: #9fe6f7;
    border: 1px solid rgba(72, 202, 228, 0.4);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.hero-contacto h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin: 0 0 14px 0;
}

.hero-highlight {
    color: #48CAE4;
    position: relative;
    white-space: nowrap;
}

.hero-contacto p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    max-width: 560px;
    margin: 0 auto 26px auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-acciones {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-primary,
.hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn-primary {
    background: #48CAE4;
    color: #002554;
    box-shadow: 0 8px 22px rgba(72, 202, 228, 0.35);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 12px 28px rgba(72, 202, 228, 0.45);
}

.hero-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.hero-btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
}

/* ---------- BENEFICIOS ---------- */
.beneficios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: -36px;
    position: relative;
    z-index: 2;
    padding: 0 8px;
}

.beneficio {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 30px rgba(0, 37, 84, 0.1);
    border: 1px solid #eef2f7;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.beneficio:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(0, 37, 84, 0.15);
    border-color: rgba(0, 150, 199, 0.25);
}

.beneficio-icono {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0096C7, #48CAE4);
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(0, 150, 199, 0.3);
}

.beneficio h3 {
    color: #002554;
    font-size: 16px;
    margin: 0 0 6px 0;
}

.beneficio p {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

/* ---------- GRID PRINCIPAL ---------- */
.grid-contacto {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    margin-top: 40px;
    align-items: start;
}

/* ----- panel izquierdo (tarjeta oscura) ----- */
.datos {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #002554 0%, #013a6b 100%);
    border-radius: 18px;
    padding: 30px 28px;
    box-shadow: 0 14px 36px rgba(0, 37, 84, 0.25);
    border: 1px solid rgba(72, 202, 228, 0.18);
}

.datos::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: #0096C7;
    filter: blur(70px);
    opacity: 0.25;
    top: -110px;
    right: -70px;
    pointer-events: none;
}

.datos-titulo {
    position: relative;
    color: #fff;
    font-size: 21px;
    margin: 0 0 4px 0;
}

.datos-sub {
    position: relative;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 16px 0;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.canal {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 12px;
    margin: 4px -12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.canal-link {
    cursor: pointer;
}

.canal-link:hover {
    background: rgba(255, 255, 255, 0.07);
}

.canal-icono {
    background: rgba(72, 202, 228, 0.15);
    border: 1px solid rgba(72, 202, 228, 0.25);
    border-radius: 11px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #48CAE4;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.canal-link:hover .canal-icono {
    background: #48CAE4;
    color: #002554;
    transform: scale(1.05);
}

.canal-texto {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.canal-etiqueta {
    font-size: 11px;
    color: #6fd4ec;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.canal-texto a,
.canal-valor {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* el correo es largo: que se ajuste en vez de cortarse */
.canal-correo .canal-valor {
    font-size: 13.5px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.canal-flecha {
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.canal-link:hover .canal-flecha {
    color: #48CAE4;
    transform: translateX(3px);
}

/* ----- horario ----- */
.horario {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 20px;
}

.horario-titulo {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #48CAE4;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 12px 0;
}

.horario-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.horario-fila:last-child {
    border-bottom: none;
}

.horario-hora {
    color: #9fe6f7;
    font-weight: 600;
}

.horario-cerrado span {
    color: rgba(255, 255, 255, 0.4);
}

/* ----- aviso ----- */
.aviso-respuesta {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 16px;
    background: rgba(72, 202, 228, 0.1);
    border-left: 3px solid #48CAE4;
    border-radius: 0 10px 10px 0;
    padding: 12px 14px;
}

.aviso-respuesta svg {
    color: #48CAE4;
    flex-shrink: 0;
    margin-top: 1px;
}

.aviso-respuesta p {
    font-size: 13px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
}

/* ----- formulario ----- */
.formulario-wrap {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 14px 36px rgba(0, 37, 84, 0.1);
    border: 1px solid #e2e8f0;
    border-top: 4px solid #0096C7;
}

.formulario-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.formulario-header h3 {
    color: #002554;
    font-size: 22px;
    margin: 0 0 6px 0;
}

.formulario-header p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fila-doble {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.campo label {
    font-size: 13px;
    font-weight: 600;
    color: #002554;
}

.opcional {
    color: #94a3b8;
    font-weight: 400;
}

/* ----- chips de asunto ----- */
.chips-asunto {
    border: none;
    margin: 0;
    padding: 0;
}

.chips-asunto legend {
    font-size: 13px;
    font-weight: 600;
    color: #002554;
    padding: 0;
    margin-bottom: 10px;
}

.chips-grupo {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-radio {
    cursor: pointer;
}

.chip-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chip-radio span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.chip-radio span svg {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.chip-radio:hover span {
    border-color: #0096C7;
    color: #002554;
}

.chip-radio input:checked + span {
    background: #0096C7;
    border-color: #0096C7;
    color: #fff;
}

.chip-radio input:checked + span svg {
    color: #fff;
}

.chip-radio input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(0, 150, 199, 0.18);
}

.campo input,
.campo select,
.campo textarea {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: poppins, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    resize: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.campo input::placeholder,
.campo textarea::placeholder {
    color: #b0bac9;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: #0096C7;
    box-shadow: 0 0 0 4px rgba(0, 150, 199, 0.12);
    background: #fff;
}

.campo select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

.btn-enviar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #0096C7;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: poppins, sans-serif;
    box-shadow: 0 8px 20px rgba(0, 150, 199, 0.28);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-enviar:hover:not(:disabled) {
    background: #48CAE4;
    color: #002554;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(72, 202, 228, 0.4);
}

.btn-enviar:disabled {
    background: #aab4c2;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-enviar.cargando {
    opacity: 0.85;
}

/* honeypot anti-spam: invisible para el usuario */
.campo-miel {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* utilidad: el atributo hidden debe ocultar aunque haya display:flex */
[hidden] {
    display: none !important;
}

.form-privacidad {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #94a3b8;
    margin: -2px 0 0 0;
}

.form-privacidad svg {
    flex-shrink: 0;
    color: #0096C7;
}

/* ----- mensaje de error del formulario ----- */
.form-error {
    margin: 0;
    padding: 11px 14px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13.5px;
    font-weight: 600;
}

/* ----- panel de éxito ----- */
.form-exito {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px 8px;
    animation: exitoAparece 0.4s ease both;
}

.exito-icono {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0096C7, #48CAE4);
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 10px 26px rgba(0, 150, 199, 0.35);
}

.form-exito h3 {
    color: #002554;
    font-size: 22px;
    margin: 0 0 8px 0;
}

.form-exito p {
    color: #64748B;
    font-size: 15px;
    line-height: 1.55;
    max-width: 340px;
    margin: 0 0 24px 0;
}

.btn-otro {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    color: #0096C7;
    border: 1.5px solid #0096C7;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: poppins, sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-otro:hover {
    background: #0096C7;
    color: #fff;
    transform: translateY(-2px);
}

@keyframes exitoAparece {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- ETIQUETA SECCIÓN ---------- */
.eyebrow {
    display: inline-block;
    background: rgba(0, 150, 199, 0.1);
    color: #0096C7;
    border: 1px solid rgba(0, 150, 199, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    width: fit-content;
}

/* ---------- FAQ ---------- */
.faq-seccion {
    margin-top: 64px;
}

.faq-encabezado {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 32px auto;
}

.faq-encabezado .eyebrow {
    margin-left: auto;
    margin-right: auto;
}

.faq-encabezado h3 {
    color: #002554;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin: 0 0 8px 0;
}

.faq-encabezado p {
    color: #64748B;
    font-size: 15px;
    margin: 0;
}

.faq-lista {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 16px rgba(0, 37, 84, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] {
    border-color: rgba(0, 150, 199, 0.3);
    box-shadow: 0 8px 24px rgba(0, 37, 84, 0.1);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 600;
    color: #002554;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: #0096C7;
}

.faq-icono {
    color: #0096C7;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-icono {
    transform: rotate(180deg);
}

.faq-item p {
    margin: 0;
    padding: 0 22px 20px 22px;
    font-size: 14.5px;
    color: #64748B;
    line-height: 1.6;
}

/* El layout responsive vive en responsive.css */

html {
    scroll-behavior: smooth;
}

/* ---------- ACCESIBILIDAD: MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
