/* ============================================================
   SACOT GRUPO EMPRESARIAL — Estilos Página de Inicio
   ============================================================ */

/* ── Resetear main para secciones full-width ────────────────── */
main.container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* section-tag, section-title, section-desc → definidos en custom.css */

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* Overlay gradiente oscuro */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 31, 58, .93) 0%,
        rgba(22, 49, 82, .88) 45%,
        rgba(13, 110, 188, .72) 100%
    );
}

/* Círculos decorativos de fondo */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,156,204,.08) 0%, transparent 65%);
    pointer-events: none;
}
.hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 10%; left: -15%;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(0,188,212,.06) 0%, transparent 65%);
    pointer-events: none;
}

/* Contenido principal del hero */
.hero-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8rem 0 3rem;
}

.hero-content { max-width: 680px; }

/* Badge superior */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,156,204,.18);
    border: 1px solid rgba(0,156,204,.35);
    color: #7dd3f0;
    font-size: .76rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    letter-spacing: .04em;
    backdrop-filter: blur(4px);
}
.hero-badge i { color: var(--gold); }

/* Título hero */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    letter-spacing: -.02em;
}
.hero-title-accent {
    background: linear-gradient(135deg, var(--cyan) 0%, #38bdf8 60%, var(--cyan-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Descripción */
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.72);
    line-height: 1.75;
    margin-bottom: 2.2rem;
    max-width: 560px;
}

/* Botones CTA */
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cyan);
    color: var(--white);
    font-size: .9rem;
    font-weight: 600;
    padding: .75rem 1.75rem;
    border-radius: 28px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s var(--ease), transform .2s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(0,156,204,.45);
}
.btn-hero-primary:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,156,204,.5);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255,255,255,.85);
    font-size: .88rem;
    font-weight: 600;
    padding: .75rem 1.5rem;
    border-radius: 28px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.3);
    cursor: pointer;
    transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s;
    backdrop-filter: blur(4px);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,.1);
    color: var(--white);
    border-color: rgba(255,255,255,.5);
    transform: translateY(-2px);
}

/* Barra de estadísticas */
.hero-stats {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(12px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,.1);
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1.5rem 0;
}

.stat-item {
    text-align: center;
    padding: .75rem 1.5rem;
    position: relative;
}
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,.15);
}

.stat-num {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-lbl {
    display: block;
    font-size: .72rem;
    color: rgba(255,255,255,.55);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
}

@media (max-width: 576px) {
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .stat-item:nth-child(3)::before,
    .stat-item:nth-child(1)::before { display: none; }
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-top: 1px solid rgba(255,255,255,.1);
    }
}

/* ════════════════════════════════════════════
   SERVICIOS
════════════════════════════════════════════ */
.section-services {
    padding: 5rem 0;
    background: var(--white);
}

.section-header { margin-bottom: 3rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 2.5rem;
}

@media (max-width: 992px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .services-grid { grid-template-columns: 1fr; } }

/* Tarjeta de servicio */
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem 1.75rem 1.6rem;
    position: relative;
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    display: flex;
    flex-direction: column;
}

/* Línea de color en el top */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
    border-radius: var(--radius) var(--radius) 0 0;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

/* Ícono */
.service-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,156,204,.12) 0%, rgba(0,188,212,.08) 100%);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    transition: background .3s var(--ease), transform .3s var(--ease);
    flex-shrink: 0;
}
.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    transform: scale(1.08);
}

.service-icon {
    font-size: 1.35rem;
    color: var(--cyan);
    transition: color .3s var(--ease);
}
.service-card:hover .service-icon { color: var(--white); }

/* Texto */
.service-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .6rem;
    line-height: 1.3;
}
.service-desc {
    font-size: .83rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.2rem;
}

/* Link */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--cyan);
    text-decoration: none;
    transition: gap .2s var(--ease), color .2s;
}
.service-link:hover { color: var(--blue); gap: 9px; }
.service-link i { font-size: .7rem; transition: transform .2s; }
.service-link:hover i { transform: translateX(2px); }

/* ════════════════════════════════════════════
   BANDA CTA
════════════════════════════════════════════ */
.section-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #135885 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Decoración geométrica */
.section-cta::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 400px; height: 400px;
    border-radius: 50%;
    border: 60px solid rgba(0,156,204,.08);
    pointer-events: none;
}
.section-cta::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    border: 50px solid rgba(0,188,212,.07);
    pointer-events: none;
}

.cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,156,204,.2);
    border: 1px solid rgba(0,156,204,.3);
    color: #7dd3f0;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

.cta-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: .9rem;
}

.cta-desc {
    font-size: .95rem;
    color: rgba(255,255,255,.65);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--navy);
    font-size: .9rem;
    font-weight: 700;
    padding: .8rem 2rem;
    border-radius: 28px;
    text-decoration: none;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-cta-primary:hover {
    background: var(--gray-100);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255,255,255,.85);
    font-size: .88rem;
    font-weight: 600;
    padding: .8rem 1.75rem;
    border-radius: 28px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.3);
    transition: background .2s, color .2s, transform .2s;
    backdrop-filter: blur(4px);
}
.btn-cta-outline:hover {
    background: rgba(255,255,255,.1);
    color: var(--white);
    transform: translateY(-2px);
}

/* ════════════════════════════════════════════
   SOBRE NOSOTROS
════════════════════════════════════════════ */
.section-about {
    padding: 5.5rem 0;
    background: var(--gray-50);
}

.about-img-wrap {
    position: relative;
    display: inline-block;
}

.about-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: block;
}

/* Insignia flotante */
.about-badge {
    position: absolute;
    bottom: -16px; right: -16px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 105px;
    text-align: center;
    border: 3px solid var(--white);
}
.about-badge .badge-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
}
.about-badge .badge-txt {
    font-size: .65rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: .07em;
    line-height: 1.3;
    margin-top: 3px;
}

/* Texto de "Nosotros" */
.about-text { padding-left: 1.5rem; }

.about-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--gray-700);
}
.about-feature .feat-icon {
    width: 22px; height: 22px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.about-feature .feat-icon i {
    font-size: .55rem;
    color: var(--white);
}

.btn-about {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: var(--white);
    font-size: .88rem;
    font-weight: 600;
    padding: .75rem 1.75rem;
    border-radius: 28px;
    text-decoration: none;
    transition: background .2s var(--ease), transform .2s, box-shadow .2s;
    box-shadow: var(--shadow-md);
}
.btn-about:hover {
    background: var(--navy-mid);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-about i { font-size: .8rem; }

@media (max-width: 767px) {
    .about-text { padding-left: 0; margin-top: 2.5rem; }
    .about-badge { right: -8px; bottom: -8px; min-width: 90px; }
}

/* ════════════════════════════════════════════
   FAQ
════════════════════════════════════════════ */
.section-faq {
    padding: 5rem 0;
    background: var(--white);
}

/* Accordion custom */
.faq-accordion { margin-top: 2.5rem; }

.accordion-item {
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius) !important;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow .2s var(--ease);
}
.accordion-item:hover { box-shadow: var(--shadow-md); }

.accordion-button {
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy) !important;
    background: var(--white) !important;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    color: var(--cyan) !important;
    background: var(--gray-50) !important;
    border-bottom: 1px solid var(--gray-200);
    border-radius: var(--radius) var(--radius) 0 0 !important;
}
.accordion-button::after {
    filter: none !important;
    background-image: none !important;
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--cyan);
    width: auto;
    height: auto;
    font-size: .85rem;
    transition: transform .25s var(--ease);
}
.accordion-button:not(.collapsed)::after { transform: rotate(180deg); }

.accordion-body {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.75;
    padding: 1.1rem 1.4rem;
    background: var(--gray-50);
}

/* ── Responsive hero ────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section { background-attachment: scroll; }
    .hero-body { padding: 6rem 0 2rem; }
    .hero-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    .hero-desc { font-size: .95rem; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .btn-hero-primary, .btn-hero-secondary { width: auto; }
    .section-services, .section-cta, .section-about, .section-faq {
        padding: 3.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-badge { font-size: .7rem; }
    .section-title { font-size: 1.5rem; }
}
