/* =============================================
   ELEMENTS — Enhanced Design System
   Animaciones, transiciones y UX mejorada
   ============================================= */

/* === Scrollbar personalizado === */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), #0dd604); border-radius: 4px; }
html { scroll-behavior: smooth; }

/* === Variables extendidas === */
:root {
    --primary-light: rgba(7, 154, 1, 0.10);
    --primary-glow: rgba(7, 154, 1, 0.35);
    --primary-ultra: rgba(7, 154, 1, 0.05);
    --dark-bg: #070E1B;
    --dark-surface: #0C1627;
    --dark-border: rgba(255,255,255,0.08);
    --dark-muted: rgba(241,245,249,0.55);
    --glass: rgba(255, 255, 255, 0.92);
    --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================
   NAVBAR — glassmorphism + underline animado
   ============================================= */

.sticky-top.navbar-light {
    background: var(--glass) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(7, 154, 1, 0.12);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
}

/* Quitar el subrayado que pusimos antes y usar pseudo-elem */
.navbar-light .navbar-nav .nav-link,
.sticky-top.navbar-light .navbar-nav .nav-link {
    text-decoration: none !important;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s var(--easing);
}

.sticky-top.navbar-light .navbar-nav .nav-link::after {
    background: var(--primary);
    bottom: 14px;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link::after { display: none; }
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Portal Clientes button */
.btn-portal {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--primary);
    color: #fff !important;
    border: 2px solid var(--primary);
    transition: background 0.22s, color 0.22s, transform 0.18s, box-shadow 0.22s;
    white-space: nowrap;
}
.btn-portal:hover {
    background: transparent;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}
/* On green hero navbar — invert to white outline */
.bg-primary .btn-portal,
.hero-header .btn-portal {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
    color: #fff !important;
    backdrop-filter: blur(4px);
}
.bg-primary .btn-portal:hover,
.hero-header .btn-portal:hover {
    background: #fff;
    color: var(--primary) !important;
    border-color: #fff;
}

/* =============================================
   NAVBAR TRANSPARENTE sobre fondo oscuro
   ============================================= */

.navbar-home {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
}
.navbar-home .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
}
.navbar-home .navbar-nav .nav-link:hover,
.navbar-home .navbar-nav .nav-link.active {
    color: #fff !important;
}
.navbar-home .navbar-brand {
    filter: none;
    background: transparent;
    padding: 0 !important;
    position: relative;
    z-index: 1;
    margin-left: 0;
    margin-top: 0;
    clip-path: none;
    box-shadow: none;
    overflow: visible;
    transition: transform 0.3s ease;
}
.navbar-home .navbar-brand::before {
    content: none;
}
.navbar-home .navbar-brand::after {
    content: none;
}
.navbar-home .navbar-brand:hover {
    transform: translateY(-2px);
}
.navbar-home .navbar-brand img {
    mix-blend-mode: normal;
    position: relative;
    z-index: 2;
    display: block;
    max-height: 164px;
    width: auto;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.18));
}
.sticky-top.navbar-light .navbar-brand {
    filter: none !important;
    mix-blend-mode: normal;
    background: transparent;
    padding: 0 !important;
    clip-path: none;
    margin-left: 0;
    box-shadow: none;
}
.sticky-top.navbar-light .navbar-brand img {
    mix-blend-mode: normal;
    filter: none;
}
.navbar-home .navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-home .fa-bars { color: #fff; }
.navbar-home .btn-portal {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.45);
}
.navbar-home .btn-portal:hover {
    background: #fff;
    color: #070E1B !important;
    border-color: #fff;
}

/* =============================================
   HERO OSCURO (home page)
   ============================================= */

.hero-dark {
    background: linear-gradient(135deg, #056104 0%, #079A01 60%, #0aaf04 100%);
    position: relative;
    overflow: hidden;
    padding: 160px 0 90px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -1px;
}
.hero-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(0,0,0,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 10% 80%, rgba(255,255,255,0.06) 0%, transparent 50%);
    animation: mesh-shift 18s ease-in-out infinite alternate;
    pointer-events: none;
}
.hero-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.45;
    pointer-events: none;
}
.hero-dark .container { position: relative; z-index: 2; }

@keyframes mesh-shift {
    0%   { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.08) rotate(-0.5deg); }
}

/* Orbs flotantes */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: orb-float var(--dur, 9s) ease-in-out infinite;
}
.hero-orb-1 {
    width: 560px; height: 560px;
    top: -160px; right: -120px;
    background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 65%);
    --dur: 12s;
}
.hero-orb-2 {
    width: 360px; height: 360px;
    bottom: -100px; left: -80px;
    background: radial-gradient(circle, rgba(0,0,0,0.18) 0%, transparent 65%);
    --dur: 9s; animation-delay: -4s;
}
.hero-orb-3 {
    width: 220px; height: 220px;
    top: 35%; left: 42%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
    --dur: 7s; animation-delay: -2s;
}
@keyframes orb-float {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(18px,-28px) scale(1.05); }
    66%      { transform: translate(-14px,18px) scale(0.97); }
}
@keyframes orb-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.2); opacity: 1; }
}

/* Hero tag (píldora sobre el título) */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.30);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
    width: fit-content;
}
.hero-tag::before {
    content: '';
    width: 7px; height: 7px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
    50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* Título del hero */
.hero-dark h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}
.gradient-text {
    background: none;
    -webkit-text-fill-color: rgba(255,255,255,0.95);
    background-clip: unset;
    text-shadow: 0 0 40px rgba(255,255,255,0.35);
}
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 36px;
    min-height: 52px;
    line-height: 1.65;
}

/* Cursor parpadeante */
.hero-typed-cursor {
    display: inline-block;
    width: 3px;
    background: #fff;
    margin-left: 3px;
    animation: blink 0.75s step-end infinite;
    vertical-align: text-bottom;
    height: 1em;
    border-radius: 2px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.92);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    transition: all 0.3s var(--easing);
}
.hero-badge:hover {
    background: rgba(0,0,0,0.30);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.hero-badge i { color: #fff; }

/* CTA buttons */
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-glow {
    background: #fff !important;
    color: var(--primary) !important;
    border: none !important;
    padding: 13px 32px;
    border-radius: 50px !important;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.20), 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.35s var(--easing);
    position: relative;
    overflow: hidden;
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 40%; height: 200%;
    background: rgba(7,154,1,0.10);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 8px 36px rgba(0,0,0,0.28), 0 4px 16px rgba(0,0,0,0.18) !important; color: #046600 !important; }
.btn-glow:hover::before { left: 140%; }
.btn-ghost-dark {
    background: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.85) !important;
    border: 1.5px solid rgba(255,255,255,0.18) !important;
    padding: 13px 32px;
    border-radius: 50px !important;
    font-weight: 600;
    font-size: 0.92rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s var(--easing);
}
.btn-ghost-dark:hover {
    background: rgba(255,255,255,0.13) !important;
    border-color: rgba(255,255,255,0.35) !important;
    transform: translateY(-3px);
    color: #fff !important;
}

/* Imagen flotante hero */
.hero-img-wrap { position: relative; }
.hero-img-wrap img {
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.25));
    position: relative; z-index: 2;
}
.hero-img-glow {
    position: absolute;
    width: 80%; height: 70%;
    top: 10%; left: 10%;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: orb-float 10s ease-in-out infinite;
    z-index: 1;
}
@keyframes float {
    0%,100% { transform: translateY(0px) rotate(0deg); }
    33%      { transform: translateY(-16px) rotate(0.5deg); }
    66%      { transform: translateY(-9px) rotate(-0.5deg); }
}

/* Indicador de scroll */
.hero-scroll {
    position: absolute; bottom: 28px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.35);
    font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none; z-index: 2;
    animation: fade-pulse 2.5s ease-in-out infinite;
}
.hero-scroll i { animation: bounce-down 2s ease infinite; }
@keyframes bounce-down { 0%,100% { transform:translateY(0); } 50% { transform:translateY(8px); } }
@keyframes fade-pulse   { 0%,100% { opacity:0.35; } 50% { opacity:0.75; } }

/* =============================================
   SECTION TITLES — gradient + línea animada
   ============================================= */

.section-title h1 {
    background: linear-gradient(135deg, var(--primary) 0%, #0ba505 50%, #0dd604 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    background: linear-gradient(90deg, var(--primary), #0dd604, var(--primary));
    background-size: 200% auto;
    animation: line-shimmer 2.5s linear infinite;
    height: 2px;
}

@keyframes line-shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* =============================================
   BOTONES GLOBALES — shimmer + hover lift
   ============================================= */

.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    border-radius: 50px !important;
    letter-spacing: 0.3px;
    transition: all 0.35s var(--easing) !important;
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    left: 140%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--primary-glow) !important;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 15, 16, 0.35) !important;
}

/* =============================================
   TARJETAS DE SERVICIOS — diseño premium
   ============================================= */

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px 28px;
    text-align: left;
    border: 1px solid rgba(7, 154, 1, 0.08);
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    transition: all 0.4s var(--easing);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Línea top animada */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #0dd604);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--easing);
    border-radius: 0 0 3px 3px;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(7, 154, 1, 0.14);
    border-color: rgba(7, 154, 1, 0.18);
}

.service-card .svc-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px 0;
    transition: all 0.4s var(--easing);
    position: relative;
    flex-shrink: 0;
}

/* Anillo giratorio */
.service-card .svc-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px dashed rgba(7, 154, 1, 0.2);
    animation: spin-ring 12s linear infinite;
}

@keyframes spin-ring {
    to { transform: rotate(360deg); }
}

.service-card:hover .svc-icon {
    background: linear-gradient(135deg, var(--primary), #0dd604);
    box-shadow: 0 0 30px var(--primary-glow);
}

.service-card:hover .svc-icon i {
    color: #fff !important;
    transform: scale(1.2) rotate(-5deg);
}

.service-card .svc-icon i {
    transition: all 0.4s var(--easing);
}

.service-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.84rem;
    color: #6b7585;
    line-height: 1.65;
    margin: 0;
}

/* =============================================
   SECCIÓN DE CONTADORES
   ============================================= */

.stats-strip {
    background: linear-gradient(135deg, #046303 0%, #079A01 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 200% at 50% 50%, rgba(0,0,0,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.stats-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.5;
    pointer-events: none;
}

.stat-item {
    text-align: center;
    color: #fff;
    padding: 10px 20px;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

@media (max-width: 767.98px) {
    .stat-item + .stat-item::before { display: none; }
}

.stat-item .stat-icon {
    font-size: 1.8rem;
    opacity: 0.45;
    margin-bottom: 10px;
    display: block;
}

.stat-item .stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    letter-spacing: -2px;
    background: none;
    -webkit-text-fill-color: #fff;
    background-clip: unset;
}

.stat-item .stat-label {
    font-size: 0.82rem;
    opacity: 0.82;
    margin-top: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* =============================================
   TARJETAS DE HOSTING — rediseño moderno
   ============================================= */

.plan-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 36px rgba(0,0,0,0.07);
    transition: all 0.45s var(--easing);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 28px 70px rgba(7, 154, 1, 0.18);
}

.plan-card.plan-featured {
    border: 2px solid var(--primary);
    transform: scale(1.03);
}

.plan-card.plan-featured:hover {
    transform: scale(1.03) translateY(-12px);
    box-shadow: 0 28px 70px rgba(7, 154, 1, 0.25);
}

.plan-featured-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--primary), #0dd604);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 12px var(--primary-glow);
}

.plan-header {
    padding: 28px 24px 22px;
    text-align: center;
    color: #fff;
    position: relative;
}

.plan-header.green {
    background: linear-gradient(140deg, #07a801 0%, #05c400 100%);
}

.plan-header.red {
    background: linear-gradient(140deg, #e00b0c 0%, #ff5f60 100%);
}

.plan-header .plan-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.plan-header h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 1.1rem;
}

.plan-header p {
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
    margin: 0;
}

.plan-price {
    text-align: center;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafff9;
}

.plan-price .amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
}

.plan-price .currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    vertical-align: super;
    line-height: 2;
}

.plan-price .period {
    font-size: 0.78rem;
    color: #aaa;
    display: block;
    margin-top: 4px;
}

.plan-features {
    padding: 18px 26px;
    flex: 1;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.875rem;
    color: #4a5568;
}

.plan-feature:last-child { border-bottom: none; }

.plan-feature i {
    color: var(--primary);
    flex-shrink: 0;
    width: 16px;
}

.plan-cta {
    padding: 0 26px 26px;
    text-align: center;
}

.plan-cta .btn {
    width: 100%;
    border-radius: 50px !important;
    padding: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* =============================================
   IMAGEN NOSOTROS
   ============================================= */

.about-img-wrap {
    position: relative;
}

.about-img-wrap img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(7, 154, 1, 0.18);
    transition: all 0.4s var(--easing);
}

.about-img-wrap:hover img {
    box-shadow: 0 30px 80px rgba(7, 154, 1, 0.28);
    transform: translateY(-6px);
}

/* Etiqueta flotante en imagen */
.about-img-badge {
    position: absolute;
    bottom: 24px;
    left: -16px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float-badge 4s ease-in-out infinite;
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.about-img-badge .badge-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img-badge .badge-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.about-img-badge .badge-text span {
    font-size: 0.75rem;
    color: #888;
}

/* =============================================
   PAGE HERO (sub-páginas)
   ============================================= */

.page-hero {
    background: linear-gradient(135deg, #056104 0%, #079A01 60%, #0aaf04 100%) !important;
    padding: 160px 0 90px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    margin-bottom: 2rem !important;
    color: #fff;
    margin-top: -1px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1  { color: #fff !important; }
.page-hero p   { color: rgba(255,255,255,0.82) !important; }
.page-hero .highlight-pill {
    background: rgba(0,0,0,0.20);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 80% 50%, rgba(0,0,0,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.5;
    pointer-events: none;
}

.page-hero-icon {
    font-size: 9rem;
    color: rgba(255,255,255,0.1);
    display: block;
    animation: float 5s ease-in-out infinite;
}

/* =============================================
   FOOTER — fondo limpio sin imagen rota
   ============================================= */

.back-to-top {
    background: linear-gradient(135deg, var(--primary), #0dd604) !important;
    border: none !important;
    box-shadow: 0 6px 24px var(--primary-glow) !important;
    border-radius: 12px !important;
    transition: all 0.3s var(--easing) !important;
}

.back-to-top:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 36px var(--primary-glow) !important;
}

/* =============================================
   ANIMACIONES WOW MEJORADAS
   ============================================= */

.wow { visibility: hidden; }

/* Highlights en sección nosotros */
.highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    border: 1px solid rgba(7, 154, 1, 0.2);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
}

/* =============================================
   CONTACTO — formulario premium
   ============================================= */

.contact-form {
    background: #fff;
    border-radius: 20px;
    padding: 2.2rem 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(7,154,1,0.10);
}

.contact-field { margin-bottom: 0; }

.contact-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--dark);
    margin-bottom: 6px;
}

.contact-input-wrap { position: relative; }

.contact-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.contact-input {
    padding-left: 2.4rem !important;
    border-radius: 12px !important;
    border: 1.5px solid #e8e8e8 !important;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-light) !important;
    outline: none;
}

textarea.contact-input { resize: none; }

/* Info cards */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(7,154,1,0.12);
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    transition: transform 0.22s var(--easing), box-shadow 0.22s;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(7,154,1,0.12);
}

.contact-info-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 2px;
}

.contact-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

/* =============================================
   CLIENTES — infinite marquee
   ============================================= */

.logos-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    /* fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    padding: 12px 0;
}

.logos-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
}

.logos-marquee-wrapper:hover .logos-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.07);
    padding: 1.4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    height: 112px;
    flex-shrink: 0;
    transition: transform 0.22s var(--easing), box-shadow 0.22s, border-color 0.22s;
}

.client-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(7,154,1,0.12);
    border-color: var(--primary);
}

.client-logo-card img {
    max-height: 72px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(55%);
    opacity: 0.78;
    transition: filter 0.25s, opacity 0.25s;
    pointer-events: none;
}

.client-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* =============================================
   SECCIÓN OSCURA (misión/visión y otros)
   ============================================= */

.section-dark {
    background: linear-gradient(135deg, #023d01 0%, #046500 100%);
    position: relative;
    overflow: hidden;
}
.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}
.section-dark .container { position: relative; z-index: 1; }

.section-dark-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 34px 28px;
    text-align: center;
    height: 100%;
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--easing);
}
.section-dark-card:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.30);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.20);
}
.section-dark-card .card-icon {
    width: 66px; height: 66px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    transition: all 0.4s var(--easing);
}
.section-dark-card:hover .card-icon {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 0 20px rgba(255,255,255,0.15);
}
.section-dark-card h5 { color: #fff; font-weight: 700; margin-bottom: 10px; font-size: 1.05rem; }
.section-dark-card p  { color: rgba(255,255,255,0.58); font-size: 0.88rem; line-height: 1.75; margin: 0; }

/* Section-dark titles */
.section-dark .section-title h1 {
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-dark .highlight-pill {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
    color: #fff;
}

/* =============================================
   FEATURE MINI CARDS
   ============================================= */

.feature-mini {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(7,154,1,0.10);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s var(--easing);
    height: 100%;
}
.feature-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(7,154,1,0.10);
    border-color: rgba(7,154,1,0.2);
}
.feature-mini-icon {
    width: 42px; height: 42px; min-width: 42px;
    background: linear-gradient(135deg, var(--primary), #0DD604);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px var(--primary-glow);
    flex-shrink: 0;
}
.feature-mini-title { font-size: 0.88rem; font-weight: 700; color: #111827; margin-bottom: 2px; }
.feature-mini-sub   { font-size: 0.76rem; color: #6B7280; }

/* =============================================
   RESPONSIVE TUNING
   ============================================= */

@media (max-width: 1199.98px) {
    .hero-dark {
        padding: 150px 0 80px;
        min-height: auto;
    }

    .hero-img-wrap img {
        max-width: min(100%, 520px);
    }

    .hero-orb-1 {
        width: 420px;
        height: 420px;
        top: -110px;
        right: -110px;
    }

    .hero-orb-2 {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 991.98px) {
    .navbar-home .navbar-brand img {
        max-height: 112px;
    }

    .navbar-home .navbar-toggler {
        padding: 8px 12px;
        border-radius: 12px;
        background: rgba(255,255,255,0.12);
        backdrop-filter: blur(8px);
    }

    .navbar-home .navbar-collapse {
        margin-top: 14px;
        padding: 16px 18px 18px;
        background: rgba(255,255,255,0.98);
        border: 1px solid rgba(7,154,1,0.12);
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }

    .navbar-home .navbar-nav .nav-link {
        color: var(--dark) !important;
        padding: 10px 0;
        margin-left: 0;
    }

    .navbar-home .navbar-nav .nav-link:hover,
    .navbar-home .navbar-nav .nav-link.active {
        color: var(--primary) !important;
    }

    .navbar-home .btn-portal,
    .navbar-home .btn-portal.ms-3 {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 14px 0 0 !important;
        background: var(--primary);
        border-color: var(--primary);
        color: #fff !important;
    }

    .navbar-home .btn-portal:hover {
        background: #046600;
        border-color: #046600;
        color: #fff !important;
    }

    .hero-dark {
        padding: 180px 0 72px;
        min-height: auto;
        text-align: center;
    }

    .hero-sub {
        min-height: 0;
        margin-bottom: 28px;
    }

    .hero-badges,
    .hero-cta {
        justify-content: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-img-wrap {
        margin-top: 16px;
    }

    .hero-img-wrap img {
        max-width: min(100%, 420px);
    }

    .hero-img-glow {
        width: 90%;
        left: 5%;
    }

    .hero-scroll {
        display: none;
    }

    .hero-orb-1 {
        width: 340px;
        height: 340px;
        top: -120px;
        right: -120px;
    }

    .hero-orb-2 {
        width: 220px;
        height: 220px;
        left: -60px;
        bottom: -60px;
    }

    .hero-orb-3 {
        display: none;
    }

    .page-hero {
        padding: 140px 0 72px;
        clip-path: none;
        text-align: center;
    }

    .page-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .section-title.position-relative {
        text-align: center;
    }

    .section-title::before,
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .stats-strip {
        padding: 54px 0;
    }

    .stat-item {
        padding: 18px 12px;
    }

    .stat-item .stat-number {
        font-size: 2.5rem;
    }

    .plan-card.plan-featured,
    .plan-card.plan-featured:hover {
        transform: none;
    }

    .contact-form {
        padding: 1.8rem 1.4rem;
    }

    .about-img-badge {
        left: 16px;
        bottom: 16px;
        padding: 10px 16px;
    }

    .logos-marquee-wrapper {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .client-logo-card {
        min-width: 160px;
        height: 96px;
        padding: 1rem 1.2rem;
    }

    .footer .row.gy-5.gx-4.pt-5 {
        padding-top: 0 !important;
        row-gap: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    .navbar-home .navbar-brand img {
        max-height: 86px;
    }

    .hero-dark {
        padding: 150px 0 56px;
    }

    .hero-tag {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
        padding: 6px 12px;
        margin-bottom: 18px;
    }

    .hero-dark h1 {
        letter-spacing: -1px;
        margin-bottom: 18px;
    }

    .hero-sub {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .hero-badges {
        gap: 8px;
        margin-bottom: 24px;
    }

    .hero-badge {
        width: 100%;
        justify-content: center;
        font-size: 0.78rem;
    }

    .hero-cta {
        gap: 10px;
    }

    .btn-glow,
    .btn-ghost-dark {
        width: 100%;
        padding: 12px 22px;
        font-size: 0.88rem;
    }

    .hero-img-wrap img {
        max-width: 320px;
    }

    .section-title h1 {
        font-size: clamp(1.9rem, 7vw, 2.4rem);
    }

    .section-title.position-relative.mb-4.pb-4,
    .section-title.position-relative.text-center.mx-auto.mb-5.pb-4 {
        margin-bottom: 2rem !important;
        padding-bottom: 1.5rem !important;
    }

    .highlight-pill {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .service-card {
        padding: 24px 18px 22px;
        border-radius: 18px;
    }

    .service-card .svc-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }

    .service-card h5 {
        font-size: 0.92rem;
    }

    .service-card p {
        font-size: 0.82rem;
    }

    .feature-mini {
        padding: 14px;
        gap: 12px;
        border-radius: 14px;
    }

    .feature-mini-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 10px;
    }

    .feature-mini-title {
        font-size: 0.82rem;
    }

    .feature-mini-sub {
        font-size: 0.72rem;
    }

    .plan-header {
        padding: 24px 18px 18px;
    }

    .plan-price {
        padding: 18px 18px 16px;
    }

    .plan-price .amount {
        font-size: 2rem;
    }

    .plan-features {
        padding: 14px 18px;
    }

    .plan-feature {
        font-size: 0.84rem;
        padding: 8px 0;
    }

    .plan-cta {
        padding: 0 18px 20px;
    }

    .page-hero {
        padding: 128px 0 56px;
        margin-bottom: 1.5rem !important;
    }

    .page-hero .highlight-pill {
        margin-left: auto;
        margin-right: auto;
    }

    .page-hero h1.display-4 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .contact-form {
        padding: 1.35rem 1rem;
        border-radius: 18px;
    }

    .contact-label {
        font-size: 0.72rem;
    }

    .contact-input {
        font-size: 0.88rem;
    }

    .contact-info-card {
        padding: 1rem;
        gap: 0.85rem;
        border-radius: 14px;
    }

    .contact-info-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .contact-info-value {
        font-size: 0.88rem;
    }

    .about-img-badge {
        position: static;
        margin-top: 14px;
        width: fit-content;
        max-width: 100%;
    }

    .section-dark-card {
        padding: 26px 20px;
    }

    .section-dark-card p {
        font-size: 0.84rem;
    }

    .client-logo-card {
        min-width: 136px;
        height: 88px;
        padding: 0.85rem 1rem;
    }

    .client-logo-card img {
        max-height: 58px;
        max-width: 118px;
    }

    .logos-track {
        gap: 1rem;
        animation-duration: 22s;
    }

    .footer .btn.btn-link {
        padding-left: 0;
    }

    .footer .footer-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 14px;
        justify-content: center;
    }

    .footer .footer-menu a {
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
    }

    .container.px-lg-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .navbar-home .navbar-brand img {
        max-height: 72px;
    }

    .navbar-home .navbar-collapse {
        padding: 14px 14px 16px;
        border-radius: 16px;
    }

    .hero-dark {
        padding-top: 138px;
    }

    .hero-dark h1 {
        font-size: clamp(1.9rem, 9.4vw, 2.5rem);
    }

    .hero-sub {
        font-size: 0.92rem;
    }

    .hero-tag {
        font-size: 0.64rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .stats-strip {
        padding: 40px 0;
    }

    .stat-item {
        padding: 12px 8px;
    }

    .stat-item .stat-number {
        font-size: 2rem;
    }

    .stat-item .stat-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .section-title h1 {
        font-size: clamp(1.7rem, 8.5vw, 2.1rem);
    }

    .feature-mini {
        align-items: center;
    }

    .feature-mini-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .plan-header h4 {
        font-size: 1rem;
    }

    .plan-header p,
    .plan-price .period {
        font-size: 0.75rem;
    }

    .plan-price .amount {
        font-size: 1.75rem;
    }

    .page-hero {
        padding-top: 120px;
        padding-bottom: 48px;
    }

    .contact-input-icon {
        left: 12px;
    }

    .contact-input {
        padding-left: 2.15rem !important;
    }

    .about-img-badge {
        padding: 10px 14px;
    }

    .logos-track {
        animation-duration: 18s;
    }

    .client-logo-card {
        min-width: 122px;
    }
}
