/* ================= FUENTES (guardadas en el sitio, sin depender de Google) ================= */
/* ITC Avant Garde Gothic Std (fuente de la marca, comprada por Marketing).
   3 grosores: Book (pesos 300-500), Demi (600) y Bold (700-900). */
@font-face{ font-family: 'ITC Avant Garde Gothic Std'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('../fuentes/avantgarde-bk.woff2?v=1') format('woff2'); }
@font-face{ font-family: 'ITC Avant Garde Gothic Std'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fuentes/avantgarde-demi.woff2?v=1') format('woff2'); }
@font-face{ font-family: 'ITC Avant Garde Gothic Std'; font-style: normal; font-weight: 700 900; font-display: swap; src: url('../fuentes/avantgarde-bold.woff2?v=1') format('woff2'); }
:root{
    /* Colores oficiales de Argos: Pantone 2597 C (morado) y 2925 C (celeste) */
    --morado: #5c068c;
    --morado-osc: #4a0570;     /* 2597 C con 20% más de oscuro */
    --morado-claro: #8544a9;   /* 2597 C con 25% de blanco */
    --celeste: #009cde;
    --celeste-claro: #40b5e6;  /* 2925 C con 25% de blanco */
    --amarillo: #f2b705;
    --texto: #2b2b3a;
    --texto-suave: #5f6275;
    --fondo: #f6f8fc;
    --panel: #ffffff;
    --borde: #e6e9f2;
    --radio: 16px;
    --sombra: 0 6px 20px rgba(60, 40, 120, .07);
    --fuente: 'ITC Avant Garde Gothic Std', 'Century Gothic', sans-serif;
    --ancho: 1600px;
}

*{ margin: 0; padding: 0; box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
    font-family: var(--fuente);
    color: var(--texto);
    background: var(--fondo);
    line-height: 1.5;
    font-size: 15px;
    /* El pie de página queda abajo aunque la página sea corta */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main{ flex: 1 0 auto; width: 100%; }
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; }
button{ font: inherit; cursor: pointer; }
svg{ width: 1em; height: 1em; flex-shrink: 0; }
:focus-visible{ outline: 3px solid var(--celeste); outline-offset: 2px; }
/* ================= LAYOUT ================= */
.contenedor{
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 16px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.panel{
    background: var(--panel);
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 20px;
    box-shadow: var(--sombra);
    min-width: 0;
}
.panel h2{
    font-size: 19px;
    color: var(--morado);
    font-weight: 700;
    line-height: 1.25;
}
.bajada{ font-size: 13px; color: var(--texto-suave); margin: 2px 0 16px; }

/* ================= ÍCONOS EN CÍRCULO ================= */
.ico{
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 28px;
}
.ico.morado{ background: var(--morado); }
.ico.celeste{ background: var(--celeste); }

/* ================= MÁS USADO ================= */
.mas-usado h2{ margin-bottom: 12px; }
.mas-usado ul{ list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mas-usado a{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 13.5px;
    padding: 6px;
    border-radius: 10px;
    transition: background .2s;
}
.mas-usado a:hover{ background: #f3effa; }
.mini{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
}
.mini.morado{ background: var(--morado); }
.mini.celeste{ background: var(--celeste); }
/* ================= FAQ ================= */
.faq h2{ margin-bottom: 12px; }
.faq details{
    border: 1px solid var(--borde);
    border-radius: 10px;
    margin-bottom: 8px;
}
.faq summary{
    list-style: none;
    padding: 9px 36px 9px 12px;
    font-size: 13px;
    cursor: pointer;
    position: relative;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
    content: "›";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--morado);
    transition: transform .2s;
}
.faq details[open] summary::after{ transform: translateY(-50%) rotate(90deg); }
.faq details[open] summary{ color: var(--morado); font-weight: 600; }
.faq details p{ font-size: 13px; padding: 0 12px 12px; color: var(--texto-suave); }
.faq details a{ color: var(--morado); font-weight: 600; }
.btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    transition: transform .2s, filter .2s;
}
.btn:hover{ transform: translateY(-2px); filter: brightness(1.08); }
.btn.blanco{ background: #fff; color: var(--morado); }
.btn.morado{ background: var(--morado); color: #fff; }

.contacto h2, .buzon h2, .abierto-card h2{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 10px;
}
.contacto ul{ list-style: none; display: flex; flex-direction: column; gap: 8px; }
.contacto li{ display: flex; gap: 8px; font-size: 12.5px; color: var(--texto-suave); }
.contacto li svg{ color: var(--morado); font-size: 16px; margin-top: 2px; }
.contacto b{ color: var(--texto); font-weight: 600; display: block; }
.contacto a{ color: var(--morado); font-weight: 600; }
/* ================= FOOTER ================= */
.footer{
    background: linear-gradient(90deg, var(--morado-osc), var(--morado));
    color: #fff;
}
.footer-in{
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-logo{
    width: 264px; /* 240px de logo + 24px de espacio antes de la línea */
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    padding-right: 24px;
    border-right: 1px solid rgba(255,255,255,.35);
}
.footer-lema{ font-size: 13.5px; }
.redes{ display: flex; gap: 16px; margin-left: auto; }
.redes a{ font-size: 20px; display: grid; opacity: .9; }
.redes a:hover{ opacity: 1; }
.copy{ font-size: 12px; opacity: .85; }

/* ================= DIÁLOGO ================= */
.dialogo{
    border: 0;
    border-radius: 18px;
    padding: 28px;
    width: min(460px, calc(100% - 32px));
    margin: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.dialogo::backdrop{ background: rgba(30, 15, 50, .55); }
.dlg-cerrar{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: #f1eef7;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--morado);
}
.dlg-contenido h3{ color: var(--morado); font-size: 20px; margin-bottom: 14px; padding-right: 30px; }
.dlg-contenido img{ width: 100%; border-radius: 12px; margin-bottom: 14px; background: #eef3fb; }
.dlg-contenido p{ margin-bottom: 8px; font-size: 14px; }
.dlg-contenido ul{ padding-left: 20px; margin-bottom: 12px; font-size: 14px; }
.dlg-contenido li{ margin-bottom: 6px; }
.dlg-contenido a{ color: var(--morado); font-weight: 600; }

@media (prefers-reduced-motion: reduce){
    *{ transition: none !important; scroll-behavior: auto !important; }
}
/* =====================================================================
   COMPARTIDO ENTRE PÁGINAS
   ===================================================================== */

/* ================= BARRA SUPERIOR ================= */
.topbar{
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--borde);
    box-shadow: 0 2px 12px rgba(60, 40, 120, .06);
}
.topbar-in{
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.marca img{ width: 240px; }

.topbar-acciones{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================= PIEZAS COMUNES ================= */
.link-mas{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--morado);
    text-decoration: none;
    white-space: nowrap;
}
.link-mas:hover{ text-decoration: underline; }
.ampliable img{ cursor: zoom-in; }
.faq details[hidden]{ display: none; }
.buzon-destacado{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radio);
    background: linear-gradient(135deg, var(--morado-claro), var(--morado));
    color: #fff;
    text-decoration: none;
    font-size: 13.5px;
    transition: transform .2s;
}
.buzon-destacado:hover{ transform: translateY(-2px); }
.buzon-destacado > svg{ font-size: 26px; }
.buzon-destacado span{ flex: 1; }
.buzon-destacado b{ display: block; font-size: 16px; }
/* ================= PÁGINA DE ERROR ================= */
.error-pagina{ justify-content: center; }
.error-caja{
    max-width: 620px;
    width: 100%;
    margin: 40px auto;
    padding: 48px 32px;
    text-align: center;
}
.error-codigo{
    font-size: clamp(72px, 12vw, 120px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, var(--morado), var(--celeste));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error-caja h1{ color: var(--morado); font-size: 26px; margin: 10px 0 8px; }
.error-caja > p:not(.error-codigo){ color: var(--texto-suave); }
.error-acciones{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.btn.borde{ border: 1.5px solid var(--morado); color: var(--morado); background: #fff; }

/* ================= RESPONSIVE (barra superior) ================= */
@media (max-width: 560px){
    .topbar-in{ padding: 0 16px; gap: 12px; }
    .marca img{ width: 205px; }
    .topbar-acciones .btn{ padding: 8px 12px; }
}
/* Celulares muy angostos: logo un poco más chico para que entre el botón de WhatsApp */
@media (max-width: 370px){
    .marca img{ width: 165px; }
    .topbar-acciones .btn{ padding: 7px 10px; font-size: 12px; }
}

/* =====================================================================
   CONTACT CENTER
   ===================================================================== */

/* Al saltar a una sección, el menú y la barra de secciones no la tapan */
.contenedor > section, .cc-faq-layout > section{ scroll-margin-top: 130px; }

.btn svg{ font-size: 17px; }
.btn.grande{ padding: 12px 20px; font-size: 14px; }

/* ================= CABECERA ================= */
.cc-hero{
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, var(--morado-osc) 0%, var(--morado) 55%, #3b3c9a 100%);
}
.cc-deco{ position: absolute; border-radius: 50%; pointer-events: none; }
.cc-deco-1{ width: 340px; height: 340px; right: -100px; top: -130px; background: var(--morado-claro); opacity: .35; }
.cc-deco-2{ width: 220px; height: 220px; right: 26%; bottom: -150px; background: var(--celeste-claro); opacity: .25; }
.cc-deco-3{ width: 22px; height: 22px; left: 44%; top: 44px; background: var(--celeste-claro); }
.cc-hero-in{
    position: relative;
    z-index: 1;
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 56px 24px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}
.cc-hero h1{
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.1;
    font-weight: 500;
    margin: 8px 0 14px;
}
.cc-hero h1 span{ font-weight: 700; color: var(--celeste-claro); }
.cc-hero-texto > p{ max-width: 600px; opacity: .92; }
/* Párrafo de presentación de la cabecera: un poco más grande que el texto normal */
.cc-hero-texto > p:not(.cc-lema){ font-size: 18px; line-height: 1.55; }
/* Todos los párrafos y listas de la página van justificados (menos la página de error, que va centrada) */
.cc-hero p:not(.cc-lema),
main.contenedor:not(.error-pagina) :is(p, li){ text-align: justify; }
.cc-hero-texto > .cc-lema{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--celeste-claro);
    opacity: 1;
}
.cc-lema::before{
    content: "";
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: var(--celeste-claro);
    flex-shrink: 0;
}
.cc-hero-acciones{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Tarjeta "¿Estamos atendiendo?" */
.estado{
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--radio);
    padding: 22px;
    max-width: 440px;
    width: 100%;
    justify-self: end;
}
.estado h2{ font-size: 19px; line-height: 1.25; margin: 14px 0 4px; }
.estado > p{ font-size: 13.5px; opacity: .9; }
/* Horarios dentro del recuadro de la cabecera (fondo morado) */
/* Bolita verde en la fila de hoy (solo dentro del horario) */
.punto-estado{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #3ddc84;
    box-shadow: 0 0 0 4px rgba(61, 220, 132, .25);
}
/* Fuera del horario no se muestra la etiqueta "Hoy" */
.estado.cerrado .hoy-etiqueta{ display: none; }
.estado-subtitulo{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.estado-subtitulo svg{ font-size: 21px; color: var(--celeste-claro); }
.estado-subtitulo small{ font-weight: 400; opacity: .8; font-size: 14px; }
.estado .horarios li{ padding: 10px 12px; font-size: 14px; color: #fff; }
.estado .horarios li + li{ border-top-color: rgba(255,255,255,.15); }
.estado .horarios .horas{ color: rgba(255,255,255,.85); }
.estado .horarios li.hoy{ background: rgba(255,255,255,.16); }
.estado .horarios li.hoy .dia, .estado .horarios li.hoy .horas{ color: #fff; }
.estado .hoy-etiqueta{ background: #fff; color: var(--morado); }

/* ================= BARRA DE SECCIONES ================= */
.cc-nav{
    position: sticky;
    top: 68px;
    z-index: 40;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--borde);
}
.cc-nav-in{
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.cc-nav-in::-webkit-scrollbar{ display: none; }
.cc-nav a{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px 12px;
    border-bottom: 3px solid transparent;
    color: var(--texto);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s, border-color .2s, background .2s;
}
.cc-nav a svg{ font-size: 17px; color: var(--celeste); transition: color .2s; }
.cc-nav a:hover{ color: var(--morado); background: #f3effa; }
.cc-nav a.activo{ color: var(--morado); font-weight: 600; border-bottom-color: var(--morado); }
.cc-nav a.activo svg{ color: var(--morado); }

/* ================= CANALES DE ATENCIÓN ================= */
.canales{
    display: grid;
    /* Columna de la foto un poco más ancha que la de los canales */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: center;
    padding: 10px 40px;
}
.canales h2{
    margin: 0 0 24px;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
    color: var(--celeste);
    line-height: 1.15;
}

/* Los canales van uno debajo de otro (vertical) */
.canales-grid{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
.canal{
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--borde);
    box-shadow: 0 4px 14px rgba(60, 40, 120, .05);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.canal:hover{
    transform: translateY(-3px);
    border-color: #ddd5ee;
    box-shadow: 0 10px 22px rgba(92, 6, 140, .14);
}
.canal .ico{ width: 58px; height: 58px; font-size: 27px; flex-shrink: 0; }
.canal-txt{ display: flex; flex-direction: column; min-width: 0; }
.canal-txt small{ font-size: 15px; color: var(--texto-suave); }
.canal-txt strong{ font-size: 21px; font-weight: 700; color: var(--morado); overflow-wrap: anywhere; }
/* El correo es largo: letra un poco menor y sin cortes a la mitad
   (solo puede pasar a otra línea antes de la @, en celulares muy angostos) */
.canal-txt .correo{ font-size: 18px; overflow-wrap: normal; }
/* Carrusel de fotos de la derecha */
.carrusel{
    position: relative;
    overflow: hidden;
    /* Más ancha que alta para que la tarjeta no tenga tanto espacio arriba y abajo */
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #eef3fb;
    box-shadow: 0 14px 34px rgba(60, 40, 120, .18);
}
.carrusel-fotos img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .8s ease;
}
.carrusel-fotos img.activa{ opacity: 1; }
/* Degradado morado abajo para que se vean los puntos */
.carrusel::after{
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 30%;
    background: linear-gradient(to top, rgba(74, 5, 112, .55), rgba(74, 5, 112, 0));
    pointer-events: none;
}
.carrusel-btn{
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.9);
    color: var(--morado);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .2s;
}
.carrusel-btn.anterior{ left: 14px; }
.carrusel-btn.siguiente{ right: 14px; }
.carrusel:hover .carrusel-btn, .carrusel-btn:focus-visible{ opacity: 1; }
.carrusel-btn:hover{ background: #fff; }
.carrusel-puntos{
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 9px;
    display: flex;
    justify-content: center;
}
/* El botón mide 24x24 (fácil de tocar en celular); el punto que se ve se dibuja con ::before */
.carrusel-puntos button{
    min-width: 24px;
    height: 24px;
    padding: 0 4px;
    border: 0;
    background: none;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.carrusel-puntos button::before{
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.55);
    transition: width .3s, background .3s;
}
.carrusel-puntos button[aria-current="true"]::before{ width: 28px; background: #fff; }
@media (hover: none){ .carrusel-btn{ opacity: 1; } }
@media (prefers-reduced-motion: reduce){ .carrusel-fotos img{ transition: none; } }

/* ================= HORARIOS (lista que usa el recuadro de la cabecera) ================= */
.horarios{ list-style: none; display: flex; flex-direction: column; }
.horarios li{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
}
.horarios li + li{ border-top: 1px solid var(--borde); }
.horarios .dia{ display: flex; align-items: center; gap: 8px; font-weight: 500; }
.horarios .horas{ color: var(--texto-suave); }
.horarios li.hoy{ background: #f3effa; border-top-color: transparent; }
.horarios li.hoy + li{ border-top-color: transparent; }
.horarios li.hoy .dia, .horarios li.hoy .horas{ color: var(--morado); font-weight: 600; }
.hoy-etiqueta{
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: var(--morado);
    color: #fff;
    padding: 2px 9px;
    border-radius: 999px;
}

/* ================= TRÁMITES ================= */
.tramites-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.tramite{
    border: 1px solid var(--borde);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tramite-cab{ display: flex; align-items: center; gap: 12px; }
.tramite h3{ font-size: 15px; line-height: 1.25; color: var(--morado); }
.tramite ul{ list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--texto-suave); }
.tramite li{ display: flex; gap: 8px; }
.tramite li::before{ content: "•"; color: var(--celeste); font-weight: 700; }
.tramite li a{ color: var(--morado); font-weight: 600; }
.tramite .link-mas{ margin-top: auto; padding-top: 4px; }

/* ================= TIPS PARA WHATSAPP ================= */
.tips{ padding: 0; overflow: hidden; }
.tips-cab{
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 32px;
    color: #fff;
    background: linear-gradient(120deg, var(--morado-osc) 0%, var(--morado) 55%, #3b3c9a 100%);
}
.tips-deco{ position: absolute; border-radius: 50%; pointer-events: none; }
.tips-deco-1{ width: 220px; height: 220px; right: 18%; top: -150px; background: var(--celeste-claro); opacity: .22; }
.tips-deco-2{ width: 160px; height: 160px; left: -60px; bottom: -110px; background: var(--morado-claro); opacity: .45; }
.tips-cab > *:not(.tips-deco){ position: relative; }
.tips-cab-ico{
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.28);
}
.tips-cab-txt{ flex: 1; min-width: 0; }
.tips .tips-cab h2{ color: #fff; font-size: clamp(19px, 1.8vw, 23px); }
.tips-cab p{ font-size: 14px; opacity: .88; margin-top: 2px; }
.tips-cab .btn{ flex-shrink: 0; color: var(--morado); }

.tips-cuerpo{ padding: 24px 32px 28px; }
.tips-pasos{
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.tip{
    position: relative;
    padding: 20px;
    border: 1px solid var(--borde);
    border-radius: 14px;
    background: #fff;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
/* Línea de color arriba que aparece al pasar el mouse */
.tip::before{
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: -1px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--morado), var(--celeste));
    opacity: 0;
    transition: opacity .2s;
}
.tip:hover{ transform: translateY(-3px); border-color: #ddd5ee; box-shadow: 0 10px 22px rgba(92, 6, 140, .12); }
.tip:hover::before{ opacity: 1; }
.tip-top{ display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.tip-ico{
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
}
.tip-ico.morado{ background: #f3effa; color: var(--morado); }
.tip-ico.celeste{ background: #e6f5fc; color: var(--celeste); }
.tip-num{ font-size: 30px; font-weight: 800; line-height: 1; color: #ece7f7; }
.tip h3{ font-size: 15.5px; color: var(--morado); margin-bottom: 6px; }
.tip p{ font-size: 13.5px; color: var(--texto-suave); line-height: 1.55; }
.tip p b{ color: var(--texto); font-weight: 600; }

.tips-recuerda{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #f7f5fc;
    border: 1px solid #ece7f7;
    border-left: 4px solid var(--morado);
    font-size: 14px;
    color: var(--texto);
}
.tips-recuerda b{ color: var(--morado); }
.tips-recuerda-ico{
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #fff;
    background: var(--morado);
}

/* ================= PREGUNTAS + COLUMNA LATERAL ================= */
.cc-faq-layout{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
    align-items: start;
}
.cc-faq-layout .faq summary{ font-size: 14px; padding: 12px 40px 12px 14px; }
.cc-faq-layout .faq details p{ font-size: 14px; padding: 0 14px 14px; }
.cc-lateral{ display: flex; flex-direction: column; gap: 20px; }
.mas-usado a small{ display: block; font-size: 12px; color: var(--texto-suave); }

/* ================= BOTÓN FLOTANTE DE WHATSAPP ================= */
.whatsapp-flotante{
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;           /* verde de WhatsApp */
    color: #fff;
    font-size: 32px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
    transition: transform .2s, box-shadow .2s;
}
.whatsapp-flotante:hover{ transform: scale(1.08); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.whatsapp-flotante:focus-visible{ outline: 3px solid var(--celeste); outline-offset: 3px; }
/* Globo con mensaje: comun.js lo muestra 6 s y lo oculta 10 s, en ciclo (clase "globo-visible") */
.whatsapp-flotante-globo{
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translate(8px, -50%);
    white-space: nowrap;
    padding: 9px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--texto);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, transform .35s, visibility .35s;
}
/* Piquito del globo apuntando al botón */
.whatsapp-flotante-globo::after{
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
    border-radius: 2px;
}
.whatsapp-flotante.globo-visible .whatsapp-flotante-globo,
.whatsapp-flotante:hover .whatsapp-flotante-globo,
.whatsapp-flotante:focus-visible .whatsapp-flotante-globo{
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}
/* Cuando aparece el globo, el botón da un pequeño salto */
.whatsapp-flotante.saltar{ animation: saltar-wa .6s ease-out; }
@keyframes saltar-wa{
    0%, 100%{ transform: translateY(0); }
    35%{ transform: translateY(-8px); }
    65%{ transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce){
    .whatsapp-flotante.saltar{ animation: none; }
}
/* Espacio a la derecha del pie para que el botón flotante no tape el texto */
.footer-in{ padding-right: 100px; }

/* ================= RESPONSIVE (Contact Center) ================= */
@media (max-width: 1150px){
    .tramites-grid, .tips-pasos{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Si una tarjeta queda sola en la última fila, ocupa todo el ancho (sin hueco al lado) */
    .tramites-grid > .tramite:last-child:nth-child(odd){ grid-column: 1 / -1; }
}
@media (max-width: 1100px){
    .cc-hero-in, .cc-faq-layout, .canales{ grid-template-columns: minmax(0, 1fr); }
    .canales{ padding: 32px; gap: 32px; }
    .estado{ justify-self: start; }
}
@media (max-width: 560px){
    .contenedor{ padding: 16px 16px 32px; gap: 16px; }
    .cc-hero-in{ padding: 40px 16px 48px; gap: 28px; }
    .cc-hero-texto > p:not(.cc-lema){ font-size: 16px; }
    .cc-deco-3{ display: none; }
    .cc-hero-acciones .btn{ width: 100%; justify-content: center; }
    /* Barra de secciones en celular: 4 botones iguales (ícono arriba, nombre corto abajo), sin deslizar */
    .cc-nav-in{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; overflow: visible; }
    .cc-nav a{ flex-direction: column; justify-content: center; gap: 4px; padding: 9px 2px 7px; font-size: 11.5px; }
    .cc-nav a svg{ font-size: 20px; }
    .cc-nav a:hover{ background: none; }
    .nav-largo{ display: none; }
    .canales-grid, .tramites-grid{ grid-template-columns: minmax(0, 1fr); }
    .canal{ padding: 16px; gap: 14px; }
    .canal .ico{ width: 50px; height: 50px; font-size: 23px; }
    .canal-txt strong{ font-size: 19px; }
    .canal-txt .correo{ font-size: 15px; }
    .canales{ padding: 22px 18px; }
    .tips-cab{ flex-wrap: wrap; padding: 22px 18px; gap: 14px; }
    .tips-cab-ico{ width: 46px; height: 46px; font-size: 23px; border-radius: 13px; }
    .tips-cab-txt{ flex-basis: calc(100% - 60px); }
    .tips-cab .btn{ width: 100%; justify-content: center; }
    .tips-cuerpo{ padding: 18px 18px 22px; }
    .tips-pasos{ grid-template-columns: minmax(0, 1fr); }
    .tips-recuerda{ align-items: flex-start; }
    .carrusel{ border-radius: 16px; }
    .carrusel-btn{ width: 34px; height: 34px; font-size: 17px; }
    .footer-in{ flex-direction: column; text-align: center; padding: 22px 16px; }
    .whatsapp-flotante{ right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 29px; }
    .whatsapp-flotante-globo{ font-size: 13px; padding: 8px 14px; }
    /* Espacio al final del pie para que el botón flotante no tape el texto */
    .footer-in{ padding-bottom: 84px; }
    .footer-logo{ border: 0; padding: 0; }
    .redes{ margin: 0; }
}
