/* ======================================================================
   FULLTENT - Cambios solicitados por el cliente (octubre 2026)
   Se carga después de site-polish.css.
   ====================================================================== */

/* ---------- Menú: Servicios en 3 grupos ---------- */
.header__nav .has-dropdown > .header__dropdown--groups {
    min-width: 270px;
    padding: 0.5rem;
}
.dropdown-group { position: relative; list-style: none; }
.dropdown-group__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.dropdown-group__toggle i { font-size: 0.7rem; color: var(--accent); transition: transform 0.2s ease; }
.dropdown-group__toggle:hover,
.dropdown-group:hover > .dropdown-group__toggle,
.dropdown-group.open > .dropdown-group__toggle { background: #edf4f8; }
.dropdown-group__list { list-style: none; margin: 0; padding: 0; display: none; }

/* Escritorio: cada grupo abre su lista al costado */
@media (min-width: 901px) {
    .header__nav .dropdown-group__list {
        position: absolute;
        top: -0.5rem;
        left: 100%;
        min-width: 250px;
        padding: 0.5rem;
        margin-left: 0.5rem;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 0.75rem;
        box-shadow: var(--sh-card-hover);
    }
    /* puente invisible para no perder el hover al cruzar el espacio */
    .header__nav .dropdown-group__list::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: -0.6rem;
        width: 0.6rem;
    }
    .header__nav .dropdown-group:hover > .dropdown-group__list,
    .header__nav .dropdown-group:focus-within > .dropdown-group__list,
    .header__nav .dropdown-group.open > .dropdown-group__list { display: block; }
    .header__nav .has-dropdown > .header__dropdown--groups > .dropdown-group > .dropdown-group__list a {
        display: block;
        white-space: nowrap;
    }
}

/* Escritorio angosto: el submenú se abre hacia la izquierda para no salir de la pantalla */
@media (min-width: 901px) and (max-width: 1280px) {
    .header__nav .dropdown-group__list { left: auto; right: 100%; margin-left: 0; margin-right: 0.5rem; }
    .header__nav .dropdown-group__list::before { left: auto; right: -0.6rem; }
    .header__nav .dropdown-group__toggle i { transform: rotate(180deg); }
}

/* Móvil: acordeón, un grupo a la vez */
.mobile-nav .dropdown-group__toggle {
    padding: 0.9rem var(--pad);
    border-radius: 0;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}
.mobile-nav .dropdown-group.open > .dropdown-group__toggle i { transform: rotate(180deg); }
.mobile-nav .dropdown-group.open > .dropdown-group__list { display: block; }
.mobile-nav .dropdown-group__list a { padding-left: calc(var(--pad) + 1rem) !important; font-weight: 500; }
.mobile-nav .dropdown-overview { font-weight: 600; }

/* ---------- Inicio: franja azul con imagen de fondo ---------- */
.ft-band {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    color: #fff;
    background: var(--primary-dark);
    isolation: isolate;
}
.ft-band__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.ft-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(18, 54, 83, 0.86) 0%, rgba(11, 36, 57, 0.92) 100%);
}
.ft-band__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
}
.ft-band__icon { display: block; font-size: 3rem; margin-bottom: 1rem; color: #fff; }
.ft-band__title { color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 0.75rem; }
.ft-band__text { color: rgba(255, 255, 255, 0.88); line-height: 1.65; max-width: 360px; margin: 0 auto; }
@media (max-width: 860px) {
    .ft-band__grid { grid-template-columns: 1fr; }
}

/* ---------- Grillas de íconos (tipos de carpa, soluciones, ventajas) ---------- */
.ft-icon-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
}
.ft-icon-grid--3 { --cols: 3; }
.ft-icon-grid--4 { --cols: 4; }
.ft-icon-grid--5 { --cols: 5; }
.ft-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-card);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.ft-icon-card:hover { transform: translateY(-3px); box-shadow: var(--sh-card-hover); }
.ft-icon-card__icon {
    width: 68px;
    height: 68px;
    margin-bottom: 1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: 1.6rem;
    flex: 0 0 auto;
}
.ft-icon-card__title { color: var(--primary); font-size: 1.05rem; font-weight: 700; margin: 0 0 0.4rem; }
.ft-icon-card__text { color: var(--muted); font-size: 0.93rem; line-height: 1.55; margin: 0; }
.ft-icon-card__more { margin-top: auto; padding-top: 0.9rem; color: var(--accent-dark); font-size: 0.85rem; font-weight: 700; }

/* Ventajas: tarjeta con check y franja de acento */
.ft-ventaja { box-shadow: inset 0 4px 0 var(--accent), var(--sh-card); }
.ft-ventaja .ft-icon-card__icon { background: var(--primary); }

@media (max-width: 1100px) {
    .ft-icon-grid--5 { --cols: 3; }
}
@media (max-width: 900px) {
    .ft-icon-grid--4 { --cols: 2; }
    .ft-icon-grid--3 { --cols: 2; }
}
@media (max-width: 640px) {
    .ft-icon-grid--5 { --cols: 2; }
}
@media (max-width: 480px) {
    .ft-icon-grid { gap: 0.75rem; }
    .ft-icon-grid--3, .ft-icon-grid--4, .ft-icon-grid--5 { --cols: 2; }
    .ft-icon-card { padding: 1.1rem 0.75rem; }
    .ft-icon-card__icon { width: 52px; height: 52px; font-size: 1.25rem; margin-bottom: 0.7rem; }
    .ft-icon-card__title { font-size: 0.92rem; }
    .ft-icon-card__text { font-size: 0.85rem; }
}

/* Texto de apoyo bajo títulos de sección */
.ft-lead { max-width: 820px; margin: 0 auto 2rem; text-align: center; color: var(--muted); line-height: 1.7; }

/* Lista con viñetas destacadas dentro de info-block */
.ft-checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; }
.ft-checklist li { position: relative; padding-left: 1.9rem; line-height: 1.6; }
.ft-checklist li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent);
}

/* ---------- Botón WhatsApp ---------- */
.btn--whatsapp {
    background: #1f9d55;
    color: #fff;
    border-color: #1f9d55;
}
.btn--whatsapp:hover { background: #17834a; border-color: #17834a; color: #fff; }

/* Texto del CTA final legible sobre fondo oscuro */
.cta-section .cta-section__text { color: rgba(255, 255, 255, 0.86); }

/* ---------- Contacto ---------- */
.contact-whatsapp { width: 100%; justify-content: center; margin-bottom: 1.5rem; }
.contact-map iframe { display: block; border-radius: 12px; }
.contact-map__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}
.contact-card__value a { color: inherit; text-decoration: none; }
.contact-card__value a:hover { color: var(--accent-dark); }

/* ---------- Preguntas frecuentes por categoría ---------- */
.faq-group__title {
    max-width: 800px;
    margin: 2.5rem auto 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    color: var(--primary);
    font-size: 1.2rem;
    scroll-margin-top: 100px;
}
.faq-group__title:first-of-type { margin-top: 0; }
.faq-index {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 960px;
    margin: 0 auto 2.5rem;
    padding: 0;
    list-style: none;
}
.faq-index a {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.faq-index a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Servicios: 3 grupos desplegables ---------- */
.service-group {
    max-width: 1100px;
    margin: 0 auto 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-card);
    overflow: hidden;
}
.service-group__header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.6rem;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.service-group__num {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}
.service-group__heading { flex: 1; }
.service-group__title { display: block; color: var(--primary); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 800; }
.service-group__summary { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }
.service-group__chevron { color: var(--primary); transition: transform 0.2s ease; }
.service-group.open .service-group__chevron { transform: rotate(180deg); }
.service-group__body { display: none; padding: 0 1.6rem 1.6rem; }
.service-group.open .service-group__body { display: block; }
.svc-item {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
}
.svc-item__title { color: var(--primary); font-size: 1.2rem; margin: 0 0 0.6rem; }
.svc-item__text { color: var(--ink); line-height: 1.65; margin: 0 0 1rem; }
.svc-item__media { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; }
.svc-item__media img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--r-md); }
@media (max-width: 760px) {
    .svc-item { grid-template-columns: 1fr; }
    .service-group__header { padding: 1.1rem; }
    .service-group__body { padding: 0 1.1rem 1.1rem; }
    .svc-item__media img { height: 160px; }
}

/* ---------- Servicios: tarjetas "¿Por qué elegir Fulltent?" (antes en línea en servicios.php) ---------- */
.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.service-card__icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}
.service-card__title { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin: 0 0 0.5rem; }
.service-card__text { color: #4a5568; line-height: 1.55; margin: 0; }

/* ---------- Accesibilidad: enlace para saltar al contenido ---------- */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 10000;
    padding: 0.6rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: 0.5rem;
    font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Footer: bloque de contacto ---------- */
.footer__address { font-style: normal; line-height: 2; font-size: 13px; color: #94a3b8; }
.footer__address a { color: #cbd5e1; text-decoration: none; }
.footer__address a:hover { color: var(--accent); }
.footer__address i { width: 16px; color: var(--accent); }

/* ---------- Página de gracias ---------- */
.thanks-box { max-width: 720px; margin: 0 auto; text-align: center; }
.thanks-box__icon {
    width: 84px; height: 84px; margin: 0 auto 1.25rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #1f9d55; color: #fff; font-size: 2.2rem;
}
.thanks-box__title { color: var(--primary); margin-bottom: 1rem; }
.thanks-box p { margin-bottom: 1rem; line-height: 1.7; }
.thanks-box__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 1.5rem 0; }
.thanks-box__more a { color: var(--accent-dark); font-weight: 600; }
