/* ============================================================
   HITLINK — Capital y Financiamiento
   CSS independiente (prefijo hl- para evitar colisiones con WP)
   ============================================================ */

/* ============================================================
   01. VARIABLES CSS
   ============================================================ */
:root {
    /* Colores — idénticos al customizer Hitlink */
    --hl-accent:          #43B8DE;
    --hl-accent-dark:     #2da0c5;
    --hl-accent-light:    rgba(67, 184, 222, 0.12);
    --hl-text-body:       #707070;
    --hl-text-dark:       #292C2F;
    --hl-heading:         #4A4A4A;
    --hl-bg-white:        #FFFFFF;
    --hl-bg-light:        #F1F1F1;
    --hl-bg-gray:         #EBEBEB;
    --hl-bg-dark:         #1E2226;
    --hl-border:          #EAEDEF;
    --hl-border-light:    #F2F2F2;

    /* Tipografía */
    --hl-font:            'Poppins', 'Helvetica', Arial, sans-serif;
    --hl-font-size:       15px;
    --hl-line-height:     1.65em;

    /* Espaciado */
    --hl-section-py:      100px;
    --hl-container-max:   1240px;
    --hl-container-px:    20px;

    /* Header */
    --hl-header-h:        80px;
    --hl-header-h-sm:     66px;

    /* Misc */
    --hl-transition:      all 0.2s linear;
    --hl-radius-btn:      5px;
    --hl-radius-card:     8px;
    --hl-shadow-card:     0 2px 20px rgba(68, 68, 68, 0.09);
    --hl-shadow-hover:    0 8px 32px rgba(68, 68, 68, 0.16);
}

/* ============================================================
   02. RESET MÍNIMO + BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--hl-font);
    font-size: var(--hl-font-size);
    line-height: var(--hl-line-height);
    color: var(--hl-text-body);
    background-color: var(--hl-bg-white);
    margin: 0;
    padding: 0;
    padding-top: var(--hl-header-h);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--hl-accent);
    transition: var(--hl-transition);
}
a:hover { color: var(--hl-accent-dark); }

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hl-font);
    color: var(--hl-heading);
    font-weight: 700;
    line-height: 1.3em;
    margin: 0 0 15px;
}

/* ============================================================
   03. LAYOUT
   ============================================================ */
.hl-container {
    max-width: var(--hl-container-max);
    margin: 0 auto;
    padding: 0 var(--hl-container-px);
    width: 100%;
}

.hl-section {
    padding: var(--hl-section-py) 0;
}

.hl-section-white { background-color: var(--hl-bg-white); }
.hl-section-light { background-color: var(--hl-bg-light); }
.hl-section-gray  { background-color: var(--hl-bg-gray); }

.hl-text-center { text-align: center; }
.hl-text-left   { text-align: left; }

/* Encabezado de sección */
.hl-section-header {
    margin-bottom: 60px;
}

.hl-section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--hl-accent);
    margin-bottom: 14px;
}

.hl-section-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--hl-text-dark);
    margin-bottom: 16px;
    line-height: 1.25em;
}

.hl-section-subtitle {
    font-size: 16px;
    color: var(--hl-text-body);
    max-width: 580px;
    margin: 0 auto 0;
    line-height: 1.7em;
}

.hl-text-center .hl-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hl-section-divider {
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--hl-accent);
    margin-top: 20px;
}

.hl-text-center .hl-section-divider {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   04. BOTONES
   ============================================================ */
.hl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--hl-font);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--hl-radius-btn);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--hl-transition);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Primario */
.hl-btn-primary {
    background-color: var(--hl-accent);
    color: #fff;
    border-color: var(--hl-accent);
}
.hl-btn-primary:hover {
    background-color: var(--hl-bg-white);
    color: var(--hl-heading);
    border-color: var(--hl-border);
}

/* Outline (sobre fondos oscuros) */
.hl-btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}
.hl-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

/* Blanco (sobre fondo de color) */
.hl-btn-white {
    background-color: #fff;
    color: var(--hl-text-dark);
    border-color: #fff;
}
.hl-btn-white:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

/* Full width */
.hl-btn-full {
    width: 100%;
}

/* ============================================================
   SVG ÍCONOS INLINE — Tamaños globales
   Todos los <svg> dentro de .hl-* heredan estos tamaños.
   Cada sección sobreescribe según necesidad.
   ============================================================ */

/* Íconos pequeños (nav, features, disclaimer, footer contacto) */
.hl-nav-arrow,
.hl-service-features svg,
.hl-form-disclaimer svg,
.hl-footer-contact-list svg,
.hl-footer-social svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    flex-shrink: 0;
}

/* Íconos del header (social + phone) */
.hl-social-icons svg,
.hl-phone-link svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    display: block;
    flex-shrink: 0;
}

/* Íconos de valor (círculos grandes) */
.hl-value-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    display: block;
}

/* Íconos de tarjetas de servicio */
.hl-service-card-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    display: block;
}

/* Íconos en botones */
.hl-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    display: block;
    flex-shrink: 0;
}

/* Ícono de hero eyebrow */
.hl-hero-eyebrow svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Ícono hero scroll */
.hl-hero-scroll svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

/* Íconos de detalles de contacto (col izquierda) */
.hl-contact-detail-item > svg {
    width: 16px;
    height: 16px;
    fill: var(--hl-accent);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Íconos de feedback del formulario */
.hl-form-feedback svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Spinner botón */
.hl-btn-spinner {
    width: 16px !important;
    height: 16px !important;
    animation: hl-spin 1s linear infinite;
}
@keyframes hl-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================================
   05. HEADER
   ============================================================ */
.hl-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--hl-bg-white);
    box-shadow: 0 1px 6px rgba(68, 68, 68, 0.07);
    transition: box-shadow 0.2s linear, height 0.2s linear;
}

.hl-header-inner {
    height: var(--hl-header-h);
    display: flex;
    align-items: center;
    transition: height 0.2s linear;
}

.hl-header.hl-scrolled .hl-header-inner {
    height: var(--hl-header-h-sm);
    box-shadow: 0 2px 12px rgba(68, 68, 68, 0.11);
}

.hl-header .hl-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

/* Logo */
.hl-logo { flex-shrink: 0; }
.hl-logo a { display: flex; align-items: center; }
.hl-logo img {
    max-height: 42px;
    width: auto;
    transition: max-height 0.2s linear;
}
.hl-header.hl-scrolled .hl-logo img {
    max-height: 36px;
}

/* Navegación desktop */
.hl-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hl-nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.hl-nav-item {
    position: relative;
}

.hl-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hl-heading);
    height: var(--hl-header-h);
    line-height: var(--hl-header-h);
    white-space: nowrap;
    transition: var(--hl-transition);
}
.hl-header.hl-scrolled .hl-nav-link {
    height: var(--hl-header-h-sm);
    line-height: var(--hl-header-h-sm);
}

.hl-nav-link:hover,
.hl-nav-link.hl-active {
    color: var(--hl-accent);
}

.hl-nav-arrow {
    font-size: 9px;
    transition: transform 0.2s linear;
}
.hl-has-dropdown:hover .hl-nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.hl-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--hl-bg-white);
    box-shadow: 0 5px 20px rgba(68, 68, 68, 0.13);
    border-top: 2px solid var(--hl-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s linear, visibility 0.2s linear, transform 0.2s linear;
    z-index: 1000;
}

.hl-has-dropdown:hover .hl-dropdown,
.hl-has-dropdown:focus-within .hl-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hl-dropdown li a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hl-text-body);
    border-bottom: 1px solid var(--hl-border-light);
    transition: var(--hl-transition);
}
.hl-dropdown li:last-child a {
    border-bottom: none;
}
.hl-dropdown li a:hover {
    color: var(--hl-accent);
    padding-left: 25px;
}

/* Zona derecha del header */
.hl-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.hl-phone-link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hl-heading);
    white-space: nowrap;
}
.hl-phone-link i {
    color: var(--hl-accent);
    font-size: 12px;
}
.hl-phone-link:hover { color: var(--hl-accent); }

.hl-social-icons {
    display: flex;
    gap: 7px;
}
.hl-social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hl-bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hl-heading);
    font-size: 12px;
    transition: var(--hl-transition);
}
.hl-social-icons a:hover {
    background: var(--hl-accent);
    color: #fff;
}

/* Botón hamburguesa (oculto en desktop) */
.hl-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}
.hl-hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--hl-heading);
    border-radius: 2px;
    transition: var(--hl-transition);
}

/* ============================================================
   06. HERO
   ============================================================ */
.hl-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #fff;
    overflow: hidden;
}

.hl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 26, 32, 0.90) 0%,
        rgba(35, 40, 46, 0.75) 55%,
        rgba(67, 184, 222, 0.28) 100%
    );
}

.hl-hero .hl-container {
    position: relative;
    z-index: 2;
}

.hl-hero-content {
    max-width: 680px;
    padding: 80px 0 70px;
}

.hl-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(67, 184, 222, 0.15);
    border: 1px solid rgba(67, 184, 222, 0.45);
    border-radius: 25px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hl-accent);
    margin-bottom: 26px;
    letter-spacing: 0.4px;
}
.hl-hero-eyebrow i {
    font-size: 12px;
}

.hl-hero-title {
    font-size: 50px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.15em;
}

.hl-accent { color: var(--hl-accent); }

.hl-hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.75em;
}

.hl-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Flecha scroll */
.hl-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-size: 20px;
    z-index: 2;
    transition: color 0.2s linear;
    animation: hl-bounce 2.2s ease-in-out infinite;
}
.hl-hero-scroll:hover { color: var(--hl-accent); }

@keyframes hl-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(9px); }
}

/* ============================================================
   07. PROPUESTA DE VALOR
   ============================================================ */
.hl-value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.hl-value-item {
    text-align: center;
    padding: 38px 28px;
    background: var(--hl-bg-white);
    border-radius: var(--hl-radius-card);
    border: 1px solid var(--hl-border);
    transition: var(--hl-transition);
    /* Animación de entrada — estado inicial */
    opacity: 0;
    transform: translateY(22px);
}
.hl-value-item.hl-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s linear, border-color 0.2s linear;
}
.hl-value-item:hover {
    box-shadow: var(--hl-shadow-hover);
    transform: translateY(-4px);
    border-color: var(--hl-accent);
}

.hl-value-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--hl-accent-light);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--hl-transition);
}
.hl-value-icon i {
    font-size: 26px;
    color: var(--hl-accent);
    transition: var(--hl-transition);
}
.hl-value-item:hover .hl-value-icon {
    background: var(--hl-accent);
}
.hl-value-item:hover .hl-value-icon i {
    color: #fff;
}

.hl-value-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hl-text-dark);
    margin-bottom: 10px;
}
.hl-value-text {
    font-size: 14px;
    color: var(--hl-text-body);
    line-height: 1.7em;
    margin: 0;
}

/* ============================================================
   08. SERVICIOS
   ============================================================ */
.hl-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.hl-service-card {
    position: relative;
    background: var(--hl-bg-white);
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius-card);
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    transition: var(--hl-transition);
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(22px);
}
.hl-service-card.hl-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s linear, border-color 0.2s linear;
}
.hl-service-card:hover {
    box-shadow: var(--hl-shadow-hover);
    transform: translateY(-5px);
    border-color: var(--hl-accent);
}

/* Card destacada */
.hl-service-card-featured {
    border-color: var(--hl-accent);
    background: linear-gradient(to bottom, rgba(67, 184, 222, 0.04) 0%, var(--hl-bg-white) 100%);
}

/* Badge "Más solicitado" */
.hl-service-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hl-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.hl-service-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    background: var(--hl-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--hl-transition);
}
.hl-service-card-icon i {
    font-size: 24px;
    color: var(--hl-accent);
    transition: var(--hl-transition);
}
.hl-service-card:hover .hl-service-card-icon {
    background: var(--hl-accent);
}
.hl-service-card:hover .hl-service-card-icon i {
    color: #fff;
}

.hl-service-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hl-service-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--hl-text-dark);
    margin-bottom: 10px;
}
.hl-service-card:hover .hl-service-card-title {
    color: var(--hl-accent);
}

.hl-service-card-text {
    font-size: 14px;
    color: var(--hl-text-body);
    line-height: 1.7em;
    margin-bottom: 18px;
    flex: 1;
}

.hl-service-features {
    margin: 0;
    border-top: 1px solid var(--hl-border-light);
    padding-top: 14px;
}
.hl-service-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--hl-text-body);
    padding: 5px 0;
    border-bottom: 1px solid var(--hl-border-light);
    margin: 0;
}
.hl-service-features li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.hl-service-features li i {
    color: var(--hl-accent);
    font-size: 10px;
    flex-shrink: 0;
}

/* ============================================================
   09. PROCESO
   ============================================================ */
.hl-process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

/* Línea conectora */
.hl-process-steps::before {
    content: '';
    position: absolute;
    top: 39px;
    left: calc(100% / 8);
    right: calc(100% / 8);
    height: 2px;
    background: linear-gradient(to right, var(--hl-accent), #50CCB3);
    z-index: 0;
}

.hl-process-step {
    position: relative;
    text-align: center;
    padding: 0 24px;
    z-index: 1;
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(22px);
}
.hl-process-step.hl-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hl-process-number {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--hl-accent);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    position: relative;
    z-index: 2;
    /* Borde del color del fondo para que "corte" la línea */
    border: 5px solid var(--hl-bg-gray);
    transition: var(--hl-transition);
    box-shadow: 0 0 0 2px var(--hl-accent);
}
.hl-process-step:hover .hl-process-number {
    background: var(--hl-text-dark);
    box-shadow: 0 0 0 2px var(--hl-text-dark);
    transform: scale(1.06);
}

.hl-process-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hl-text-dark);
    margin-bottom: 10px;
}
.hl-process-text {
    font-size: 14px;
    color: var(--hl-text-body);
    line-height: 1.7em;
    margin: 0;
}

/* ============================================================
   10. CTA BANNER
   ============================================================ */
.hl-cta-banner {
    position: relative;
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--hl-section-py) 0;
    text-align: center;
    color: #fff;
}

.hl-cta-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 26, 32, 0.84);
}

.hl-cta-banner .hl-container {
    position: relative;
    z-index: 2;
}

.hl-cta-banner-content {
    max-width: 680px;
    margin: 0 auto;
}

.hl-cta-banner-title {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.25em;
}

.hl-cta-banner-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 36px;
    line-height: 1.7em;
}

/* ============================================================
   11. CONTACTO + FORMULARIO
   ============================================================ */
.hl-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.hl-contact-info { padding-top: 8px; }

.hl-contact-intro {
    font-size: 15px;
    color: var(--hl-text-body);
    margin-bottom: 34px;
    line-height: 1.7em;
}

.hl-contact-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hl-contact-detail-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(16px);
}
.hl-contact-detail-item.hl-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hl-contact-detail-item > i {
    color: var(--hl-accent);
    font-size: 15px;
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}
.hl-contact-detail-item strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--hl-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}
.hl-contact-detail-item span,
.hl-contact-detail-item a {
    font-size: 14px;
    color: var(--hl-text-body);
}
.hl-contact-detail-item a:hover { color: var(--hl-accent); }

/* Form wrapper */
.hl-contact-form-wrapper {
    background: var(--hl-bg-white);
    border: 1px solid var(--hl-border);
    border-radius: 12px;
    padding: 44px 40px;
    box-shadow: var(--hl-shadow-card);
}

/* Grupos de formulario */
.hl-form-row {
    display: flex;
    gap: 18px;
}
.hl-form-row-2col > .hl-form-group {
    flex: 1;
}
.hl-form-group {
    margin-bottom: 20px;
}

.hl-form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--hl-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.hl-required { color: var(--hl-accent); }

.hl-form-input,
.hl-form-select,
.hl-form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--hl-font);
    font-size: 14px;
    color: var(--hl-text-body);
    background: var(--hl-bg-light);
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius-btn);
    transition: var(--hl-transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.hl-form-input::placeholder,
.hl-form-textarea::placeholder {
    color: #b8b8b8;
}

.hl-form-input:focus,
.hl-form-select:focus,
.hl-form-textarea:focus {
    border-color: var(--hl-accent);
    background: var(--hl-bg-white);
    box-shadow: 0 0 0 3px rgba(67, 184, 222, 0.13);
}

/* Select con flecha custom */
.hl-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M0 0l5 7 5-7z' fill='%23707070'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
    color: var(--hl-text-body);
}
.hl-form-select option[value=""][disabled] { color: #b8b8b8; }

.hl-form-textarea {
    resize: vertical;
    min-height: 110px;
}

/* Error inline */
.hl-form-error {
    display: block;
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
    font-weight: 500;
    min-height: 16px;
}
.hl-form-input.hl-input-error,
.hl-form-select.hl-input-error {
    border-color: #e74c3c;
}

/* Submit */
.hl-form-submit-wrapper { margin-top: 4px; }

.hl-form-disclaimer {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.hl-form-disclaimer i { color: var(--hl-accent); }

/* Mensaje de error general del form */
.hl-form-error-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 6px;
    font-size: 13px;
    color: #c0392b;
    margin-top: 16px;
}
.hl-form-error-msg i { flex-shrink: 0; }

[hidden] { display: none !important; }

/* ============================================================
   12. FOOTER
   ============================================================ */
#hl-footer { width: 100%; }

/* Footer primario */
#hl-primary-footer {
    background-color: var(--hl-bg-dark);
    padding: 68px 0 48px;
}

.hl-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.4fr;
    gap: 40px;
}

.hl-footer-logo { margin-bottom: 18px; }
.hl-footer-logo img {
    max-height: 38px;
    /* Si el logo blanco no existe o no se ve, invertir el de color: */
    /* filter: brightness(0) invert(1); */
}

.hl-footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.50);
    line-height: 1.7em;
    margin-bottom: 22px;
}

.hl-footer-social {
    display: flex;
    gap: 9px;
}
.hl-footer-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.50);
    font-size: 13px;
    transition: var(--hl-transition);
}
.hl-footer-social a:hover {
    background: var(--hl-accent);
    border-color: var(--hl-accent);
    color: #fff;
}

.hl-footer-col-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.hl-footer-links {
    display: flex;
    flex-direction: column;
}
.hl-footer-links li a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.50);
    padding: 6px 0;
    transition: var(--hl-transition);
}
.hl-footer-links li a:hover {
    color: var(--hl-accent);
    padding-left: 5px;
}

.hl-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.hl-footer-contact-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
}
.hl-footer-contact-list i {
    color: var(--hl-accent);
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 15px;
    text-align: center;
}
.hl-footer-contact-list span,
.hl-footer-contact-list a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.50);
    line-height: 1.55em;
}
.hl-footer-contact-list a:hover { color: var(--hl-accent); }

/* Copyright bar — dentro del footer oscuro */
.hl-footer-copyright-bar {
    margin-top: 48px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hl-copyright {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3px;
    margin: 0;
}

/* Logo del footer: invertir a blanco usando filtro CSS */
.hl-footer-logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* Paneles de feedback del formulario */
.hl-form-feedback {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.6em;
}
.hl-form-feedback strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}
.hl-form-feedback p,
.hl-form-feedback span {
    margin: 0;
}
.hl-form-feedback a {
    font-weight: 600;
}

/* Éxito */
.hl-form-feedback-success {
    background: rgba(39, 174, 96, 0.09);
    border: 1px solid rgba(39, 174, 96, 0.30);
    color: #1a6b3c;
}
.hl-form-feedback-success svg { fill: #27ae60; }
.hl-form-feedback-success a { color: #1a6b3c; }

/* Error de envío */
.hl-form-feedback-error {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.28);
    color: #c0392b;
}
.hl-form-feedback-error svg { fill: #e74c3c; }
.hl-form-feedback-error a { color: #c0392b; }

/* Warning (validación) */
.hl-form-feedback-warning {
    background: rgba(243, 156, 18, 0.09);
    border: 1px solid rgba(243, 156, 18, 0.30);
    color: #8a5c00;
}
.hl-form-feedback-warning svg { fill: #f39c12; }

/* Botón en estado loading */
.hl-btn.hl-btn-loading {
    pointer-events: none;
    opacity: 0.75;
    cursor: wait;
}

/* ============================================================
   13. ANIMACIONES DE ENTRADA
   ============================================================ */
/* Las clases iniciales (opacity: 0, transform) están definidas en cada componente.
   La clase hl-visible se agrega via JS con IntersectionObserver. */

/* ============================================================
   14. RESPONSIVE
   ============================================================ */

/* Tablet grande: ≤ 1240px */
@media only screen and (max-width: 1240px) {
    .hl-value-grid    { grid-template-columns: repeat(2, 1fr); }
    .hl-services-grid { grid-template-columns: repeat(2, 1fr); }
    .hl-footer-grid   { grid-template-columns: 1fr 1fr; gap: 36px; }
    .hl-hero-title    { font-size: 44px; }
    .hl-section-title { font-size: 30px; }
}

/* Tablet: ≤ 993px */
@media only screen and (max-width: 993px) {
    /* Menú */
    .hl-nav           { display: none; }
    .hl-mobile-toggle { display: flex; }

    /* Esconder teléfono en header */
    .hl-phone-link span { display: none; }

    /* Proceso en 2 columnas */
    .hl-process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    .hl-process-steps::before { display: none; }
    .hl-process-step { padding: 0; }

    /* Contacto en 1 columna */
    .hl-contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hl-contact-form-wrapper { padding: 36px 30px; }
}

/* Móvil: ≤ 767px */
@media only screen and (max-width: 767px) {
    :root {
        --hl-section-py: 65px;
        --hl-header-h: 65px;
    }

    body { padding-top: var(--hl-header-h); }

    /* Header: ocultar social icons */
    .hl-header-right .hl-social-icons { display: none; }

    /* Hero */
    .hl-hero-title     { font-size: 32px; }
    .hl-hero-subtitle  { font-size: 15px; }
    .hl-hero-ctas      { flex-direction: column; align-items: flex-start; }
    .hl-hero-content   { padding: 60px 0 50px; }

    /* Sección títulos */
    .hl-section-title      { font-size: 26px; }
    .hl-cta-banner-title   { font-size: 26px; }
    .hl-cta-banner-text    { font-size: 15px; }

    /* Grids a 1 columna */
    .hl-value-grid    { grid-template-columns: 1fr; }
    .hl-services-grid { grid-template-columns: 1fr; }
    .hl-process-steps { grid-template-columns: 1fr; gap: 36px; }

    /* Footer */
    .hl-footer-grid   { grid-template-columns: 1fr; gap: 28px; }

    /* Form filas a 1 columna */
    .hl-form-row       { flex-direction: column; gap: 0; }
    .hl-contact-form-wrapper { padding: 26px 20px; }
}

/* Móvil pequeño: ≤ 480px */
@media only screen and (max-width: 480px) {
    .hl-hero-title { font-size: 28px; }
    .hl-btn {
        padding: 13px 24px;
        font-size: 13px;
    }
    .hl-hero-ctas .hl-btn { width: 100%; }
}

/* iOS Safari: deshabilitar parallax (background-attachment: fixed bug) */
@media (hover: none) {
    .hl-hero,
    .hl-cta-banner {
        background-attachment: scroll;
    }
}

/* ============================================================
   MENÚ MÓVIL — estado abierto (clase hl-nav-open via JS)
   ============================================================ */
.hl-nav.hl-nav-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--hl-header-h);
    left: 0;
    width: 100%;
    background: var(--hl-bg-white);
    padding: 15px 0 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    z-index: 9998;
    border-top: 2px solid var(--hl-accent);
    overflow-y: auto;
    max-height: calc(100vh - var(--hl-header-h));
}

.hl-nav.hl-nav-open .hl-nav-list {
    flex-direction: column;
    width: 100%;
}

.hl-nav.hl-nav-open .hl-nav-link {
    height: auto;
    line-height: 1;
    padding: 14px 20px;
    border-bottom: 1px solid var(--hl-border-light);
    width: 100%;
}

.hl-nav.hl-nav-open .hl-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: var(--hl-bg-light);
    padding: 0 0 0 15px;
    min-width: auto;
}

.hl-nav.hl-nav-open .hl-dropdown li a {
    padding: 11px 20px;
    font-size: 13px;
}

/* Hamburguesa animada */
.hl-mobile-toggle[aria-expanded="true"] .hl-hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hl-mobile-toggle[aria-expanded="true"] .hl-hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hl-mobile-toggle[aria-expanded="true"] .hl-hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
