/* ==========================================================================
   page.css — Puertas Automatizadas
   Complemento de Bootstrap 5. Solo tokens de marca y ajustes mínimos.
   Índice:
     1. Tokens
     2. Base y tipografía
     3. Utilidades de marca
     4. Botones
     5. Encabezado y navegación
     6. Secciones y tarjetas
     7. Formulario
     8. Pie de página
     9. WhatsApp flotante
    10. Animaciones y accesibilidad
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
    --azul-profundo: #123b5d;
    --azul-secundario: #1e5a82;
    --gris-superficie: #f4f6f8;
    --gris-borde: #dde3e9;
    --gris-texto: #5b6b7a;
    --plata: #93a3b1;
    --blanco: #ffffff;

    --bs-primary: var(--azul-profundo);
    --bs-primary-rgb: 18, 59, 93;
    --bs-body-color: #1c2a36;
    --bs-body-font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-border-color: var(--gris-borde);
    --bs-border-radius: 0.25rem;
    --bs-link-color: var(--azul-secundario);
    --bs-link-hover-color: var(--azul-profundo);
}

/* 2. Base y tipografía --------------------------------------------------- */
body {
    font-family: var(--bs-body-font-family);
    color: var(--bs-body-color);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--azul-profundo);
    letter-spacing: -0.015em;
}

h1, .display-4, .display-5, .display-6 {
    font-weight: 800;
    line-height: 1.08;
}
.img-serv{
    aspect-ratio: 4 / 3;
}
.img-serv img{
    height: 100%;
    object-fit: cover;
    width: 100%;
}
#img-logo{
    width: 150px;
}
#img-logof{
    width: 250px;
}
p {
    color: var(--gris-texto);
}

.lead-sm {
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* 3. Utilidades de marca -------------------------------------------------- */
.bg-primary-deep   { background-color: var(--azul-profundo) !important; }
.bg-sec-deep   { background-color: var(--azul-secundario) !important; }
.bg-surface        { background-color: var(--gris-superficie) !important; }
.text-primary-deep { color: var(--azul-profundo) !important; }
.text-secondary-blue { color: var(--azul-secundario) !important; }
.text-silver       { color: var(--plata) !important; }
.text-white-70     { color: rgba(255, 255, 255, 0.72) !important; }
.text-white-50     { color: rgba(255, 255, 255, 0.55) !important; }
.border-brand      { border-color: var(--gris-borde) !important; }

.section {
    padding-block: 4.5rem;
}

@media (min-width: 992px) {
    .section { padding-block: 7rem; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--plata);
}

.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    background-color: currentColor;
}

.num-index {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--plata);
}

/* 4. Botones -------------------------------------------------------------- */
.btn {
    --bs-btn-border-radius: 0.25rem;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-brand {
    background-color: var(--azul-profundo);
    border: 1px solid var(--azul-profundo);
    color: var(--blanco);
}

.btn-brand:hover,
.btn-brand:focus-visible {
    background-color: var(--azul-secundario);
    border-color: var(--azul-secundario);
    color: var(--blanco);
}

.btn-outline-brand {
    background-color: transparent;
    border: 1px solid var(--gris-borde);
    color: var(--azul-profundo);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus-visible {
    background-color: var(--gris-superficie);
    border-color: var(--azul-secundario);
    color: var(--azul-profundo);
}

.btn-light-brand {
    background-color: var(--blanco);
    border: 1px solid var(--blanco);
    color: var(--azul-profundo);
}

.btn-light-brand:hover { background-color: var(--gris-superficie); }

.btn-outline-light-brand {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--blanco);
}

.btn-outline-light-brand:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--blanco);
}

/* 5. Encabezado y navegación ---------------------------------------------- */
.site-header {
    border-bottom: 1px solid var(--gris-borde);
    z-index: 1030;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--azul-profundo);
    color: var(--blanco);
    font-size: 1.15rem;
}

.brand-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--azul-profundo);
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--plata);
}

.navbar .nav-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--azul-secundario);
}

/* 6. Secciones y tarjetas -------------------------------------------------- */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.ratio-media {
    width: 100%;
    object-fit: cover;
}

.card-brand {
    background-color: var(--blanco);
    border: 1px solid var(--gris-borde);
    height: 100%;
}

.card-brand .card-icon {
    display: inline-flex;
    font-size: 1.5rem;
    color: var(--azul-secundario);
}
.top40{
    margin-top: 40px;
}
.stat-item {
    border-top: 1px solid var(--gris-borde);
    padding-top: 1.5rem;
}

.list-dash {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.list-dash li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.9375rem;
    color: var(--gris-texto);
}

.list-dash li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 0.75rem;
    height: 1px;
    background-color: var(--azul-secundario);
}

.project-card img {
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.04);
}

.filter-chip {
    border: 1px solid var(--gris-borde);
    background-color: transparent;
    color: var(--bs-body-color);
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--azul-secundario);
    color: var(--azul-secundario);
}

.filter-chip.is-active {
    background-color: var(--azul-profundo);
    border-color: var(--azul-profundo);
    color: var(--blanco);
}

.badge-brand {
    background-color: rgba(30, 90, 130, 0.1);
    color: var(--azul-secundario);
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* 7. Formulario ------------------------------------------------------------ */
.form-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--azul-profundo);
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    border-color: var(--gris-borde);
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--azul-secundario);
    box-shadow: 0 0 0 0.2rem rgba(30, 90, 130, 0.15);
}

/* 8. Pie de página ---------------------------------------------------------- */
.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
}

.footer-link:hover {
    color: var(--blanco);
    text-decoration: underline;
}

/* 9. WhatsApp flotante ------------------------------------------------------ */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--blanco);
    font-size: 1.6rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    z-index: 1040;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    color: var(--blanco);
    transform: translateY(-3px);
}

/* 10. Animaciones y accesibilidad -------------------------------------------- */
.reveal {
    animation: reveal-up 0.7s ease both;
}

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

:focus-visible {
    outline: 2px solid var(--azul-secundario);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
