/* =====================================================
   TIPOGRAFÍA UNIFICADA POMELIA (index + servicios)
   -----------------------------------------------------
   Solo hay 3 niveles. Para cambiar el tamaño de TODA
   la página, modifica únicamente estas 3 variables.
   Los colores NO se tocan aquí: cada título y subtítulo
   conserva el color que ya tenía.
   ===================================================== */
:root {
    --tipo-titulo: clamp(2rem, 5vw, 2.8rem);   /* Títulos (h1, h2 y título del CTA) */
    --tipo-subtitulo: 1.25rem;                 /* Subtítulos (h3, h4, h5, h6) */
    --tipo-texto: 1rem;                        /* Todo el resto del texto */
}

/* ---------- TEXTO: mismo tamaño y formato en todo el sitio ---------- */
html:root body,
html:root body p,
html:root body li,
html:root body a,
html:root body label,
html:root body input,
html:root body textarea,
html:root body button,
html:root body small,
html:root body .btn,
html:root body .nav-link,
html:root body .nav-link-pomelia,
html:root body .badge,
html:root body .badge-pomelia,
html:root body .form-label,
html:root body .form-control,
html:root body .custom-input-pomelia,
html:root body .footer-pomelia-dark,
html:root body .footer-desc,
html:root body .keywords-banner,
html:root body .text-subtitle-clean,
html:root body .hero-description,
html:root body .status-text,
html:root body .team-description,
html:root body .cta-description,
html:root body .card-pomelia p {
    font-family: var(--font-family-pomelia) !important;
    font-size: var(--tipo-texto) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    font-style: normal !important;
}

/* ---------- TÍTULOS: mismo tamaño y formato ---------- */
html:root body h1,
html:root body h2,
html:root body .hero-title,
html:root body #cta-final h3 {
    font-family: var(--font-family-pomelia) !important;
    font-size: var(--tipo-titulo) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* ---------- SUBTÍTULOS: mismo tamaño y formato ---------- */
html:root body h3,
html:root body h4,
html:root body h5,
html:root body h6,
html:root body .team-title,
html:root body .current-status-title,
html:root body .card-pomelia h4,
html:root body footer h6 {
    font-family: var(--font-family-pomelia) !important;
    font-size: var(--tipo-subtitulo) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* El #cta-final h3 es título (no subtítulo): se reafirma aquí por especificidad */
html:root body #cta-final h3 {
    font-size: var(--tipo-titulo) !important;
    line-height: 1.2 !important;
}

/* Palabras con degradado dentro de un título: mismo tamaño y peso que el título */
html:root body :is(h1, h2, h3) .brand-text-gradient,
html:root body :is(h1, h2, h3) .text-pomelia-gradient,
html:root body :is(h1, h2, h3) span {
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
}

/* =====================================================
   EXCEPCIÓN: MANIFIESTO DEL FOOTER (INNOVACIÓN / DISEÑO...)
   Tamaño reducido, en mayúsculas, conserva el degradado de color
   (el degradado viene del <ul> en index.html y no se modifica).
   ===================================================== */
html:root body .footer-manifesto-list li {
    font-family: var(--font-family-pomelia) !important;
    font-size: clamp(1rem, 1.7vw, 1.25rem) !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    line-height: 1.6 !important;
    text-transform: uppercase !important;
    white-space: nowrap;
}

html:root body .footer-heart-icon {
    font-size: 1.6rem !important;
}

/* =====================================================
   TÍTULO PRINCIPAL DEL HERO (index)
   Tres líneas fijas, más grande que los demás títulos:
   "Tecnología y" / "diseño que dan" / "vida a tus ideas"
   ===================================================== */
html:root body .hero-full-layout h1.hero-heading {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
    max-width: none !important;
    overflow-wrap: normal !important;
}

html:root body .hero-full-layout h1.hero-heading .hero-line {
    display: block !important;
    white-space: nowrap;
    font-size: inherit !important;
}

html:root body .hero-full-layout h1.hero-heading .brand-text-gradient {
    display: block !important;
    width: fit-content;
    padding-bottom: 0.1em;
}


/* =====================================================
   INSIGNIAS DEL HERO (móvil): misma separación, ordenadas en 2 columnas
   ===================================================== */
.hero-insignias {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
@media (max-width: 575.98px) {
    .hero-insignias {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    html:root body .hero-insignias .badge {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0.6rem 0.5rem !important;
        font-size: 0.85rem !important;
        white-space: normal;
        text-align: center;
    }
}

/* Botón "Explorar Servicios" / "Iniciar Proyecto" centrado en el menú móvil */
@media (max-width: 991.98px) {
    .boton-nav-wrap { display: flex; justify-content: center; width: 100%; }
    .boton-nav-wrap .btn { margin: 0 auto; }
}
