/* SIGLO Cloud — sitio público (sigloweb.app). Sin dependencias externas. */

:root {
    --azul-noche: #1D2E4F;
    --azul: #1D4E9C;
    --azul-claro: #4C7DD9;
    --rojo: #D63B3B;
    --amarillo: #F2B233;
    --texto: #26303E;
    --texto-suave: #5A6675;
    --fondo: #FFFFFF;
    --fondo-alterna: #F4F7FB;
    --borde: #E2E8F0;
    --radio: 12px;
    --sombra: 0 10px 30px rgba(29, 46, 79, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--texto);
    background: var(--fondo);
    line-height: 1.6;
}

img { max-width: 100%; }

.contenedor {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Botones ── */
.btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primario { background: var(--azul); color: #fff; }
.btn-primario:hover { background: #173E7E; }
.btn-secundario { background: transparent; color: var(--azul); border-color: var(--azul); }
.btn-secundario:hover { background: #EAF1FB; }
.btn-claro { background: #fff; color: var(--azul-noche); }
.btn-claro:hover { background: #EAF1FB; }
.btn-contorno-claro { background: transparent; color: #E7EDF7; border-color: rgba(231, 237, 247, 0.6); }
.btn-contorno-claro:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn-grande { padding: 0.8rem 1.5rem; font-size: 1.05rem; }

/* ── Barra superior ── */
.barra {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--borde);
    backdrop-filter: blur(4px);
}
.barra-interna {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 60px;
}
.marca {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--azul-noche);
}
.marca-nombre { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.03em; }
.marca-nombre b { color: var(--azul); font-weight: 700; }
.nav-principal { display: flex; gap: 1.25rem; margin-left: auto; }
.nav-principal a {
    color: var(--texto-suave);
    text-decoration: none;
    font-size: 0.95rem;
}
.nav-principal a:hover { color: var(--azul); }

/* ── Hero ── */
.hero {
    background:
        radial-gradient(1100px 420px at 75% -10%, rgba(76, 125, 217, 0.35), transparent 60%),
        radial-gradient(700px 320px at 12% 0%, rgba(242, 178, 51, 0.18), transparent 55%),
        linear-gradient(160deg, #23375E 0%, var(--azul-noche) 70%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    text-align: center;
}
.hero-logo { margin-bottom: 0.5rem; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); }
.hero h1 {
    margin: 0.25rem 0 1rem;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    letter-spacing: 0.03em;
}
.hero h1 span { color: var(--amarillo); }
.claim {
    max-width: 640px;
    margin: 0 auto 1.75rem;
    font-size: 1.15rem;
    color: #D9E2F2;
}
.hero-acciones { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-puntos {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    color: #AFC0DC;
    font-size: 0.95rem;
}
.hero-puntos li::before { content: "✔"; color: var(--amarillo); margin-right: 0.35rem; }

/* ── Secciones ── */
.seccion { padding: 3.75rem 0; }
.seccion-alterna { background: var(--fondo-alterna); }
.seccion h2 {
    text-align: center;
    font-size: 1.9rem;
    margin: 0 0 0.5rem;
    color: var(--azul-noche);
}
.seccion-intro { text-align: center; color: var(--texto-suave); margin: 0 0 2.25rem; }

.rejilla-modulos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.1rem;
}
.modulo {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 1.25rem 1.35rem;
    box-shadow: 0 2px 8px rgba(29, 46, 79, 0.05);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.modulo:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.modulo h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--azul); }
.modulo p { margin: 0; color: var(--texto-suave); font-size: 0.93rem; }
.modulo-icono {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #EAF1FB;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.7rem;
}
.modulo-icono svg { width: 22px; height: 22px; }
.badge-modulo {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #8A5A00;
    background: #FFF1D6;
    border-radius: 8px;
    padding: 1px 7px;
    vertical-align: middle;
    margin-left: 4px;
}

/* ── Capturas (datos ficticios) ── */
.rejilla-shots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-top: 1.5rem;
}
.shot {
    margin: 0;
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 12px;
    box-shadow: 0 6px 20px rgba(29, 46, 79, 0.08);
}
.shot img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--borde);
    display: block;
}
.shot figcaption { text-align: center; color: var(--texto-suave); font-size: 0.92rem; padding: 0.6rem 0 0.2rem; }
@media (min-width: 860px) {
    .rejilla-shots { grid-template-columns: 1fr 1fr; }
    .rejilla-shots .shot:first-child { grid-column: 1 / -1; }
}

.rejilla-porque {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.rejilla-porque article { padding: 0.4rem 0.2rem; }
.rejilla-porque h3 { margin: 0 0 0.4rem; font-size: 1.08rem; color: var(--azul-noche); }
.rejilla-porque h3::before {
    content: "";
    display: inline-block;
    width: 10px; height: 10px;
    margin-right: 0.5rem;
    background: var(--rojo);
    clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%);
}
.rejilla-porque p { margin: 0; color: var(--texto-suave); font-size: 0.95rem; }

/* ── CTA / contacto ── */
.seccion-cta { background: linear-gradient(160deg, var(--azul) 0%, var(--azul-noche) 85%); }
.caja-cta { text-align: center; color: #fff; }
.caja-cta h2 { color: #fff; }
.titulo-marca { display: flex; align-items: center; justify-content: center; gap: 0.55rem; }
.titulo-marca img { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); }
.tm-cloud { color: var(--amarillo); }
.caja-cta p { color: #D9E2F2; max-width: 520px; margin: 0.4rem auto 1.75rem; }
.cta-acciones { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ── Pie ── */
.pie { background: var(--azul-noche); color: #AFC0DC; padding: 1.5rem 0; }
.pie-interna {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.pie .marca-nombre { color: #E7EDF7; }
.pie .marca-nombre b { color: var(--amarillo); }
.pie p { margin: 0; font-size: 0.9rem; }
.pie a { color: var(--amarillo); text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie-redes { display: inline-flex; gap: 0.75rem; align-items: center; }
.pie-redes a { display: inline-flex; }
.pie-redes svg { width: 20px; height: 20px; }
.pie-redes a:hover { opacity: 0.75; text-decoration: none; }
#siteseal { display: inline-flex; align-items: center; }
#siteseal img { height: 32px; width: auto; }

@media (max-width: 640px) {
    .nav-principal { display: none; }
    .hero { padding: 3rem 0 2.5rem; }
    .seccion { padding: 2.75rem 0; }
}
