/* ========================================
   Variables CSS
   ======================================== */
:root {
    /* Colores principales - 4D Software & Soluciones */
    --primary-color: #2154E5;
    --primary-dark: #1a43b8;
    --primary-light: #4a73eb;
    --secondary-color: #18E5A2;
    --secondary-dark: #14b882;
    
    /* Colores de texto */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Colores de fondo */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(135deg, #2154E5 0%, #18E5A2 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Tamaños de fuente */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    --font-5xl: 3rem;
    --font-6xl: 3.75rem;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Transiciones */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ========================================
   Reset y Estilos Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

html.loaded {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    color: #f8fafc;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.875rem;
    }
}

@media (max-width: 390px) {
    .container {
        padding: 0 0.75rem;
    }
}

/* ========================================
   Navegación
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-lg);
    font-weight: 700;
}

.logo-image {
    width: 50px;
    height: auto;
}

.logo-text {
    color: var(--text-primary);
    font-size: var(--font-lg);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-contactanos {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-base);
    transition: var(--transition-base);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(33, 84, 229, 0.3);
    order: 1; /* Aparece primero */
}

.btn-contactanos:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 84, 229, 0.4);
}

.hamburger {
    display: flex !important; /* Siempre visible en todos los tamaños */
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    transition: var(--transition-base);
    order: 2; /* Aparece después del botón */
}

.hamburger:hover span {
    background-color: var(--primary-color);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menú desplegable */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.nav-dropdown.active {
    max-height: 500px;
}

.dropdown-menu {
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.dropdown-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-base);
    transition: var(--transition-base);
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: var(--bg-secondary);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    padding-left: 2rem;
}

.nav-menu {
    display: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-base);
    position: relative;
    padding: 0.5rem 0.75rem;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--bg-gradient);
    transition: var(--transition-base);
}

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

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

.btn-contactanos {
    background: #003366;
    color: var(--text-white);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-base);
    transition: var(--transition-base);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(33, 84, 229, 0.3);
}

.btn-contactanos:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 84, 229, 0.4);
}

.btn-primary-nav {
    background: #003366;
    color: var(--text-white);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-sm);
    transition: var(--transition-base);
}

.btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .logo-text {
        font-size: var(--font-base);
        display: none; /* Ocultar texto en móviles pequeños */
    }
    
    .logo-image {
        width: 40px;
    }
    
    .nav-actions {
        gap: 1rem;
    }
    
    .btn-contactanos {
        padding: 0.6rem 1.2rem;
        font-size: var(--font-sm);
    }
    
    .hamburger span {
        width: 24px;
    }
    
    .dropdown-menu {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }
    
    .dropdown-link {
        font-size: var(--font-sm);
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .nav-wrapper {
        padding: 0.6rem 0;
    }
    
    .logo-image {
        width: 35px;
    }
    
    .btn-contactanos {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .hamburger {
        padding: 0.3rem;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
    
    .dropdown-menu {
        padding: 0.75rem 0;
    }
    
    .dropdown-link {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 390px) {
    .logo-image {
        width: 32px;
    }
    
    .btn-contactanos {
        padding: 0.45rem 0.85rem;
        font-size: 0.75rem;
    }
    
    .nav-actions {
        gap: 0.6rem;
    }
}

/* ========================================
   Botones
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-base);
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    text-align: center;
}

.btn-primary {
    background: #003366;
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background-color: transparent;
    color: #003366;
    border: 2px solid #003366;
}

.btn-secondary:hover {
    background-color: #003366;
    color: var(--text-white);
    transform: translateY(-3px);
}

/* ========================================
   Hero Section
   ======================================== */
/* ========================================
   Hero Section - Rediseñado
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(90px + var(--spacing-md)) 0 var(--spacing-md) 0;
    overflow: hidden;
    background: linear-gradient(135deg, #2154E5 0%, #18E5A2 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 84, 229, 0.9) 0%, rgba(24, 229, 162, 0.9) 100%);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Layout: Cards izquierda, Texto derecha */
.hero-content-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 3rem;
    align-items: center;
}

/* Cards animadas con flip (IZQUIERDA) */
.hero-cards-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-auto {
    width: 100%;
    height: 380px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s;
    transform-style: preserve-3d;
}

/* Clase para activar el flip */
.flip-card-inner.flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

/* Frente: Ventana de código */
.flip-card-front {
    background: #1e1e1e;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.code-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.code-header {
    background: #2d2d2d;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid #404040;
}

.code-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-title {
    color: #999;
    font-size: 0.85rem;
    margin-left: auto;
    font-family: 'Courier New', monospace;
}

.code-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.code-content::-webkit-scrollbar {
    width: 6px;
}

.code-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.code-content::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 3px;
}

.code-content::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

.code-content code {
    color: #a9b7c6;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
    width: 100%;
}

/* Atrás: Resultado/Aplicación */
.flip-card-back {
    background: #003366;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem;
    box-shadow: 0 12px 40px rgba(33, 84, 229, 0.5);
}

.flip-card-back i {
    font-size: 5rem;
    color: white;
}

.flip-card-back h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-align: center;
}

.flip-card-back p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-align: center;
    max-width: 400px;
    line-height: 1.6;
}

/* Contenido de texto (DERECHA) */
.hero-text-content {
    color: var(--text-white);
}

.hero-subtitle {
    display: inline-block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
    line-height: 1.2;
    color: white;
}

.gradient-text {
    background: #003366;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: var(--font-base);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* Estadísticas dentro del texto */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-number {
    font-size: var(--font-3xl);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.25rem;
    display: block;
}

.stat-label {
    font-size: var(--font-xs);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Hero - Mejorado */
@media (max-width: 1200px) {
    .hero-content-wrapper {
        grid-template-columns: 380px 1fr;
        gap: 2rem;
    }
    
    .flip-card-auto {
        height: 360px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: calc(80px + 2rem) 0 2rem 0;
        min-height: auto;
    }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-cards-container {
        order: 2;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .flip-card-auto {
        height: 360px;
    }
    
    .hero-text-content {
        order: 1;
    }
    
    .hero-subtitle {
        font-size: var(--font-xs);
        padding: 0.4rem 1.2rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .hero-description {
        max-width: 100%;
        font-size: var(--font-sm);
        margin: 0 auto var(--spacing-md);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: calc(70px + 1.5rem) 0 1.5rem 0;
    }
    
    .hero-content-wrapper {
        gap: 2rem;
    }
    
    .hero-cards-container {
        max-width: 380px;
    }
    
    .flip-card-auto {
        height: 400px;
    }
    
    .code-header {
        padding: 0.65rem 1rem;
    }
    
    .code-dot {
        width: 11px;
        height: 11px;
    }
    
    .code-title {
        font-size: 0.7rem;
    }
    
    .code-content {
        padding: 1rem;
        align-items: flex-start;
    }
    
    .code-content code {
        font-size: 0.7rem;
        line-height: 1.6;
    }
    
    .flip-card-back {
        padding: 2rem;
    }
    
    .flip-card-back i {
        font-size: 3rem;
    }
    
    .flip-card-back h3 {
        font-size: 1.4rem;
    }
    
    .flip-card-back p {
        font-size: 0.9rem;
        max-width: 300px;
    }
    
    .hero-subtitle {
        font-size: 0.7rem;
        padding: 0.35rem 1rem;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: calc(70px + 1rem) 0 1rem 0;
    }
    
    .hero-content-wrapper {
        gap: 1.5rem;
    }
    
    .hero-cards-container {
        max-width: 100%;
        width: 100%;
        padding: 0 1rem;
    }
    
    .flip-card-auto {
        height: 250px;
        max-width: 75%;
    }
    
    .code-header {
        padding: 0.5rem 0.8rem;
    }
    
    .code-dot {
        width: 9px;
        height: 9px;
    }
    
    .code-title {
        font-size: 0.65rem;
    }
    
    .code-content {
        padding: 0.85rem 0.75rem;
        align-items: flex-start;
    }
    
    .code-content code {
        font-size: 0.62rem;
        line-height: 1.5;
    }
    
    .flip-card-back {
        padding: 1.5rem 1.25rem;
        gap: 1rem;
    }
    
    .flip-card-back i {
        font-size: 2.5rem;
    }
    
    .flip-card-back h3 {
        font-size: 1.3rem;
    }
    
    .flip-card-back p {
        font-size: 0.85rem;
        max-width: 260px;
        line-height: 1.5;
    }
    
    .hero-subtitle {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.25rem, 7vw, 1.75rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 390px) {
    .hero {
        padding: calc(65px + 0.75rem) 0 0.75rem 0;
    }
    
    .hero-content-wrapper {
        gap: 1rem;
    }
    
    .hero-cards-container {
        max-width: 100%;
        width: 100%;
        padding: 0 0.75rem;
    }
    
    .flip-card-auto {
        height: 330px;
        max-width: 100%;
    }
    
    .code-header {
        padding: 0.45rem 0.7rem;
    }
    
    .code-dot {
        width: 8px;
        height: 8px;
    }
    
    .code-title {
        font-size: 0.6rem;
    }
    
    .code-content {
        padding: 0.7rem 0.65rem;
    }
    
    .code-content code {
        font-size: 0.58rem;
        line-height: 1.45;
    }
    
    .flip-card-back {
        padding: 1.5rem 1rem;
    }
    
    .flip-card-back i {
        font-size: 2.25rem;
    }
    
    .flip-card-back h3 {
        font-size: 1.15rem;
    }
    
    .flip-card-back p {
        font-size: 0.8rem;
        max-width: 230px;
        line-height: 1.5;
    }
    
    .hero-title {
        font-size: clamp(1.1rem, 8vw, 1.5rem);
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ========================================
   Secciones Generales
   ======================================== */
section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-subtitle {
    display: inline-block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2rem, 5vw, var(--font-4xl));
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.section-description {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Servicios
   ======================================== */
/* ========================================
   Servicios Section - Modern Grid
   ======================================== */
.services-section {
    background-color: var(--bg-secondary);
    padding: var(--spacing-3xl) 0;
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.service-card-modern {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(33, 84, 229, 0.1);
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(33, 84, 229, 0.15);
    border-color: var(--primary-color);
}

.service-card-inner {
    padding: var(--spacing-2xl) var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 320px;
}

.service-icon-wrapper {
    margin-bottom: var(--spacing-lg);
}

.service-icon-modern {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(33, 84, 229, 0.2);
}

.service-card-modern:hover .service-icon-modern {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(33, 84, 229, 0.3);
}

.service-icon-modern i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.service-title-modern {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.service-description-modern {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.service-features-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    background: linear-gradient(135deg, rgba(33, 84, 229, 0.1), rgba(24, 229, 162, 0.1));
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
    border: 1px solid rgba(33, 84, 229, 0.2);
    transition: all 0.3s ease;
}

.service-card-modern:hover .feature-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Responsive Services */
@media (max-width: 768px) {
    .services-grid-modern {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card-inner {
        min-height: auto;
        padding: var(--spacing-xl);
    }
    
    .service-icon-modern {
        width: 70px;
        height: 70px;
    }
    
    .service-icon-modern i {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .services-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   TERMINAL HACKER - Interactive Game
   ======================================== */
.terminal-hacker-section {
    background: #000000;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
    position: relative;
}

.terminal-hacker-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(0,255,65,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.terminal-hacker-section .section-subtitle {
    color: #00ff41;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.terminal-hacker-section .section-title {
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.terminal-hacker-section .section-description {
    color: rgba(0, 255, 65, 0.8);
    font-family: 'Courier New', monospace;
}

/* Terminal Container */
.terminal-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: var(--spacing-2xl);
}

/* Hacker Character */
.hacker-character {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: floatHacker 3s ease-in-out infinite;
}

.hacker-avatar {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.5));
}

@keyframes floatHacker {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

/* Terminal Screen */
.terminal-screen {
    background: #0a0a0a;
    border-radius: var(--radius-lg);
    box-shadow: 
        0 0 50px rgba(0, 255, 65, 0.3),
        inset 0 0 50px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
    border: 2px solid #00ff41;
}

/* Matrix Canvas Background */
.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

/* Terminal Header */
.terminal-header {
    background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid #00ff41;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.btn-close {
    background: #ff5f56;
    box-shadow: 0 0 5px #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
    box-shadow: 0 0 5px #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
    box-shadow: 0 0 5px #27c93f;
}

.terminal-title {
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Terminal Body */
.terminal-body {
    padding: var(--spacing-lg);
    min-height: 500px;
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 2;
}

.terminal-output {
    margin-bottom: var(--spacing-lg);
}

.output-line {
    color: #00ff41;
    line-height: 1.8;
    margin-bottom: 0.3rem;
}

.prompt {
    color: #00ffff;
    font-weight: bold;
    margin-right: 0.5rem;
}

.command {
    color: #ffff00;
}

.success {
    color: #00ff41;
}

.info {
    color: #00bfff;
}

.dim {
    color: #666;
}

.system-msg {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* File System */
.file-system {
    background: rgba(0, 20, 0, 0.5);
    border: 1px solid #00ff41;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.file-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: 0.5rem;
    background: rgba(0, 50, 0, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.file-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
    transform: translateX(5px);
}

.file-icon {
    color: #00ffff;
    font-size: 1.2rem;
}

.file-name {
    flex: 1;
    color: #00ff41;
    font-weight: bold;
}

.file-size {
    color: #666;
    font-size: 0.85rem;
}

.file-execute {
    color: #ffff00;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid #ffff00;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.file-item:hover .file-execute {
    background: #ffff00;
    color: #000;
    box-shadow: 0 0 10px #ffff00;
}

/* Terminal Input */
.terminal-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 20, 0, 0.5);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    border: 1px solid #00ff41;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    outline: none;
}

.terminal-input::placeholder {
    color: #006600;
}

.cursor-blink {
    color: #00ff41;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.help-msg {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(0, 191, 255, 0.1);
    border-left: 3px solid #00bfff;
    border-radius: var(--radius-sm);
}

/* Service Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.service-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #0a0a0a;
    border: 2px solid #00ff41;
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 0 50px rgba(0, 255, 65, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.9);
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideIn {
    from {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: #ff5f56;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 10px #ff5f56;
}

.modal-close:hover {
    background: #ff0000;
    transform: rotate(90deg);
    box-shadow: 0 0 20px #ff0000;
}

.modal-body {
    padding: var(--spacing-2xl);
    font-family: 'Courier New', monospace;
    color: #00ff41;
}

.modal-body h3 {
    color: #00ffff;
    font-size: var(--font-2xl);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.modal-body h3 i {
    font-size: var(--font-3xl);
}

.modal-body p {
    color: rgba(0, 255, 65, 0.9);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.modal-body .features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-lg);
}

.modal-body .feature-tag {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-weight: bold;
    border: 1px solid #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.modal-body h4 {
    color: #ffff00;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-lg);
}

.modal-body .details-list {
    list-style: none;
    padding: 0;
}

.modal-body .details-list li {
    padding: var(--spacing-sm) 0;
    color: rgba(0, 255, 65, 0.8);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    line-height: 1.6;
}

.modal-body .details-list li::before {
    content: '▸';
    color: #00ffff;
    font-weight: bold;
    font-size: var(--font-lg);
    flex-shrink: 0;
}

/* Scrollbar personalizado para modal */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #00ffff;
}

/* Responsive Terminal */
@media (max-width: 768px) {
    .hacker-avatar {
        width: 120px;
        height: 120px;
    }
    
    .terminal-body {
        padding: var(--spacing-md);
        min-height: 400px;
    }
    
    .terminal-title {
        font-size: 0.75rem;
    }
    
    .file-item {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .file-size {
        order: 3;
    }
    
    .modal-body {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .terminal-input-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-name {
        font-size: 0.85rem;
    }
    
    .terminal-buttons {
        transform: scale(0.8);
    }
}

/* ========================================
   Services Game - Interactive Experience (OLD - Hidden)
   ======================================== */
.services-game {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
    position: relative;
}

.services-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(33, 84, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(24, 229, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.services-game .section-subtitle {
    color: var(--secondary-color);
}

.services-game .section-title {
    color: var(--text-white);
}

.services-game .section-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-lg);
}

.game-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: var(--spacing-2xl);
}

/* Developer Character */
.developer-character {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: floatDev 3s ease-in-out infinite;
}

.dev-avatar {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

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

/* Game Screen (Monitor) */
.game-screen {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    min-height: 600px;
    border: 2px solid rgba(33, 84, 229, 0.3);
    overflow: hidden;
}

/* Code Background */
.code-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    overflow: hidden;
    pointer-events: none;
}

.code-lines {
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding: var(--spacing-md);
}

.code-keyword { color: #ff79c6; }
.code-class { color: #50fa7b; }
.code-function { color: #8be9fd; }
.code-string { color: #f1fa8c; }
.code-comment { color: #6272a4; font-style: italic; }
.code-param { color: #ffb86c; }

/* Service Blocks Container */
.service-blocks-container {
    background: rgba(15, 23, 42, 0.8);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border: 1px solid rgba(33, 84, 229, 0.3);
    backdrop-filter: blur(10px);
}

.blocks-header {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-lg);
}

.blocks-header i {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.service-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
}

/* Service Block (Draggable) */
.service-block {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: grab;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(33, 84, 229, 0.3);
}

.service-block:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(33, 84, 229, 0.5);
    border-color: var(--secondary-color);
}

.service-block:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.service-block.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.service-block i {
    font-size: 2rem;
    color: white;
}

.service-block span {
    color: white;
    font-weight: 600;
    font-size: var(--font-sm);
    text-align: center;
}

/* Drop Zone */
.drop-zone {
    background: rgba(30, 41, 59, 0.6);
    border: 3px dashed rgba(24, 229, 162, 0.5);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(24, 229, 162, 0.1), transparent);
    transition: left 0.5s ease;
}

.drop-zone.drag-over {
    border-color: var(--secondary-color);
    background: rgba(24, 229, 162, 0.1);
    transform: scale(1.02);
}

.drop-zone.drag-over::before {
    left: 100%;
}

.drop-zone-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.drop-zone-content i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    animation: bounce 2s ease-in-out infinite;
}

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

.drop-zone-content p {
    font-size: var(--font-lg);
    font-weight: 600;
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: var(--secondary-color);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Service Info Display */
.service-info-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.service-info-display.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.close-info {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(239, 68, 68, 0.8);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 101;
}

.close-info:hover {
    background: rgba(239, 68, 68, 1);
    transform: rotate(90deg);
}

.service-info-content {
    color: white;
}

.service-info-content h3 {
    font-size: var(--font-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.service-info-content h3 i {
    font-size: var(--font-3xl);
}

.service-info-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.service-info-content .features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-lg);
}

.service-info-content .feature-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 600;
}

.service-info-content .details-list {
    list-style: none;
    padding: 0;
}

.service-info-content .details-list li {
    padding: var(--spacing-sm) 0;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.service-info-content .details-list li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    font-size: var(--font-lg);
}

/* Responsive Game */
@media (max-width: 768px) {
    .dev-avatar {
        width: 120px;
        height: 120px;
    }
    
    .game-screen {
        min-height: 500px;
        padding: var(--spacing-md);
    }
    
    .service-blocks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-block i {
        font-size: 1.5rem;
    }
    
    .drop-zone {
        min-height: 150px;
        padding: var(--spacing-lg);
    }
    
    .service-info-display {
        width: 95%;
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .service-blocks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .service-block {
        padding: var(--spacing-sm);
    }
    
    .service-block span {
        font-size: var(--font-xs);
    }
}

/* ========================================
   Portafolio - Carrusel
   ======================================== */
.portfolio {
    background-color: #0a0a0a;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(33, 84, 229, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(24, 229, 162, 0.05) 0%, transparent 50%);
    overflow: hidden;
    padding: var(--spacing-3xl) 0;
}

.portfolio .section-header {
    margin-bottom: var(--spacing-2xl);
}

.portfolio .section-subtitle {
    color: var(--secondary-color);
}

.portfolio .section-title {
    color: var(--text-white);
}

.portfolio .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.portfolio-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: var(--spacing-xl) 0;
}

.portfolio-carousel {
    overflow: visible;
    position: relative;
    width: 100%;
}

.portfolio-track {
    display: flex;
    gap: var(--spacing-md);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.portfolio-card {
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
}

.portfolio-card-inner {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.portfolio-card-inner:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(33, 84, 229, 0.4);
}

/* Overlay oscuro por defecto */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Al hacer hover, el overlay se vuelve más transparente */
.portfolio-card-inner:hover .portfolio-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.portfolio-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portfolio-category {
    font-size: var(--font-md);
    color: var(--text-white);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--spacing-md);
}

.portfolio-card-inner:hover .portfolio-category {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--bg-gradient);
    color: var(--text-white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-md);
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(33, 84, 229, 0.3);
}

.portfolio-card-inner:hover .portfolio-btn {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 84, 229, 0.5);
}

.portfolio-btn i {
    transition: transform 0.3s ease;
}

.portfolio-btn:hover i {
    transform: translateX(5px);
}

/* Botones de navegación - ocultos en auto-rotate */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.portfolio-carousel-wrapper:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background: rgba(33, 84, 229, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Indicadores */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-xl);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--bg-gradient);
    width: 24px;
    border-radius: var(--radius-full);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.portfolio-cta {
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    margin-top: var(--spacing-2xl);
}

.portfolio-cta p {
    font-size: var(--font-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-card {
        min-width: 250px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .portfolio-card {
        min-width: 220px;
        max-width: 250px;
    }
    
    .portfolio-card-inner {
        height: 350px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .portfolio-title {
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

/* ========================================
   About / Nosotros
   ======================================== */
/* ========================================
   Nosotros - Timeline Animada
   ======================================== */
.about-timeline {
    background-color: var(--bg-secondary);
}

/* Timeline Vertical */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-2xl) 0;
}

/* Línea vertical central */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-3xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

/* Marcador (dot) en el centro - posicionado absolutamente sobre la línea */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(33, 84, 229, 0.2);
    transition: all 0.3s ease;
}

.timeline-dot-current {
    background: var(--primary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(24, 229, 162, 0.3), 0 0 20px rgba(33, 84, 229, 0.4);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(24, 229, 162, 0.3), 0 0 20px rgba(33, 84, 229, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(24, 229, 162, 0.2), 0 0 30px rgba(33, 84, 229, 0.6);
    }
}

/* Contenido alternado (izquierda/derecha) */
.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
    text-align: left;
}

.timeline-content {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Flecha apuntando al dot */
.timeline-item:nth-child(odd) .timeline-content::before {
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--bg-primary);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--bg-primary) transparent transparent;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.timeline-content-current {
    border: 2px solid var(--primary-color);
}

.timeline-date {
    display: inline-block;
    font-size: var(--font-sm);
    font-weight: 700;
    color: white;
    background: var(--bg-gradient);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-sm);
}

.timeline-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.timeline-text {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.timeline-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-highlights li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.timeline-item:nth-child(odd) .timeline-highlights li {
    justify-content: flex-end;
}

.timeline-highlights i {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Valores y Misión */
.values-section {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-3xl);
    border-top: 2px solid rgba(33, 84, 229, 0.1);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.value-card {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.value-icon i {
    font-size: var(--font-2xl);
    color: white;
}

.value-card h4 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.value-card p {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: var(--spacing-md);
    }
    
    .timeline-marker {
        margin-left: 8px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 2;
        text-align: left;
    }
    
    .timeline-content::before {
        left: -15px !important;
        right: auto !important;
        border-width: 10px 15px 10px 0 !important;
        border-color: transparent var(--bg-primary) transparent transparent !important;
    }
    
    .timeline-highlights li {
        justify-content: flex-start !important;
    }
}

/* Proceso de trabajo */
.work-process-section {
    background-color: var(--bg-primary);
}

.work-process {
    margin-top: 0;
}

.process-title {
    text-align: center;
    font-size: var(--font-3xl);
    margin-bottom: var(--spacing-xl);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.step-item {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-xl);
    position: relative;
    transition: var(--transition-base);
}

.step-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-gradient);
    color: var(--text-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-sm);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: var(--spacing-md) auto;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i {
    font-size: var(--font-3xl);
    color: var(--primary-color);
}

.step-item h4 {
    font-size: var(--font-lg);
    margin-bottom: var(--spacing-sm);
}

.step-item p {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* Testimonios */
.testimonials {
    margin-top: var(--spacing-3xl);
}

.testimonials-title {
    text-align: center;
    font-size: var(--font-3xl);
    margin-bottom: var(--spacing-xl);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    padding: var(--spacing-xl);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--spacing-md);
    color: #fbbf24;
}

.testimonial-text {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.author-info h5 {
    font-size: var(--font-base);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* ========================================
   Clientes
   ======================================== */
/* ========================================
   Carrusel de Clientes (después del Hero)
   ======================================== */
.clients-carousel-section {
    background-color: var(--bg-primary);
    padding: var(--spacing-lg) 0;
    overflow: hidden;
}

.clients-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Gradientes a los lados para efecto fade */
.clients-carousel-wrapper::before,
.clients-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.clients-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.clients-carousel {
    width: 100%;
}

.clients-track {
    display: flex;
    gap: 4rem;
    animation: scroll-infinite 40s linear infinite;
    width: fit-content;
}

/* Pausar al hacer hover */
.clients-carousel:hover .clients-track {
    animation-play-state: paused;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.client-logo-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-base);
}

.client-logo-item:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Responsive Carrusel */
@media (max-width: 768px) {
    .clients-carousel-section {
        padding: var(--spacing-sm) 0;
    }
    
    .clients-track {
        gap: 2rem;
    }
    
    .client-logo-item {
        width: 140px;
        height: 80px;
    }
    
    .clients-carousel-wrapper::before,
    .clients-carousel-wrapper::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .client-logo-item {
        width: 120px;
        height: 70px;
    }
}

/* ========================================
   Sección de Clientes (original - si existe)
   ======================================== */

/* ========================================
   Testimonials / Casos de Éxito
   ======================================== */
.testimonials-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section .container {
    max-width: 100%;
    padding: 0;
}

.testimonials-section .section-header {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(33,84,229,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

/* Carrusel de testimonios */
.testimonials-carousel-wrapper {
    position: relative;
    width: 100vw;
    overflow: hidden;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md) 0;
    margin-left: 50%;
    transform: translateX(-50%);
}

.testimonials-carousel {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: var(--spacing-lg);
    animation: scrollTestimonials 40s linear infinite;
    width: max-content;
    padding: 0 var(--spacing-md);
}

.testimonials-track:hover {
    animation-play-state: paused;
}

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

.testimonial-card {
    flex: 0 0 450px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(33, 84, 229, 0.08);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border: 2px solid var(--primary-color);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: var(--font-lg);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-rating i {
    transform: scale(1.1);
}

.testimonial-rating i:nth-child(1) { animation-delay: 0s; }
.testimonial-rating i:nth-child(2) { animation-delay: 0.1s; }
.testimonial-rating i:nth-child(3) { animation-delay: 0.2s; }
.testimonial-rating i:nth-child(4) { animation-delay: 0.3s; }
.testimonial-rating i:nth-child(5) { animation-delay: 0.4s; }

.testimonial-text {
    font-size: var(--font-base);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: auto;
    font-style: italic;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--bg-secondary);
    margin-top: var(--spacing-md);
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.testimonial-card:hover .author-image {
    transform: scale(1.1) rotate(5deg);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-position {
    font-size: var(--font-sm);
    color: var(--text-light);
}

/* Animación de entrada para las estrellas */
@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.testimonial-card:hover .testimonial-rating i {
    animation: starPulse 0.6s ease-in-out;
}

/* Efecto de desvanecimiento en los bordes */
.testimonials-carousel-wrapper::before,
.testimonials-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.testimonials-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.testimonials-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 320px;
        padding: var(--spacing-lg);
        min-height: 280px;
    }
    
    .testimonial-text {
        font-size: var(--font-sm);
    }
    
    .author-image {
        width: 50px;
        height: 50px;
    }
    
    .author-name {
        font-size: var(--font-base);
    }
    
    .testimonials-track {
        gap: var(--spacing-md);
        animation-duration: 50s;
    }
    
    .testimonials-carousel-wrapper::before,
    .testimonials-carousel-wrapper::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        flex: 0 0 280px;
    }
    
    .testimonial-card::before {
        font-size: 80px;
        top: -10px;
        left: 10px;
    }
    
    .testimonial-rating i {
        font-size: var(--font-base);
    }
}

/* ========================================
   Blog
   ======================================== */
.blog {
    background-color: var(--bg-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.blog-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--bg-gradient);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
}

.blog-content {
    padding: var(--spacing-lg);
}

.blog-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-sm);
    color: var(--text-light);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-title a {
    font-size: var(--font-xl);
    color: var(--text-primary);
    transition: var(--transition-base);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin: var(--spacing-sm) 0 var(--spacing-md);
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-sm);
    transition: var(--transition-base);
}

.blog-link:hover {
    gap: 1rem;
}

.blog-cta {
    text-align: center;
}

/* ========================================
   Protocolo de Atención - Timeline Vertical
   ======================================== */
.protocol-section {
    background: #f8f9ff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.protocol-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.protocol-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}

.protocol-shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(33, 84, 229, 0.15), rgba(24, 229, 162, 0.15));
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.protocol-shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(24, 229, 162, 0.1), rgba(255, 107, 107, 0.1));
    bottom: -150px;
    left: -150px;
    animation-delay: 7s;
}

.protocol-shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(33, 84, 229, 0.12));
    top: 50%;
    right: -80px;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.protocol-section .section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.protocol-section .section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
}

.protocol-section .section-subtitle i {
    margin-right: 8px;
    animation: pulse 2s ease-in-out infinite;
}

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

.protocol-section .section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.protocol-section .section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Timeline */
.protocol-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 200px;
    height: 100%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.timeline-line path {
    filter: drop-shadow(0 0 8px rgba(33, 84, 229, 0.3));
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: flex-start;
    z-index: 2;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

/* Posicionar cada marcador siguiendo la curva S */
.timeline-item:nth-child(1) .timeline-marker {
    left: calc(50% + 20px);
}

.timeline-item:nth-child(2) .timeline-marker {
    left: calc(50% - 20px);
}

.timeline-item:nth-child(3) .timeline-marker {
    left: calc(50% + 20px);
}

.timeline-item:nth-child(4) .timeline-marker {
    left: calc(50% - 20px);
}

.timeline-item:nth-child(5) .timeline-marker {
    left: calc(50% + 20px);
}

.timeline-item:nth-child(6) .timeline-marker {
    left: calc(50% - 20px);
}

.timeline-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(33, 84, 229, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.timeline-number::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-item:hover .timeline-number {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 15px 40px rgba(33, 84, 229, 0.5);
}

.timeline-item:hover .timeline-number::before {
    opacity: 0.2;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid #f8f9ff;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

/* Timeline Content */
.timeline-content {
    width: calc(50% - 80px);
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 35px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
    border-width: 15px 0 15px 20px;
    border-color: transparent transparent transparent white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    border-width: 15px 20px 15px 0;
    border-color: transparent white transparent transparent;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(33, 84, 229, 0.15);
    border-color: var(--primary-color);
}

.timeline-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(33, 84, 229, 0.1), rgba(24, 229, 162, 0.1));
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.timeline-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.timeline-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(33, 84, 229, 0.03);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.timeline-feature:hover {
    background: rgba(33, 84, 229, 0.08);
    transform: translateX(5px);
}

.timeline-feature i {
    font-size: 1.1rem;
    color: var(--primary-color);
    min-width: 24px;
}

.timeline-feature span {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.timeline-duration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.timeline-duration i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .protocol-section .section-title {
        font-size: 2.5rem;
    }

    .timeline-line {
        left: 40px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 100px;
    }

    .timeline-marker {
        left: 40px;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin: 0;
    }

    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -20px;
        right: auto;
        border-width: 15px 20px 15px 0;
        border-color: transparent white transparent transparent;
    }
}

@media (max-width: 768px) {
    .protocol-section {
        padding: 80px 0 60px;
    }

    .protocol-section .section-title {
        font-size: 2rem;
    }

    .protocol-section .section-description {
        font-size: 1rem;
    }

    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }

    .timeline-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .timeline-content {
        padding: 25px;
    }

    .timeline-title {
        font-size: 1.5rem;
    }

    .timeline-description {
        font-size: 0.95rem;
    }

    .timeline-features {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        margin-bottom: 60px;
    }
}

@media (max-width: 576px) {
    .timeline-line {
        left: 30px;
        width: 2px;
    }

    .timeline-marker {
        left: 30px !important;
        transform: translateX(-50%) !important;
    }
    
    .timeline-item:nth-child(1) .timeline-marker,
    .timeline-item:nth-child(2) .timeline-marker,
    .timeline-item:nth-child(3) .timeline-marker,
    .timeline-item:nth-child(4) .timeline-marker,
    .timeline-item:nth-child(5) .timeline-marker,
    .timeline-item:nth-child(6) .timeline-marker {
        left: 30px !important;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 80px;
        flex-direction: row;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .timeline-content::before {
        left: -20px !important;
        right: auto !important;
        border-width: 15px 20px 15px 0 !important;
        border-color: transparent white transparent transparent !important;
    }

    .timeline-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 390px) {
    .timeline-line {
        left: 25px;
    }

    .timeline-marker {
        left: 25px !important;
    }
    
    .timeline-item:nth-child(1) .timeline-marker,
    .timeline-item:nth-child(2) .timeline-marker,
    .timeline-item:nth-child(3) .timeline-marker,
    .timeline-item:nth-child(4) .timeline-marker,
    .timeline-item:nth-child(5) .timeline-marker,
    .timeline-item:nth-child(6) .timeline-marker {
        left: 25px !important;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 65px;
        margin-bottom: 50px;
    }

    .timeline-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .timeline-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        border-width: 2px;
    }

    .timeline-content {
        padding: 16px;
    }
    
    .timeline-content::before {
        left: -16px !important;
        border-width: 12px 16px 12px 0 !important;
    }

    .timeline-badge {
        font-size: 0.65rem;
        padding: 5px 12px;
    }

    .timeline-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .timeline-description {
        font-size: 0.85rem;
    }

    .protocol-section .section-title {
        font-size: 1.75rem;
    }
}

/* ========================================
   Portafolio
   ======================================== */
.portfolio {
    background-color: #0a0a0a;
}

/* ========================================
   FAQ - Preguntas Frecuentes
   ======================================== */
.faq-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(33, 84, 229, 0.1);
    transform: translateY(-2px);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(33, 84, 229, 0.02);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding-right: 20px;
}

.faq-question i {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
}

.faq-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.faq-cta p {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

/* ========================================
   Contacto
   ======================================== */
.contact {
    background-color: var(--bg-primary);
}

/* Nuevo diseño del hero de contacto */
.contact-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(33, 84, 229, 0.05), rgba(24, 229, 162, 0.05));
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.contact-main-phrase {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 60px;
    color: var(--text-primary);
    z-index: 2;
    position: relative;
}

.contact-main-phrase .gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animación de iconos flotantes */
.floating-icons-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.float-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(33, 84, 229, 0.2);
    animation: floatAround 8s ease-in-out infinite;
    animation-delay: var(--delay);
    transform: translate(var(--x), var(--y));
}

.float-icon i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes floatAround {
    0%, 100% {
        transform: translate(var(--x), var(--y)) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translate(calc(var(--x) * 1.5), calc(var(--y) * 0.8)) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translate(calc(var(--x) * 0.8), calc(var(--y) * 1.5)) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translate(calc(var(--x) * 1.2), calc(var(--y) * 1.2)) scale(1.05);
        opacity: 0.9;
    }
}

/* Información de contacto rápida */
.quick-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
    position: relative;
    margin-top: 40px;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}

.quick-contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(33, 84, 229, 0.2);
}

.quick-contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 84, 229, 0.1);
    border-radius: 50%;
}

.whatsapp-link i {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.05);
}

/* Responsive contacto */
@media (max-width: 992px) {
    .contact-main-phrase {
        font-size: 2rem;
    }

    .float-icon {
        width: 50px;
        height: 50px;
    }

    .float-icon i {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .contact-hero-text {
        padding: 30px 20px;
        min-height: 400px;
    }

    .contact-main-phrase {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .float-icon {
        width: 40px;
        height: 40px;
    }

    .float-icon i {
        font-size: 1rem;
    }

    .quick-contact-item {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-3xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: var(--font-xl);
    color: var(--text-white);
}

.info-content h4 {
    font-size: var(--font-lg);
    margin-bottom: 0.5rem;
}

.info-content p {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #25d366;
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 600;
    transition: var(--transition-base);
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.05);
}

.social-links h4 {
    font-size: var(--font-lg);
    margin-bottom: var(--spacing-sm);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    color: var(--text-white);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Formulario */
.contact-form {
    background-color: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--text-light);
    border-radius: var(--radius-md);
    font-size: var(--font-base);
    font-family: inherit;
    transition: var(--transition-base);
    background-color: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    margin-top: var(--spacing-sm);
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: var(--font-sm);
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
}

.form-message.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-logo .logo-text {
    color: var(--text-white);
}

.footer-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--bg-gradient);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: var(--font-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text-white);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: var(--font-sm);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 0.5rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: var(--font-sm);
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: var(--font-sm);
    margin-bottom: 0.5rem;
}

.footer-bottom i {
    color: #ef4444;
}

/* ========================================
   Scroll to Top
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    /* La hamburguesa ya está siempre visible con display: flex !important */
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: var(--bg-primary);
        box-shadow: var(--shadow-2xl);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        transition: var(--transition-base);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--bg-secondary);
    }
    
    .btn-contactanos {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    .btn-primary-nav {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: var(--font-4xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clients-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: var(--font-3xl);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BOTÓN WHATSAPP FLOTANTE
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

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

.whatsapp-float i {
    animation: whatsapp-icon-pulse 1.5s infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

@keyframes whatsapp-icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive para WhatsApp flotante */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        left: 20px;
    }
}

/* ========================================
   Sección Isométrica - Servicios
   ======================================== */
section:has(.contenedor-isometrico) {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

section:has(.contenedor-isometrico)::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(33, 84, 229, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

section:has(.contenedor-isometrico)::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(24, 229, 162, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contenedor-isometrico {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.titulo-interacción {
    text-align: center;
    margin-bottom: 20px;
}

.titulo-interacción h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #2154E5 0%, #18E5A2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: fadeInDown 0.8s ease-out;
}

.titulo-interacción h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #2154E5, transparent);
    border-radius: 2px;
    animation: slideIn 0.8s ease-out 0.2s backwards;
}

.isometric-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
}

.programmer-gif-container {
    position: absolute;
    bottom: 88%;
    right: 30%;
    z-index: 5;
}

.programmer-gif {
    width: 140px;
    height: auto;
    display: block;
}

/* Responsive GIF */
@media (max-width: 768px) {
    .programmer-gif-container {
        bottom: 10%;
        left: 12%;
    }

    .programmer-gif {
        width: 110px;
    }
}

@media (max-width: 480px) {
    .programmer-gif-container {
        bottom: 8%;
        left: 10%;
    }

    .programmer-gif {
        width: 80px;
    }
}

.imagen-isometrico {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(33, 84, 229, 0.15);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.imagen-isometrico:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 80px rgba(33, 84, 229, 0.25);
}

/* Overlay interactivo en la imagen */
.imagen-isometrico::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 84, 229, 0) 0%, rgba(24, 229, 162, 0.1) 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
}

.imagen-isometrico:hover::before {
    opacity: 1;
}

/* Puntos de interacción animados */
.interaction-point {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 4px 15px rgba(24, 229, 162, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.interaction-point:hover {
    transform: scale(1.2);
    background: var(--primary-color);
    box-shadow: 0 6px 25px rgba(33, 84, 229, 0.6);
}

.interaction-point i {
    animation: bounce 0.6s ease-in-out infinite;
}

.interaction-point:hover i {
    animation: bounce 0.4s ease-in-out infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(24, 229, 162, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(24, 229, 162, 0.6);
    }
}

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

/* Tooltip para descripción */
.interaction-tooltip {
    position: absolute;
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.interaction-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(30, 41, 59, 0.95);
}

.interaction-point:hover .interaction-tooltip {
    opacity: 1;
    transform: translateY(-50px);
}

/* Animaciones escalonadas por zona */
.interaction-point[style*="top: 18%"] {
    animation-delay: 0.1s;
}

.interaction-point[style*="top: 18%"]:nth-child(n+2) {
    animation-delay: 0.2s;
}

.interaction-point[style*="top: 18%"]:nth-child(n+3) {
    animation-delay: 0.3s;
}

.interaction-point[style*="top: 52%"] {
    animation-delay: 0.4s;
}

.interaction-point[style*="top: 52%"]:nth-child(n+5) {
    animation-delay: 0.5s;
}

.interaction-point[style*="top: 52%"]:nth-child(n+6) {
    animation-delay: 0.6s;
}

.interaction-point[style*="top: 72%"] {
    animation-delay: 0.7s;
}

.interaction-point[style*="top: 72%"]:nth-child(n+8) {
    animation-delay: 0.8s;
}

.interaction-point[style*="top: 72%"]:nth-child(n+9) {
    animation-delay: 0.9s;
}

/* Animación de entrada para los puntos */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.interaction-point {
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    section:has(.contenedor-isometrico) {
        padding: 60px 0;
    }

    .titulo-interacción h2 {
        font-size: clamp(1.25rem, 4vw, 1.8rem);
    }

    .contenedor-isometrico {
        gap: 30px;
    }

    .interaction-point {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .interaction-point i {
        font-size: 11px;
    }

    .interaction-tooltip {
        font-size: 12px;
        padding: 10px 14px;
    }

    .interaction-tooltip::after {
        border-left-width: 5px;
        border-right-width: 5px;
        border-top-width: 5px;
    }
}

@media (max-width: 480px) {
    section:has(.contenedor-isometrico) {
        padding: 40px 0;
    }

    .interaction-point {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .interaction-point i {
        font-size: 9px;
    }
}

/* ========================================
   Modal de Servicios
   ======================================== */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.service-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 50, 50, 0.7);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px 35px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2001;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

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

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2154E5 0%, #18E5A2 100%);
    border-radius: 12px;
    color: white;
    font-size: 28px;
}

#modalTitle {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #2154E5 0%, #18E5A2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.modal-divider {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #2154E5 0%, #18E5A2 100%);
    border-radius: 2px;
}

.modal-body {
    margin-bottom: 24px;
}

#modalDescription {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.technology-tag {
    background: rgba(33, 84, 229, 0.1);
    color: #2154E5;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(33, 84, 229, 0.2);
    transition: all 0.3s ease;
}

.technology-tag:hover {
    background: #2154E5;
    color: white;
    border-color: #2154E5;
}

.modal-features h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.modal-features li {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #18E5A2;
    font-weight: bold;
    font-size: 16px;
}

.modal-footer {
    padding-top: 20px;
    border-top: 1px solid var(--bg-secondary);
}

.modal-cta {
    display: inline-block;
    background: linear-gradient(135deg, #2154E5 0%, #18E5A2 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 84, 229, 0.3);
}

.modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(33, 84, 229, 0.4);
}

/* Scrollbar personalizado para el modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(33, 84, 229, 0.2);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(33, 84, 229, 0.4);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 25px;
        width: 95%;
        max-width: 100%;
    }

    #modalTitle {
        font-size: 20px;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
        max-height: 90vh;
    }

    #modalTitle {
        font-size: 18px;
    }

    .modal-technologies {
        gap: 8px;
    }

    .technology-tag {
        padding: 6px 12px;
        font-size: 11px;
    }
}

