/* --------------------------------------------------------
   Pila Digital - CSS Principal
   Diseño Premium Dark-Tech para Pymes
   -------------------------------------------------------- */

/* 1. Variables Globales & Temas */
:root {
    /* Paleta de Colores Corporativos */
    --bg-primary: #060913;       /* Fondo oscuro profundo */
    --bg-secondary: #0c1222;     /* Fondo secundario oscuro */
    --bg-card: rgba(15, 23, 42, 0.65); /* Fondo tarjetas glassmorphic */
    
    --accent-green: #4ade80;     /* Verde Menta / Crecimiento */
    --accent-cyan: #38bdf8;      /* Celeste / Tecnología */
    --accent-blue: #2563eb;      /* Azul Eléctrico */
    --accent-purple: #818cf8;    /* Morado / Estrategia */
    
    /* Colores de Texto */
    --text-white: #ffffff;
    --text-gray-light: #e2e8f0;
    --text-gray: #94a3b8;
    --text-gray-dark: #64748b;
    
    /* Gradientes */
    --gradient-brand: linear-gradient(135deg, #4ade80 0%, #38bdf8 50%, #6366f1 100%);
    --gradient-green-cyan: linear-gradient(135deg, #4ade80 0%, #38bdf8 100%);
    --gradient-cyan-purple: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --gradient-red-orange: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --gradient-dark: linear-gradient(180deg, #0c1222 0%, #060913 100%);
    
    /* Sombras & Efectos */
    --glow-brand: 0 0 25px rgba(56, 189, 248, 0.25);
    --glow-green: 0 0 25px rgba(74, 222, 128, 0.3);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(56, 189, 248, 0.4);
    
    /* Fuentes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Espaciado */
    --container-max-width: 1200px;
}

/* 2. Reset & Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-body);
    color: var(--text-gray-light);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-primary);
}

/* Tipografías */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

p {
    color: var(--text-gray);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* 3. Componentes Comunes */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Orbes de luz de fondo (Glow Orbs) */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.badge-purple {
    color: var(--accent-purple);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
    opacity: 0.95;
    color: var(--bg-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-glow:hover {
    animation: pulseGlow 1.5s infinite alternate;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Títulos Gradientes */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-red {
    background: var(--gradient-red-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: var(--gradient-green-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: var(--gradient-cyan-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Encabezados de sección */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    z-index: 1;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
}

/* 4. Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
    background: transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 105px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .logo-img {
    height: 65px;
}

.footer-logo .logo-img {
    height: 70px;
}

.logo-img:hover {
    transform: scale(1.06) rotate(2deg);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 850;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-btn {
    display: inline-flex;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    background: var(--gradient-brand);
    color: var(--bg-primary);
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.2);
    white-space: nowrap;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(56, 189, 248, 0.35);
    color: var(--bg-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
}

/* 5. Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: radial-gradient(circle at 30% 30%, rgba(15, 23, 42, 0.4) 0%, rgba(6, 9, 19, 1) 70%);
}

.hero-glow-1 {
    width: 40vw;
    height: 40vw;
    background: var(--accent-blue);
    top: -10vw;
    left: -10vw;
}

.hero-glow-2 {
    width: 35vw;
    height: 35vw;
    background: var(--accent-green);
    bottom: -5vw;
    right: 5vw;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: var(--text-gray-light);
}

.hero-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-bottom: 30px;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-gray-light);
    font-weight: 500;
}

.bullet-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
}

.hero-highlight {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 35px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Hero Widget / Graphics */
.hero-graphic-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Retro space grid backdrop */
.retro-grid-container {
    position: absolute;
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    perspective: 350px;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    opacity: 0.25;
}

.retro-grid {
    background-image: linear-gradient(var(--accent-cyan) 1px, transparent 1px),
                      linear-gradient(90deg, var(--accent-cyan) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    width: 100%;
    height: 200%;
    transform: rotateX(60deg);
    transform-origin: top center;
    animation: gridScroll 20s linear infinite;
}

/* Engine Console Card */
.hero-widget {
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-header {
    background: rgba(15, 23, 42, 0.9);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.widget-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.widget-title {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-left: 8px;
}

.widget-body {
    padding: 25px;
    font-family: monospace;
}

.battery-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.battery-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.battery-visual {
    display: flex;
    gap: 6px;
    background: #060913;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    justify-content: center;
}

.battery-cell {
    width: 35px;
    height: 20px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.5s ease;
}

.battery-cell.active {
    background-color: var(--cell-color);
    box-shadow: 0 0 10px var(--cell-color);
}

.battery-percentage {
    font-weight: 700;
    font-size: 1.1rem;
}

.console-lines {
    color: var(--text-gray-light);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.console-lines .line {
    color: var(--text-gray);
}

.console-lines .line.highlight {
    color: var(--accent-green);
}

/* 6. Section: El Problema */
.problema-section {
    background-color: var(--bg-secondary);
}

.problema-intro {
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
    font-size: 1.15rem;
}

.problema-intro p {
    margin-bottom: 20px;
}

.problema-intro .highlight-text {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1.25rem;
}

/* Comparison Cards Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.comparison-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    transition: all 0.4s ease;
}

.comparison-card.traditional {
    border-top: 4px solid #ef4444;
}

.comparison-card.pila {
    background: rgba(15, 23, 42, 0.75);
    border-top: 4px solid var(--accent-green);
    box-shadow: 0 15px 40px rgba(74, 222, 128, 0.05);
}

.comparison-card.pila:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(74, 222, 128, 0.1);
}

.glow-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: inset 0 0 15px rgba(74, 222, 128, 0.08);
    pointer-events: none;
}

.comparison-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.comparison-card .card-header h3 {
    font-size: 1.7rem;
}

.comparison-card.traditional .card-icon {
    color: #ef4444;
    font-size: 2rem;
    font-weight: 300;
}

.comparison-card.pila .card-icon {
    color: var(--accent-green);
    font-size: 2rem;
}

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

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.bullet-cross, .bullet-check {
    margin-top: 5px;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bullet-cross {
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.bullet-check {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.comparison-list li strong {
    display: block;
    color: var(--text-white);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.comparison-list li p {
    font-size: 0.95rem;
}

/* 7. Section: Solución */
.solucion-section {
    background-color: var(--bg-primary);
    overflow: hidden;
}

.sol-glow-1 {
    width: 50vw;
    height: 50vw;
    background: var(--accent-purple);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
}

.solucion-block {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 40px;
    background: radial-gradient(rgba(255, 255, 255, 0.015) 0%, transparent 80%);
    border-radius: 30px;
    position: relative;
    z-index: 1;
}

.sol-para-main {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-white);
    line-height: 1.4;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.sol-emphasize {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.sol-para-sub {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 8. Section: Servicios & Cotizador */
.servicios-section {
    background-color: var(--bg-secondary);
}

.cotizador-widget {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: start;
    margin-top: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(15, 23, 42, 0.85);
}

.service-card.selected {
    border-color: var(--accent-green);
    background: rgba(74, 222, 128, 0.05);
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.08);
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.service-card.selected h3 {
    color: var(--accent-green);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 15px;
}

.select-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.service-card:hover .select-badge {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.service-card.selected .select-badge {
    background: var(--accent-green);
    color: var(--bg-primary);
    border-color: var(--accent-green);
}

/* Cotizador Summary Card */
.cotizador-summary {
    position: sticky;
    top: 110px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.summary-header h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.selected-count {
    font-size: 0.85rem;
    color: var(--accent-green);
    font-family: var(--font-heading);
    font-weight: 600;
}

.summary-body {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding-right: 5px;
}

/* Custom Scrollbar for list */
.summary-body::-webkit-scrollbar {
    width: 4px;
}
.summary-body::-webkit-scrollbar-track {
    background: transparent;
}
.summary-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.selected-services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selected-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.85rem;
    animation: slideIn 0.3s ease forwards;
}

.selected-service-item span {
    color: var(--text-white);
    font-weight: 500;
}

.remove-service-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 5px;
    line-height: 1;
}

.remove-service-btn:hover {
    transform: scale(1.2);
}

.empty-list-msg {
    color: var(--text-gray-dark);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px 0;
    line-height: 1.5;
}

.summary-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.dynamic-pitch {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 9. Section: Historia */
.historia-section {
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hist-glow-1 {
    width: 35vw;
    height: 35vw;
    background: var(--accent-blue);
    right: -10vw;
    top: 20%;
    opacity: 0.08;
}

.historia-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.historia-content .narrative {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.05rem;
}

.highlight-quote {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-white);
    border-left: 3px solid var(--accent-cyan);
    padding-left: 20px;
    margin: 10px 0;
}

.anti-agencia-card {
    padding: 40px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.anti-agencia-card h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    line-height: 1.3;
}

.anti-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.anti-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.anti-list .bullet-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple);
    border-radius: 50%;
    margin-top: 9px;
    flex-shrink: 0;
}

.anti-list p {
    font-size: 1rem;
    color: var(--text-gray-light);
    line-height: 1.4;
}

.anti-footer-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* Equipo Pila Digital */
.equipo-container {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--glass-border);
}

.equipo-container .badge {
    margin-bottom: 15px;
}

.equipo-title {
    font-size: 2.2rem;
    font-weight: 850;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--text-white);
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.equipo-card {
    text-align: left;
    padding: 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.equipo-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.equipo-photo-wrapper {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: border-color 0.4s ease;
}

.equipo-card:hover .equipo-photo-wrapper {
    border-color: rgba(56, 189, 248, 0.35);
}

.equipo-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: grayscale(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipo-card:hover .equipo-photo {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.equipo-name {
    font-size: 1.4rem;
    font-weight: 750;
    color: var(--text-white);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.equipo-role {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.equipo-tagline {
    font-size: 0.9rem;
    color: var(--text-gray-light);
    line-height: 1.5;
    margin-top: auto;
    font-weight: 500;
}

/* 10. Section: Experiencia (Slider & Logos) */
.experiencia-section {
    background-color: var(--bg-secondary);
}

/* Slider / Gallery Wrapper */
.slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto 70px auto;
    z-index: 1;
}

.slider-container {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 20px 0;
}

.slider-slide {
    flex: 0 0 280px;      /* Ancho de cada tarjeta de diseño */
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.slider-slide:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.15);
}

/* Logo Slides inside the Slider */
.slider-slide.logo-slide {
    flex: 0 0 200px;
    height: 120px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-slide.logo-slide:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
    transform: translateY(-4px);
}

.logo-slide-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.9);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.slider-slide.logo-slide:hover .logo-slide-img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
    transform: scale(1.05);
}

/* Industry Logos */
.logos-section {
    border-top: 1px solid var(--glass-border);
    padding-top: 50px;
    text-align: center;
}

.logos-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray-dark);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.logos-scroller {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

/* Shadow masks for smooth fade in/out sides of logos */
.logos-scroller::before, .logos-scroller::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.logos-scroller::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, transparent 100%);
}
.logos-scroller::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-secondary) 0%, transparent 100%);
}

.logos-track {
    display: flex;
    width: max-content;
    gap: 60px;
    animation: scrollLogos 25s linear infinite;
}

.logo-item {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-gray-dark);
    opacity: 0.45;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.logo-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.logo-item.brand-falabella:hover { color: #7bb31a; text-shadow: 0 0 15px rgba(123, 179, 26, 0.4); }
.logo-item.brand-kitchencenter:hover { color: #ff5a00; text-shadow: 0 0 15px rgba(255, 90, 0, 0.4); }
.logo-item.brand-aws:hover { color: #ff9900; text-shadow: 0 0 15px rgba(255, 153, 0, 0.4); }
.logo-item.brand-lenovo:hover { color: #e2231a; text-shadow: 0 0 15px rgba(226, 35, 26, 0.4); }
.logo-item.brand-ibm:hover { color: #0f62fe; text-shadow: 0 0 15px rgba(15, 98, 254, 0.4); }
.logo-item.brand-fortinet:hover { color: #de1f26; text-shadow: 0 0 15px rgba(222, 31, 38, 0.4); }

/* 11. Section: Cómo Funciona */
.como-section {
    background-color: var(--bg-primary);
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
    position: relative;
}

/* Connector line */
.steps-timeline::before {
    content: "";
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, rgba(74, 222, 128, 0) 0%, var(--glass-border) 20%, var(--glass-border) 80%, rgba(129, 140, 248, 0) 100%);
    z-index: 0;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--glass-border);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.step-card:hover .step-num {
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.step-card:nth-child(even):hover .step-num {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* 12. Section: Beneficios */
.beneficios-section {
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.ben-glow-1 {
    width: 40vw;
    height: 40vw;
    background: var(--accent-green);
    left: -15vw;
    bottom: -10vw;
    opacity: 0.06;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.beneficio-item-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.beneficio-item-card:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 222, 128, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.ben-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.beneficio-item-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.beneficio-item-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* 13. Section: Contacto */
.contacto-section {
    background-color: var(--bg-primary);
    overflow: hidden;
}

.contact-glow-1 {
    width: 35vw;
    height: 35vw;
    background: var(--accent-blue);
    right: -5vw;
    bottom: -5vw;
    opacity: 0.08;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-info {
    max-width: 550px;
}

.contact-info .section-title {
    font-size: 3rem;
    line-height: 1.15;
}

.contact-desc {
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.quick-contact {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.quick-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.chat-icon {
    width: 20px;
    height: 20px;
}

.wa-btn {
    background: rgba(37, 211, 102, 0.05);
    border-color: rgba(37, 211, 102, 0.2);
}

.wa-btn:hover {
    background: #25d366;
    color: #000000;
    border-color: #25d366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.ig-btn {
    background: rgba(225, 48, 108, 0.05);
    border-color: rgba(225, 48, 108, 0.2);
}

.ig-btn:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3);
}

/* Contact Form */
.contact-form-container {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea {
    background: rgba(6, 9, 19, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: var(--text-gray-dark);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
    background: rgba(6, 9, 19, 0.8);
}

.form-group textarea[readonly] {
    background: rgba(6, 9, 19, 0.3);
    color: var(--accent-green);
    border-color: rgba(74, 222, 128, 0.15);
    font-family: monospace;
    font-size: 0.85rem;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-gray-dark);
}

.error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 500;
    display: none;
}

.form-status {
    text-align: center;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* 14. Footer */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand .footer-logo span {
    font-family: var(--font-heading);
    font-weight: 850;
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4, 
.footer-social h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 3px;
}

.footer-social p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    color: var(--text-white);
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.05);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-gray-dark);
}

/* 15. Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(6, 9, 19, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #ef4444;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-gray-light);
    padding: 20px 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

/* 16. Keyframe Animations */
@keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 80px; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3); }
    100% { box-shadow: 0 4px 25px rgba(56, 189, 248, 0.6); }
}

@keyframes slideIn {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50%)); }
}

/* 17. Responsive Design (Media Queries) */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-container {
        gap: 30px;
    }
    
    .cotizador-widget {
        grid-template-columns: 1.1fr 0.9fr;
    }
    
    .contact-container {
        gap: 40px;
    }
    
    .steps-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .steps-timeline::before {
        display: none; /* remove line on mobile grids */
    }

    /* Ajustes navbar para pantallas medianas */
    .nav-menu {
        gap: 10px;
    }
    .nav-link {
        font-size: 0.78rem;
    }
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.1rem;
    }
    
    /* Navigation responsive */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(6, 9, 19, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        width: 100%;
        height: calc(100vh - 80px);
        gap: 0;
        transition: 0.3s ease;
        border-top: 1px solid var(--glass-border);
        padding: 40px 0;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        margin: 15px 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }
    
    .nav-btn {
        margin-top: 20px;
        font-size: 1.1rem;
        padding: 12px 30px;
    }
    
    /* Hamburger toggle animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero layout */
    .hero-section {
        padding-top: 140px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-bullets {
        justify-content: center;
    }
    
    .hero-description {
        border-left: none;
        padding-left: 0;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-widget {
        margin: 0 auto;
    }
    
    /* Comparison grid layout */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Cotizador grid layout */
    .cotizador-widget {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cotizador-summary {
        position: static;
        margin-top: 30px;
    }
    
    /* Historia grid layout */
    .historia-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .equipo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 450px;
    }
    
    /* Steps timeline layout */
    .steps-timeline {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        flex-direction: row;
        text-align: left;
        gap: 20px;
        align-items: flex-start;
    }
    
    .step-num {
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Contact grid layout */
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
        max-width: 100%;
    }
    
    .quick-buttons {
        justify-content: center;
    }
    
    /* Footer layout */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-brand .footer-logo {
        justify-content: center;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .sol-para-main {
        font-size: 1.5rem;
    }
    
    .sol-emphasize {
        font-size: 2.2rem;
        gap: 15px;
    }
    
    .sol-para-sub {
        font-size: 1.05rem;
    }
    
    .contact-form-container {
        padding: 25px 20px;
    }
}
