/* ============================================
   RESET Y CONFIGURACIÓN BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden;
    background-color: #0f172a;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #f8fafc;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary: #3b82f6;
    --accent: #22d3ee;
    --whatsapp: #25D366;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --warning: #f59e0b;
    --border: #334155;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 60;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo Brand */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.brand-logo:hover .logo-icon {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: rotate(-5deg);
}

.logo-svg {
    width: 24px;
    height: 24px;
    color: white;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #22d3ee);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(59, 130, 246, 0.1);
}

.nav-link:hover::after {
    width: 40%;
}

.nav-link.active {
    color: var(--accent);
    background: rgba(34, 211, 238, 0.1);
}

.nav-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white !important;
    margin-left: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* compensate hero top padding when header is fixed */
.hero-animated-bg {
    padding-top: 160px;
}

/* ============================================
   CONTENEDORES GLOBALES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ============================================
   PÁGINAS INTERNAS
   ============================================ */
.page-main {
    background: var(--bg-dark);
}

.page-hero {
    padding: 140px 20px 80px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(59,130,246,0.2), transparent 55%);
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-muted);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
}

.content-section {
    padding: 90px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.content-section:nth-of-type(even) {
    background: #0b1120;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.detail-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75)),
        url('assets/pattern-grid.svg');
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 18px;
    padding: 32px;
    min-height: 230px;
    box-shadow: 0 15px 50px rgba(2, 6, 23, 0.7);
    position: relative;
    overflow: hidden;
}

.detail-card::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 70%);
    top: -40px;
    right: -20px;
    opacity: 0.7;
    pointer-events: none;
}

.detail-card h2,
.detail-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
}

.detail-card ul {
    list-style: none;
    padding: 0;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.detail-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 18px;
}

.detail-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 45px 0;
}

footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-left strong {
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.footer-left p {
    margin: 0;
    color: var(--text-muted);
}

.footer-right p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-right a {
    color: var(--accent);
    text-decoration: none;
}

.footer-right a:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .header-row {
        padding: 12px 16px;
    }

    .brand-logo {
        gap: 8px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-svg {
        width: 20px;
        height: 20px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .main-nav {
        gap: 4px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .nav-cta {
        padding: 8px 16px;
        margin-left: 4px;
    }

    footer .container {
        flex-direction: column;
        align-items: flex-start;
    }
}
.value-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 25px;
}

.value-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    color: var(--text-muted);
}

.value-card ul li {
    margin-bottom: 8px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.timeline-item {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.timeline-year {
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
}

@media (min-width: 900px) {
    .contact-layout {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        align-items: flex-start;
    }
}

.contact-layout .form-box {
    margin: 0;
    width: 100%;
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-side ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    color: var(--text-muted);
}

.contact-side li {
    margin-bottom: 10px;
}

/* ============================================
   HERO SECTION - ANIMACIÓN AURORA
   ============================================ */
.hero-animated-bg {
    position: relative;
    padding: 140px 20px 100px;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #020617, #1e1b4b, #172554, #0f172a);
    background-size: 400% 400%;
    animation: techFlow 12s ease infinite;
}

.hero-animated-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #0f172a);
    z-index: 2;
}

.hero-animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
                radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 40%);
    background-size: 50% 50%;
    animation: pulseLight 8s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes techFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseLight {
    0% { transform: rotate(0deg) translate(0, 0); }
    50% { transform: rotate(180deg) translate(50px, 50px); }
    100% { transform: rotate(360deg) translate(0, 0); }
}

/* Partículas flotantes */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.particle:nth-child(3) { left: 50%; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; animation-delay: 6s; }
.particle:nth-child(5) { left: 90%; animation-delay: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.3; }
    50% { transform: translateY(-80vh) translateX(50px); opacity: 0.5; }
    90% { opacity: 0.3; }
}

/* ============================================
   TIPOGRAFÍA HERO
   ============================================ */
.brand {
    color: var(--accent);
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-bottom: 20px;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(34, 211, 238, 0.3);
    backdrop-filter: blur(10px);
}

.hero-animated-bg h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    font-weight: 800;
}

.hero-animated-bg p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

/* ============================================
   ANIMACIONES DE ENTRADA
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-main {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.btn-sec {
    border: 2px solid var(--text-muted);
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.btn-sec:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
}
.btn-link {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.btn-link:hover {
    color: var(--primary);
}

.btn-link:hover::after {
    transform: translateX(4px);
}

/* ============================================
   SECCIONES
   ============================================ */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

/* ============================================
   SERVICIOS
   ============================================ */
.services-v13 {
    padding: 100px 0;
    background: linear-gradient(180deg, #0f172a 0%, #0b1120 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.services-v13::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #0f172a, transparent);
    z-index: 2;
}

.services-v13 .container {
    position: relative;
    z-index: 3;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card-service {
    background: radial-gradient(circle at top, rgba(34, 211, 238, 0.08), transparent 55%),
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15), transparent 40%),
        var(--bg-card);
    padding: 40px;
    border-radius: 18px;
    border: 1px solid rgba(51, 65, 85, 0.8);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.7);
}

.card-service::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/pattern-grid.svg');
    opacity: 0.08;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card-service:hover::before {
    transform: scaleX(1);
}

.card-service:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-service:hover::after {
    opacity: 0.18;
}

.card-service .icon {
    font-size: 3rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
    transition: transform 0.3s ease;
}

.card-service:hover .icon {
    transform: translateY(-4px) scale(1.05);
}

.card-service h3 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin: 15px 0 12px;
    font-weight: 700;
}

.card-service p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   INFRAESTRUCTURA CRÍTICA
   ============================================ */
.infra-list {
    margin-top: 80px;
}

.infra-title {
    text-align: center;
    margin: 60px 0 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.wide-card {
    background: var(--bg-card);
    border-left: 4px solid var(--warning);
    padding: 35px;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    border-left-width: 4px;
    margin-bottom: 20px;
}

.wide-card.accent-border {
    border-left-color: var(--accent);
}

.wide-card:hover {
    background: #263345;
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wide-card h3 {
    margin-top: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.wide-card p {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   STACK TECNOLÓGICO
   ============================================ */
.tech-stack {
    padding: 80px 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 50px;
    color: var(--text-main);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    background: var(--bg-card);
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.2);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tech-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */
.contact-section {
    background: linear-gradient(to bottom, var(--bg-dark), #111827);
    padding: 100px 20px;
}

.form-box {
    max-width: 650px;
    margin: 40px auto 0;
    background: rgba(30, 41, 59, 0.5);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.contact-side a {
    color: var(--accent);
    text-decoration: none;
}

.contact-side a:hover {
    text-decoration: underline;
}

.input-field {
    width: 100%;
    padding: 15px 18px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-field::placeholder {
    color: #64748b;
}

textarea.input-field {
    resize: vertical;
    min-height: 120px;
}

/* Spinner de carga */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensaje de éxito */
#success-message {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

#success-message h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

#success-message p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   FOOTER / WHATSAPP
   ============================================ */
.wa-footer {
    background: #000;
    border-top: 1px solid var(--border);
    padding: 60px 20px;
    text-align: center;
}

.wa-badge {
    background: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.footer-title {
    margin: 0 0 15px 0;
    font-size: 2.2rem;
    color: var(--text-main);
}

.footer-text {
    color: var(--text-muted);
    margin: 0 auto 35px;
    max-width: 600px;
    line-height: 1.8;
}

.btn-wa {
    background-color: var(--whatsapp);
    color: #000;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
    background-color: #2bf170;
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.5);
}

.copyright {
    margin-top: 40px;
    color: #64748b;
    font-size: 0.85rem;
}

/* ============================================
   BOTÓN VOLVER ARRIBA
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* ============================================
   SCROLL REVEAL (AOS-like)
   ============================================ */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   NUEVAS SECCIONES - CONVERSIÓN
   ============================================ */

/* Trust Badges en Hero */
.trust-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.badge {
    padding: 8px 18px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.highlight {
    color: var(--accent);
    font-weight: 900;
}

/* Casos de Éxito */
.success-cases {
    padding: 100px 0;
    background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
    position: relative;
    overflow: hidden;
}

.success-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, #0f172a, transparent);
    z-index: 2;
}

.success-cases .container {
    position: relative;
    z-index: 3;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.case-card {
    padding: 35px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.cta-inline {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.case-card:hover::before {
    transform: scaleX(1);
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(34, 211, 238, 0.2);
}

.case-number {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--warning), #f97316);
    color: #000;
    font-weight: 900;
    font-size: 1.3rem;
    border-radius: 30px;
    margin-bottom: 15px;
}

.case-card h3 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.case-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.case-tech {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

/* Estadísticas */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
    padding: 50px 30px;
    background: rgba(34, 211, 238, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Testimonios */
.testimonials {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    padding: 35px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: var(--accent);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.testimonial-author strong {
    display: block;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Form Guarantee */
.form-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(34, 211, 238, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: #000;
    font-weight: 900;
    border-radius: 50%;
    flex-shrink: 0;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: float-pulse 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: white;
}

.whatsapp-text {
    display: none;
}

@keyframes float-pulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Exit Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.exit-popup-content {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    position: relative;
    border: 2px solid var(--accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.exit-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.exit-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.exit-popup-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.exit-popup-content > p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.exit-benefits {
    margin: 25px 0;
    text-align: left;
}

.exit-benefit {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(34, 211, 238, 0.05);
    border-left: 3px solid var(--accent);
    border-radius: 5px;
    color: var(--text-main);
}

.exit-footer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   NUEVOS ELEMENTOS DE CONVERSIÓN
   ============================================ */

/* Badge pulsante para disponibilidad */
.badge-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.8);
        transform: scale(1.02);
    }
}

/* Garantías strip */
.guarantee-strip {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #1e3a8a 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.guarantee-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #0f172a, transparent);
    z-index: 2;
}

.guarantee-strip::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, #0f172a, transparent);
    z-index: 2;
}

.guarantee-strip .container {
    position: relative;
    z-index: 3;
}

.guarantee-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.guarantee-item {
    text-align: center;
    padding: 20px;
}

.guarantee-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.guarantee-item h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 600;
}

.guarantee-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* CTA con urgencia */
.cta-urgency {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: inline-block;
    font-weight: 600;
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.cta-inline {
    text-align: center;
    margin-top: 40px;
}

.cta-inline .btn {
    margin: 10px;
}

/* Botón con efecto pulse */
.btn-pulse {
    animation: btn-pulse-effect 2s ease-in-out infinite;
}

@keyframes btn-pulse-effect {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    }
}

/* ============================================
   STACK TECNOLÓGICO PROFESIONAL
   ============================================ */
.tech-stack {
    padding: 100px 20px;
    background: linear-gradient(180deg, #0b1120 0%, #1e1b4b 50%, #0b1120 100%);
    position: relative;
    overflow: hidden;
}

.tech-stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, #0f172a, transparent);
    z-index: 1;
}

.tech-stack .container {
    position: relative;
    z-index: 2;
}

.tech-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.tech-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tech-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.tech-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(34, 211, 238, 0.15));
    border-radius: 16px;
    transition: all 0.4s ease;
}

.tech-card:hover .tech-logo {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(34, 211, 238, 0.3));
}

.tech-svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.tech-logo.azure .tech-svg { color: #0089d6; }
.tech-logo.gcp .tech-svg { color: #4285f4; }
.tech-logo.python .tech-svg { color: #3776ab; }
.tech-logo.docker .tech-svg { color: #2496ed; }
.tech-logo.k8s .tech-svg { color: #326ce5; }
.tech-logo.postgres .tech-svg { color: #336791; }
.tech-logo.redis .tech-svg { color: #dc382d; }

.tech-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.tech-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Canvas para efecto de partículas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-animated-bg h1 {
        font-size: 2.5rem;
    }
    
    .hero-animated-bg p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-services {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .tech-grid-pro {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .tech-card {
        padding: 25px 15px;
    }

    .tech-logo {
        width: 50px;
        height: 50px;
    }

    .tech-svg {
        width: 30px;
        height: 30px;
    }

    .tech-title {
        font-size: 1.8rem;
    }
    
    .form-box {
        padding: 30px 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .wide-card:hover {
        transform: translateX(5px);
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 10px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .exit-popup-content {
        padding: 40px 25px;
    }
    
    .exit-popup-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-animated-bg {
        padding: 100px 20px 80px;
    }
    
    .hero-animated-bg h1 {
        font-size: 2rem;
    }
    
    .brand {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .card-service {
        padding: 30px 25px;
    }
    
    .wide-card {
        padding: 25px 20px;
    }
}

/* ============================================
   OPTIMIZACIONES DE RENDIMIENTO
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mejora de contraste para accesibilidad */
@media (prefers-contrast: high) {
    .card-service,
    .wide-card,
    .tech-item {
        border-width: 2px;
    }
}

