/* Secciones de la portada (contenido recuperado de la web anterior con el diseño nuevo) */
.hs-section { position: relative; z-index: 10; padding: 70px 0; }
.hs-section-alt { background: rgba(0, 212, 255, 0.02); border-top: 1px solid rgba(0, 212, 255, 0.1); border-bottom: 1px solid rgba(0, 212, 255, 0.1); }
.hs-title { color: #f8fafc; font-weight: 700; text-align: center; margin: 0 0 12px; }
.hs-subtitle { color: #a8d9e8; text-align: center; max-width: 760px; margin: 0 auto 40px; font-size: 17px; line-height: 1.7; }
.hs-cyan { color: #00d4ff; }
.hs-orange { color: #f29545; }
.hs-card { background-color: rgba(10, 15, 35, 0.92); border: 1px solid rgba(0, 212, 255, 0.25); border-radius: 16px; padding: 28px; height: 100%; transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.hs-card:hover { border-color: #00d4ff; box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2); transform: translateY(-3px); }
.hs-card h3 { color: #f8fafc; font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.hs-card p { color: #a8d9e8; font-size: 15px; line-height: 1.65; margin: 0; }
.hs-grid { display: grid; gap: 24px; }
.hs-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hs-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hs-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hs-icon { width: 48px; height: 48px; margin-bottom: 18px; color: #00d4ff; }
.hs-icon-img { width: 64px; height: 64px; margin-bottom: 18px; filter: invert(52%) sepia(91%) saturate(2912%) hue-rotate(160deg) brightness(104%) contrast(101%) drop-shadow(0 0 10px rgba(0,212,255,0.5)); }
/* Kit Digital */
.hs-kit { display: flex; align-items: center; gap: 32px; }
.hs-kit-logo { background: #ffffff; border-radius: 12px; padding: 14px 18px; flex-shrink: 0; }
.hs-kit-logo img { display: block; width: 200px; height: auto; }
.hs-kit-body { flex: 1; }
.hs-kit-body h2 { color: #f8fafc; font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.hs-kit-body p { color: #a8d9e8; margin: 0; font-size: 16px; line-height: 1.6; }
/* Testimonios */
.hs-testimonial { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.hs-testimonial img { width: 100%; height: 220px; object-fit: cover; object-position: center 25%; display: block; }
.hs-testimonial-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.hs-testimonial .hs-quote { border: 0; margin: 0 0 18px; padding: 0; color: #e2e8f0; font-size: 16px; line-height: 1.65; font-style: italic; flex: 1; }
.hs-testimonial cite { font-style: normal; color: #00d4ff; font-weight: 600; display: block; }
.hs-testimonial cite span { color: #a8d9e8; font-weight: 400; display: block; font-size: 14px; }
/* Regla 40-90-40 */
.hs-rule-num { font-size: 44px; font-weight: 800; line-height: 1; margin: 0 0 12px; }
/* Soluciones */
.hs-solution { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none !important; }
.hs-solution h3 { font-size: 17px; margin: 0 0 6px; }
.hs-solution span { color: #00d4ff; font-size: 14px; }
/* Cifras */
.hs-metrics { display: flex; align-items: center; justify-content: space-around; }
.hs-metric { text-align: center; flex: 1; }
.hs-metric strong { display: block; color: #00d4ff; font-size: 46px; font-weight: 800; line-height: 1.1; }
.hs-metric span { color: #a8d9e8; font-size: 16px; }
.hs-metric-divider { width: 2px; height: 80px; background: linear-gradient(to bottom, transparent, #00d4ff, transparent); opacity: .8; flex-shrink: 0; }
/* Desarrollo a medida */
.hs-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.hs-tag { border: 1px solid rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.08); color: #e2e8f0; border-radius: 50px; padding: 8px 20px; font-size: 15px; }
@media (max-width: 991px) {
    .hs-grid-4, .hs-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .hs-section { padding: 48px 0; }
    .hs-grid-2, .hs-grid-4, .hs-grid-5 { grid-template-columns: minmax(0, 1fr); }
    .hs-kit { flex-direction: column; text-align: center; }
    .hs-metrics { flex-direction: column; gap: 24px; }
    .hs-metric-divider { width: 60%; height: 2px; background: linear-gradient(to right, transparent, #00d4ff, transparent); }
}

/* ===== Portada: cabecera "Los ADAs trabajando en directo" ===== */
.hp-hero { padding: 70px 0 60px; position: relative; z-index: 10; background: transparent !important; min-height: 0 !important; }
.hp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hp-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #00d4ff; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.08); border-radius: 50px; padding: 7px 16px; }
.hp-eyebrow svg { width: 16px; height: 16px; }
.hp-title { color: #f8fafc !important; font-size: 46px !important; font-weight: 800 !important; line-height: 1.1 !important; letter-spacing: -0.03em; margin: 22px 0 20px !important; }
.hp-cyan { color: #00d4ff; }
.hp-lead { color: #cbd5e1; font-size: 19px; line-height: 1.65; margin: 0 0 30px; max-width: 580px; }
.hp-lead strong { color: #f8fafc; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hp-btn-outline { display: inline-flex; align-items: center; padding: 12px 26px; border-radius: 8px; border: 1px solid rgba(0, 212, 255, 0.55); color: #e2e8f0 !important; font-weight: 600; text-decoration: none !important; transition: border-color .2s, color .2s, background .2s; }
.hp-btn-outline:hover { border-color: #00d4ff; color: #00d4ff !important; background: rgba(0, 212, 255, 0.08); }
.hp-trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 30px; color: #a8d9e8; font-size: 14px; }
.hp-trust strong { display: block; color: #f8fafc; font-size: 24px; font-weight: 800; line-height: 1.2; }
.hp-console { background: rgba(10, 15, 35, 0.85); border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 18px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 60px rgba(0, 212, 255, 0.08); }
.hp-console-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.hp-console-core { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #00d4ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hp-console-core span { width: 18px; height: 18px; border-radius: 50%; background: #00d4ff; animation: hpPulse 2.4s ease-in-out infinite; }
.hp-console-title { color: #f8fafc; font-weight: 700; font-size: 15px; margin: 0; }
.hp-console-sub { color: #64748b; font-size: 12px; margin: 2px 0 0; }
.hp-live { margin-left: auto; font-size: 11px; font-weight: 700; color: #22c55e; letter-spacing: .5px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.hp-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: hpPulse 1.6s ease-in-out infinite; }
.hp-feed { list-style: none; margin: 0; padding: 0; }
.hp-feed li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; margin-bottom: 8px; opacity: .45; transition: opacity .4s, border-color .4s, background .4s; }
.hp-feed li div { flex: 1; min-width: 0; }
.hp-feed li strong { display: block; color: #f8fafc; font-size: 14px; }
.hp-feed li small { display: block; color: #94a3b8; font-size: 12.5px; }
.hp-feed li em { font-style: normal; font-size: 12px; color: #64748b; white-space: nowrap; }
.hp-dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; flex-shrink: 0; }
.hp-feed li.is-run { opacity: 1; border-color: rgba(0, 212, 255, 0.45); background: rgba(0, 212, 255, 0.07); }
.hp-feed li.is-run .hp-dot { background: #00d4ff; animation: hpPulse 1s ease-in-out infinite; }
.hp-feed li.is-run em { color: #00d4ff; }
.hp-feed li.is-done { opacity: 1; }
.hp-feed li.is-done .hp-dot { background: #22c55e; }
.hp-feed li.is-done em { color: #22c55e; }
.hp-console-foot { margin: 12px 0 0; text-align: center; color: #a8d9e8; font-size: 13px; }
@keyframes hpPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.85); } }
.hp-step-num { display: inline-block; color: #00d4ff; font-weight: 800; font-size: 14px; letter-spacing: 1px; border: 1px solid rgba(0, 212, 255, 0.4); border-radius: 8px; padding: 4px 10px; margin-bottom: 16px; }
.hp-ada { display: flex; flex-direction: column; text-decoration: none !important; }
.hp-ada p { flex: 1; margin-bottom: 16px; }
.hp-ada span { color: #00d4ff; font-size: 13.5px; font-weight: 600; }
.hp-final { padding: 56px 32px; }
@media (max-width: 991px) {
    .hp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hp-title { font-size: 38px !important; }
}
@media (max-width: 767px) {
    .hp-hero { padding: 40px 0; }
    .hp-title { font-size: 30px !important; }
    .hp-lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .hp-console-core span, .hp-live::before, .hp-feed li.is-run .hp-dot { animation: none; }
}
/* Etiquetas del panel de actividad */
/* Panel de actividad: filas de altura fija que se desplazan hacia arriba */
.hp-feed { height: 342px; overflow: hidden; }
.hp-feed li { box-sizing: border-box; height: 62px; overflow: hidden; }
.hp-feed li strong { display: flex; align-items: center; min-width: 0; }
.hp-feed li strong .hp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hp-feed li strong .hp-tag { flex-shrink: 0; }
.hp-feed li small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-feed li.hp-out { margin-top: -70px; opacity: 0; transition: margin-top .6s ease, opacity .45s ease; }
.hp-feed li.hp-in { animation: hpFade .6s ease; }
@keyframes hpFade { from { opacity: 0; } to { opacity: 1; } }

@keyframes hpIn { from { transform: translateY(8px); } to { transform: none; } }
.hp-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 1px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.hp-tag-ada { color: #00d4ff; background: rgba(0, 212, 255, 0.12); }
.hp-tag-proceso { color: #a8d9e8; background: rgba(168, 217, 232, 0.12); }
.hp-tag-rpa { color: #f29545; background: rgba(242, 149, 69, 0.14); }
.hp-tag-control { color: #22c55e; background: rgba(34, 197, 94, 0.12); }


/* Franja: porcentaje de automatización por área */
.hp-auto .container { text-align: center; }
.hp-auto-eyebrow { color: #00d4ff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 8px; }
.hp-auto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 32px auto 0; }
.hp-auto-card { background: rgba(10, 15, 35, 0.6); border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 18px; padding: 28px 24px; }
.hp-auto-laboral { border-color: rgba(242, 149, 69, 0.35); }
.hp-ring { display: block; margin: 0 auto 10px; }
.hp-ring-bar { transition: stroke-dashoffset 1.6s ease; }
.hp-auto-card h3 { color: #f8fafc; font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.hp-auto-rest { color: #64748b; font-size: 13px; margin: 0 0 16px; }
.hp-auto-card ul { list-style: none; padding: 0; margin: 0; }
.hp-auto-card li { color: #a8d9e8; font-size: 15px; line-height: 1.5; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.hp-auto-note { color: #64748b; font-size: 12.5px; max-width: 640px; margin: 22px auto 0; }
@media (max-width: 767px) { .hp-auto-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hp-ring-bar { transition: none; } }


/* Cabecera centrada en el resultado (90 % / 70 %) */
.hp-orange { color: #f29545; }
.hp-rings-card { background: rgba(10, 15, 35, 0.85); border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 18px; padding: 26px 22px 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 60px rgba(0, 212, 255, 0.08); text-align: center; }
.hp-rings-title { color: #f8fafc; font-weight: 700; font-size: 16px; margin: 0 0 18px; }
.hp-rings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hp-rings-item p { color: #f8fafc; font-size: 15px; font-weight: 600; margin: 8px 0 0; }
.hp-rings-note { color: #64748b; font-size: 12px; line-height: 1.5; margin: 18px 0 0; }
.hp-how-claim { text-align: center; color: #f8fafc; font-size: 22px; font-weight: 700; margin: -4px 0 18px; }
.hp-how-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 36px; }
.hp-how-grid .hp-steps { margin: 0; }
.hp-auto-pct { display: inline-block; color: #00d4ff; font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.hp-auto-card h3 { margin-bottom: 16px; }
@media (max-width: 991px) { .hp-how-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .hp-ring { width: 120px; height: 120px; } .hp-how-claim { font-size: 19px; } }
.hp-auto-pct.hp-orange { color: #f29545; }
.hp-hero .hp-title { font-size: 40px !important; }
@media (max-width: 991px) { .hp-hero .hp-title { font-size: 34px !important; } }
@media (max-width: 767px) { .hp-hero .hp-title { font-size: 28px !important; } }

/* Cabecera unificada: título con anillos integrados */
.hp-rings-inline { display: flex; flex-wrap: wrap; gap: 18px 34px; margin: 6px 0 10px; }
.hp-ring-item { display: flex; align-items: center; gap: 14px; }
.hp-ring-item .hp-ring { margin: 0; flex-shrink: 0; }
.hp-ring-item p { color: #cbd5e1; font-size: 16px; line-height: 1.35; margin: 0; }
.hp-ring-item p strong { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.hp-hero .hp-rings-note { text-align: left; max-width: 560px; margin: 0 0 22px; }
@media (max-width: 480px) { .hp-ring-item .hp-ring { width: 64px; height: 64px; } .hp-ring-item p strong { font-size: 22px; } }

/* Panel de actividad: invitación a proponer procesos a medida */
.hp-console-foot a { color: #f29545; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hp-console-foot a:hover, .hp-console-foot a:focus { text-decoration: underline; text-underline-offset: .2em; }
.hp-tag-medida { color: #f29545; background: rgba(242, 149, 69, 0.14); }
.hp-feed li.is-medida { opacity: 1; border-color: rgba(242, 149, 69, 0.55); background: rgba(242, 149, 69, 0.08); }
.hp-feed li.is-medida .hp-dot { background: #f29545; }
.hp-feed li.is-medida em a { color: #f29545; font-weight: 600; text-decoration: none; }
.hp-feed li.is-medida em a:hover, .hp-feed li.is-medida em a:focus { text-decoration: underline; }

/* ===== Secciones claras (diseño mixto: cabeceras oscuras, contenido claro) ===== */
.hs-light { background: #f4f7fb !important; border-color: #e2e8f0 !important; }
.hs-light.hs-light-alt { background: #ffffff !important; }
.hs-light .hs-title, .hs-light h2 { color: #0a1428 !important; }
.hs-light .hs-subtitle { color: #475569 !important; }
.hs-light .hs-cyan { color: #0284c7 !important; }
.hs-light .hs-orange, .hs-light .hp-orange { color: #ea7a1f !important; }
.hs-light .hs-card, .hs-light .hp-auto-card { background: #ffffff !important; border-color: #dbe4ef !important; box-shadow: 0 6px 24px rgba(10, 20, 40, 0.06); }
.hs-light .hs-card:hover { border-color: #0284c7 !important; box-shadow: 0 10px 32px rgba(2, 132, 199, 0.15); }
.hs-light .hs-card h3, .hs-light .hp-auto-card h3 { color: #0a1428 !important; }
.hs-light .hs-card p, .hs-light .hp-auto-card li { color: #475569 !important; border-color: #edf1f6 !important; }
.hs-light .hp-auto-pct { color: #0284c7; }
.hs-light .hp-auto-pct.hp-orange { color: #ea7a1f; }
.hs-light .hs-testimonial .hs-quote { color: #334155 !important; }
.hs-light .hs-testimonial cite { color: #0284c7 !important; }
.hs-light .hs-testimonial cite span { color: #64748b !important; }
.hs-light .hs-tag { color: #0a1428 !important; background: #e6f6fd !important; border-color: #bae6fd !important; }
.hs-light .hs-solution span { color: #0284c7 !important; }
.hs-light .hp-btn-outline { color: #0a1428 !important; border-color: #0284c7 !important; }
.hs-light .hp-btn-outline:hover { color: #0284c7 !important; background: rgba(2, 132, 199, 0.06); }
.hs-light a:not(.btn):not(.hp-btn-outline) { color: #0284c7; }

/* Panel de actividad: enlace a la página de procesos automatizados */
.hp-console-all { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 0; padding: 12px 16px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #ffffff 0%, #d9f6ff 100%); color: #0a1428 !important; font-weight: 700; font-size: 15px; text-decoration: none !important; box-shadow: 0 10px 28px rgba(0, 212, 255, 0.22); transition: transform .2s, box-shadow .2s; }
.hp-console-all span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #00d4ff; color: #0a1428; font-size: 15px; transition: transform .2s; }
.hp-console-all:hover, .hp-console-all:focus { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 212, 255, 0.35); }
.hp-console-all:hover span, .hp-console-all:focus span { transform: translateX(4px); }
.hp-console-all:focus-visible { outline: 2px solid #00d4ff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hp-console-all, .hp-console-all span { transition: none; } }
.hp-console-all + .hp-console-foot { margin-top: 10px; }

/* "Qué se automatiza en cada área": cada proceso enlaza con la página de procesos */
.hp-auto-card li a { display: block; color: inherit !important; text-decoration: none !important; transition: color .2s; }
.hp-auto-card li a::after { content: "→"; opacity: 0; margin-left: 6px; transition: opacity .2s; }
.hp-auto-card li a:hover, .hp-auto-card li a:focus { color: #0284c7 !important; }
.hp-auto-card li a:hover::after, .hp-auto-card li a:focus::after { opacity: 1; }
.hp-auto-laboral li a:hover, .hp-auto-laboral li a:focus { color: #ea7a1f !important; }
.hp-auto-more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 15px; color: #0284c7 !important; text-decoration: none !important; }
.hp-auto-laboral .hp-auto-more { color: #ea7a1f !important; }
.hp-auto-more:hover, .hp-auto-more:focus { text-decoration: underline !important; text-underline-offset: .2em; }
