/* ========================================
   GONWEB - Cyberpunk/Tech Landing Page
   Mobile First + SEO Optimizado
   ======================================== */

/* CSS Custom Properties */
:root {
    --color-bg: #000000;
    --color-bg-alt: #0a0a0a;
    --color-surface: #111111;
    --color-surface-hover: #1a1a1a;
    
    --color-primary: #00d4ff;
    --color-primary-dark: #00a8cc;
    --color-primary-glow: rgba(0, 212, 255, 0.3);
    
    --color-secondary: #7000ff;
    --color-secondary-glow: rgba(112, 0, 255, 0.3);
    
    --color-text: #ffffff;
    --color-text-muted: #aaaaaa;
    --color-text-dim: #999999;
    
    --color-success: #00ff88;
    --color-error: #ff3366;
    --color-warning: #ffaa00;
    
    --font-mono: 'Fira Code', 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-neon-strong: 0 0 40px rgba(0, 212, 255, 0.5);
    
    --header-height: 70px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* ========================================
   RESPONSIVE IMAGES
   ======================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.card-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.tech-carousel-item img {
    max-width: 60px;
    height: auto;
}

/* ========================================
   TOUCH TARGETS (minimum 44px for accessibility)
   ======================================== */
button,
a,
.nav-link,
.mobile-link,
.card-btn,
.pricing-btn,
.whatsapp-float,
.chat-toggle,
.chat-close,
.chat-send-btn,
.cookie-banner-button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-mono);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* Global text wrapping to prevent horizontal overflow */
p, span, div, li, td, th, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-text-dim);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ========================================
   PRELOADER
   ======================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.console-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.prompt {
    color: var(--color-primary);
}

.typing-text {
    color: var(--color-text);
}

.cursor {
    color: var(--color-primary);
    animation: blink 1s step-end infinite;
}

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

.progress-container {
    width: 100%;
    height: 4px;
    background-color: var(--color-surface);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    box-shadow: var(--shadow-neon);
    transition: width 0.1s linear;
    animation: progressFill 1.5s ease-out forwards;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-percentage {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    animation: percentageUpdate 1.5s ease-out forwards;
}

@keyframes percentageUpdate {
    0% { content: "0%"; }
    25% { content: "25%"; }
    50% { content: "50%"; }
    75% { content: "75%"; }
    100% { content: "100%"; }
}

/* ========================================
   MATRIX RAIN BACKGROUND
   ======================================== */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    background-color: #000000;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary-glow);
    letter-spacing: 2px;
}

.nav-menu {
    display: none;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

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

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

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-fast);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg);
    padding: 2rem;
    transform: translateX(-100%);
    transition: var(--transition-normal);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-link {
    font-size: 1.5rem;
    color: var(--color-text);
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-surface);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-surface);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--color-success);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
}

.hero-title .accent {
    color: var(--color-primary);
    text-shadow: 0 0 30px var(--color-primary-glow);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
    min-width: 220px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg);
    box-shadow: var(--shadow-neon);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text-dim);
}

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

.btn-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-surface);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* ========================================
   COMMON SECTION STYLES
   ======================================== */
section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   SOBRE MÍ SECTION
   ======================================== */
.sobre-mi {
    background-color: transparent(--color-bg-alt);
}

.sobre-mi-grid {
    display: grid;
    gap: 2.5rem;
}

/* Code Block */
.code-block {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

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

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

.code-filename {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.code-content {
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-keyword { color: #c586c0; }
.code-variable { color: #9cdcfe; }
.code-property { color: #9cdcfe; }
.code-string { color: #ce9178; }
.code-number { color: #b5cea8; }

.sobre-mi-text p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--color-text) !important;
    line-height: 1.7;
}

.tech-stack h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.4rem 0.8rem;
    background-color: var(--color-surface);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

.tech-tag:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
}
/* ========================================
   PILLARS SECTION (5 Pilares)
   ======================================== */

#pillars {
    background: transparent(135deg, #0a0b10 0%, #1a1c25 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.section-title {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    display: block;
}
.pillars-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto; /* El 'auto' lo centra y el '50px' le da espacio antes de las tarjetas */
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.6;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pillar-card {
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
}

.pillar-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.pillar-card h3 {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.pillar-card p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.8;
    font-weight: 400;
}
/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio-grid {
    display: grid;
    gap: 2rem;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    height: auto; /* <--- Agregá esto para que no se estire de más */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: var(--transition-slow);
}

.hotel-bg { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.restaurant-bg { background: linear-gradient(135deg, #2d1b1b, #1f1515); }
.gym-bg { background: linear-gradient(135deg, #1b2d1b, #151f15); }
.bakery-bg { background: linear-gradient(135deg, #2d2a1b, #1f1d15); }
.services-bg { background: linear-gradient(135deg, #1b1f2d, #15181f); }
.app-bg { background: linear-gradient(135deg, #2d1b2d, #1f151f); }

.card-icon {
    opacity: 0.8;
    transition: var(--transition-normal);
}

.portfolio-card:hover .card-icon {
    transform: scale(1.1);
    opacity: 1;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.card-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-tech span {
    padding: 0.25rem 0.5rem;
    background-color: rgba(0, 212, 255, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--color-primary);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.card-features {
    margin-bottom: 1.5rem;
}

.card-features li {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.card-features li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.card-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    text-align: center;
    width: 100%;
}

.card-btn:hover {
    background-color: transparent(--color-primary);
    color: var(--color-bg);
}
/* --- LIMPIEZA DE TARJETAS PORTFOLIO --- *//* 1. Forzamos que la tarjeta no tenga un alto fijo */.portfolio-card { height: auto !important; min-height: 100px !important; /* Un mínimo pequeño solo por seguridad */ padding-bottom: 20px !important; /* Espacio justo después del botón */}/* 2. Ajustamos el contenedor del texto y el botón *//* Buscá si tu clase se llama .portfolio-content o .portfolio-info */.portfolio-card > div:last-child { padding: 15px !important; display: flex; flex-direction: column; align-items: center;}/* 3. Achicamos márgenes de los títulos y descripción */.portfolio-card h3 { margin-top: 10px !important; margin-bottom: 5px !important;}.portfolio-card p { margin-bottom: 15px !important; line-height: 1.2 !important;}
/* ========================================
   PLANES SECTION
   ======================================== */
.planes {
    background-color: transparent;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    transition: var(--transition-normal);
    max-width: 350px;
    width: 100%;
    flex: 0 0 auto;
}

.pricing-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-neon);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-bg-alt);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
}

.period {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--color-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li.disabled {
    color: var(--color-text-dim);
}

.check-icon, .cross-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.check-icon {
    color: var(--color-success);
}

.cross-icon {
    color: var(--color-text-dim);
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: 2px solid var(--color-text-dim);
    color: var(--color-text);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition-fast);
}

.pricing-btn:hover,
.pricing-btn.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg);
}

/* ========================================
   CONTACTO SECTION
   ======================================== */
.contacto {
    background-color: transparent;
}

.contact-grid {
    display: grid;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--color-primary);
    color: var(--color-bg);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.contact-direct {
    margin-top: 2rem;
    text-align: center;
}

.contact-direct p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: #25d366;
    color: #fff;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition-fast);
}

.whatsapp-link:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

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

.form-honeypot {
    position: absolute;
    left: -9999px;
}

.form-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.form-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.form-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.form-status.error {
    display: block;
    background-color: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

/* ========================================
   FOOTER & MARQUEE
   ======================================== */
.footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.marquee-container {
    overflow: hidden;
    padding: 2rem 0;
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.marquee {
    display: flex;
    gap: 5rem;
    animation: marquee 35s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

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

.marquee-content {
    display: flex;
    gap: 5rem;
    flex-shrink: 0;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
}

/* Brand Colors for Technology Icons */
.marquee-item .devicon-html5-plain { color: #e34f26; }
.marquee-item .devicon-css3-plain { color: #1572b6; }
.marquee-item .devicon-javascript-plain { color: #f7df1e; }
.marquee-item .devicon-typescript-plain { color: #3178c6; }
.marquee-item .devicon-react-original { color: #61dafb; }
.marquee-item .devicon-nodejs-plain { color: #339933; }
.marquee-item .devicon-python-plain { color: #3776ab; }
.marquee-item .devicon-postgresql-plain { color: #336791; }
.marquee-item .devicon-mongodb-plain { color: #47a248; }
.marquee-item .devicon-git-plain { color: #f05032; }
.marquee-item .devicon-tailwindcss-plain { color: #06b6d4; }
.marquee-item .devicon-java-plain { color: #007396; }

.tech-icon {
    font-size: 1.75rem;
}

.footer-bottom {
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: transparent;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 1rem;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.instagram-link:hover {
    color: #E1306C;
    transform: scale(1.1);
}

.instagram-link svg {
    width: 100%;
    height: 100%;
}

/* ========================================
   FOOTER LEGAL LINKS
   ======================================== */
.footer-legal-link {
    text-decoration: none;
    color: var(--color-text-dim);
    margin: 0 0.25rem;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

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

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 1rem 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    font-size: 0.85rem;
    color: var(--color-text);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.cookie-banner-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.cookie-banner-link:hover {
    text-decoration: underline;
}

.cookie-banner-button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.cookie-banner-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-text {
        font-size: 0.8rem;
    }

    .cookie-banner-button {
        width: 100%;
    }

    .footer-bottom {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .marquee-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tech-carousel-track {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Stack side-by-side elements vertically on mobile */
    .sobre-mi-grid,
    .pricing-grid,
    .portfolio-grid,
    .pillars-grid,
    .contact-grid {
        flex-direction: column;
    }

    .pricing-card,
    .portfolio-card,
    .pillar-card {
        width: 100%;
        max-width: 100%;
    }
}

/* ========================================
   WHATSAPP FLOAT BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 10000;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

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

/* ========================================
   CHAT WIDGET - Estilo Capta+
   ======================================== */
.chat-widget {
    position: fixed;
    bottom: calc(1.25rem + 60px + 0.5rem);
    right: 1.25rem;
    z-index: 997;
}

/* Botón flotante */
.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-neon);
    position: relative;
    transition: var(--transition-fast);
}

.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-neon-strong);
}

.chat-icon {
    width: 28px;
    height: 28px;
    color: #fff;
}

.chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Globo proactivo */
.chat-bubble {
    position: absolute;
    bottom: 70px;
    right: 0;
    max-width: 240px;
    width: calc(100vw - 2rem);
    padding: 0.875rem 2.25rem 0.875rem 0.875rem;
    background-color: var(--color-surface);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius-lg);
    border-bottom-right-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--color-text);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.chat-bubble.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-bubble:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.chat-bubble-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
}

.chat-bubble-close:hover {
    color: var(--color-text);
}

/* Ventana de chat */
.chat-window {
    position: absolute;
    bottom: 10px;
    right: 10px !important;
    max-width: 340px;
    width: calc(100vw - 2.5rem);
    height: 460px;
    max-height: 80vh;
    background-color: var(--color-surface);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-normal);
    overflow: hidden;
    z-index: 10001;
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
}

.chat-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.chat-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chat-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-close {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1;
    padding: 0.25rem;
    transition: var(--transition-fast);
}

.chat-close:hover {
    color: var(--color-text);
}

/* Mensajes */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 85%;
}

.chat-message-content {
    padding: 0.625rem 0.875rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    line-height: 1.45;
}

.chat-message-bot {
    align-self: flex-start;
}

.chat-message-bot .chat-message-content {
    background-color: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--color-text);
    border-bottom-left-radius: 4px;
}

.chat-message-user {
    align-self: flex-end;
}

.chat-message-user .chat-message-content {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg);
    border-bottom-right-radius: 4px;
}

.chat-time {
    font-size: 0.7rem;
    color: var(--color-text-dim);
    align-self: flex-end;
}

/* Botón WhatsApp fijo */
.chat-whatsapp-fixed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    margin: 0.4rem 0.75rem 0.6rem;
    background-color: #25d366;
    color: #fff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.chat-whatsapp-fixed:hover {
    background-color: #1ebe5a;
}

.chat-whatsapp-fixed svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Área de input */
.chat-input-area {
    padding: 1rem;
    background-color: var(--color-surface);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background-color: var(--color-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.85rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.chat-input::placeholder {
    color: var(--color-text-dim);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background-color: var(--color-primary-dark);
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
    color: var(--color-bg);
}

/* ========================================
   TABLET STYLES (768px+)
   ======================================== */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .mobile-toggle {
        display: none;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
    }
    
    section {
        padding: 6rem 2rem;
    }
    
    .sobre-mi-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   DESKTOP STYLES (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pricing-grid {
        flex-wrap: nowrap;
    }
    
    section {
        padding: 8rem 2rem;
    }
    
    .hero {
        padding: calc(var(--header-height) + 3rem) 2rem 5rem;
    }
}

/* ========================================
   LARGE DESKTOP (1400px+)
   ======================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .marquee {
        animation: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
/* Mobile First - Base Styles */
/* Mobile - 0px to 480px */
@media (max-width: 480px) {
    /* General mobile optimizations - Global text centering */
    html, body {
        font-size: 14px;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Center all text globally on mobile */
    body,
    .container,
    .hero-content,
    .section-header,
    .sobre-mi-grid,
    .pricing-grid,
    .portfolio-grid,
    .pillars-grid,
    .contact-grid {
        text-align: center;
        padding-left: 0;
        margin-left: 0;
    }

    h1, h2, h3, h4, h5, h6,
    p, span, div {
        text-align: center;
    }

    /* Exception: code content should remain left-aligned for readability */
    .code-content,
    .code-content code,
    .code-content span {
        text-align: left !important;
    }

    /* Sobre Mí section specific mobile alignment */
    .sobre-mi,
    .sobre-mi-grid,
    .sobre-mi-content,
    .sobre-mi-text {
        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Hero section mobile */
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.3rem;
    }

    /* Cards mobile */
    .portfolio-card,
    .pricing-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Buttons mobile */
    .card-btn,
    .pricing-btn,
    .form-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Navigation mobile */
    .nav-link {
        padding: 12px 16px;
    }

    /* Form mobile */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 58px;
        height: 58px;
        min-width: 58px;
        min-height: 58px;
        z-index: 10000;
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .whatsapp-float .whatsapp-icon {
        width: 30px;
        height: 30px;
    }

    .chat-widget {
        display: none;
    }

    .chat-window {
        width: 100%;
        height: 90vh;
        max-height: 90vh;
        right: 10px !important;
        bottom: 10px;
        left: 10px;
        max-width: none;
    }

    .chat-bubble {
        width: calc(100vw - 2rem);
        right: 0;
    }

    .chat-message-content {
        font-size: 0.82rem;
    }

    .chat-title {
        font-size: 0.9rem;
    }

    /* Stack elements vertically on mobile */
    .sobre-mi-grid,
    .pricing-grid,
    .portfolio-grid,
    .pillars-grid,
    .contact-grid {
        flex-direction: column;
    }

    .pricing-card,
    .portfolio-card,
    .pillar-card {
        width: 100%;
        max-width: 100%;
    }

    /* Sobre Mí section mobile */
    .sobre-mi-text {
        text-align: center;
        width: 100%;
        display: block;
        padding-left: 0;
        margin-left: 0;
    }

    .sobre-mi-text p,
    .lead-text {
        text-align: center;
        width: 100%;
        display: block;
        padding-left: 0;
        margin-left: 0;
    }

    .tech-stack {
        text-align: center;
        width: 100%;
        display: block;
        padding-left: 0;
        margin-left: 0;
    }

    .tech-tags {
        justify-content: center;
        padding-left: 0;
        margin-left: 0;
    }

    /* Code block mobile */
    .code-block {
        margin: 0 auto;
        max-width: 100%;
        padding-left: 0 !important;
        margin-left: 0 !important;
        text-align: center;
    }

    .code-header {
        justify-content: center;
        text-align: center;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .code-filename {
        margin-left: 0;
    }

    .code-content {
        text-align: left !important;
        font-size: 0.85rem;
        padding: 1rem;
        padding-left: 0.5rem;
        margin-left: 0 !important;
        overflow-x: auto;
    }

    .code-content code {
        text-align: left !important;
    }

    /* Tech carousel mobile */
    .tech-carousel-item {
        min-width: 80px;
    }

    .tech-carousel-item img {
        max-width: 50px;
    }

    .tech-carousel-item p {
        font-size: 0.8rem;
    }
}

/* Tablet - 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    /* General tablet optimizations - Global text centering */
    html, body {
        font-size: 15px;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Center all text globally on tablet */
    body,
    .container,
    .hero-content,
    .section-header,
    .sobre-mi-grid,
    .pricing-grid,
    .portfolio-grid,
    .pillars-grid,
    .contact-grid {
        text-align: center;
        padding-left: 0;
        margin-left: 0;
    }

    h1, h2, h3, h4, h5, h6,
    p, span, div {
        text-align: center;
    }

    /* Exception: code content should remain left-aligned for readability */
    .code-content,
    .code-content code,
    .code-content span {
        text-align: left !important;
    }

    /* Sobre Mí section specific mobile alignment */
    .sobre-mi,
    .sobre-mi-grid,
    .sobre-mi-content,
    .sobre-mi-text {
        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Sobre Mí section tablet */
    .sobre-mi-text {
        text-align: center;
        width: 100%;
        display: block;
        padding-left: 0;
        margin-left: 0;
    }

    .sobre-mi-text p,
    .lead-text {
        text-align: center;
        width: 100%;
        display: block;
        padding-left: 0;
        margin-left: 0;
    }

    .tech-stack {
        text-align: center;
        width: 100%;
        display: block;
        padding-left: 0;
        margin-left: 0;
    }

    .tech-tags {
        justify-content: center;
        padding-left: 0;
        margin-left: 0;
    }

    /* Code block tablet */
    .code-block {
        margin: 0 auto;
        max-width: 100%;
        padding-left: 0;
        margin-left: 0;
    }

    .code-header {
        justify-content: center;
        text-align: center;
        padding-left: 0;
        margin-left: 0;
    }

    .code-filename {
        margin-left: 0;
    }

    .sobre-mi-grid,
    .pricing-grid,
    .portfolio-grid {
        flex-direction: column;
    }

    .pricing-card,
    .portfolio-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Desktop - 769px and up */
@media (min-width: 769px) {
    .chat-widget {
        display: block;
    }
}

/* Tablet: Ocultar asistente */
@media (max-width: 1023px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 58px;
        height: 58px;
        z-index: 10000;
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }

    .chat-widget {
        display: none;
    }
}

/* Desktop: Mostrar asistente solo en pantallas grandes */
@media (min-width: 1024px) {
    .chat-widget {
        display: block;
    }
}

@media print {
    .header,
    .whatsapp-float,
    .chat-widget,
    #matrix-canvas,
    .preloader,
    .marquee-container {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* ========================================
   TECH CAROUSEL
   ======================================== */
.tech {
    background: transparent(--color-bg-alt);
    padding: 4rem 0;
    overflow: hidden;
}

.tech .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tech .section-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.tech-subtitle {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.tech-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-carousel-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: tech-scroll 25s linear infinite;
    will-change: transform;
}

/* ========================================
   MODAL PLANES
   ======================================== */
.modal-planes {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-planes.active {
    display: flex;
}

.modal-planes-content {
    background-color: var(--color-surface);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-planes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.modal-planes-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.modal-planes-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.modal-planes-close:hover {
    color: var(--color-primary);
    background-color: rgba(0, 212, 255, 0.1);
}

.modal-planes-form {
    padding: 1.5rem;
}

.modal-planes-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-planes-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
}

.modal-planes-form input,
.modal-planes-form textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--color-bg-alt);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.modal-planes-form input:focus,
.modal-planes-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

.modal-planes-form input::placeholder,
.modal-planes-form textarea::placeholder {
    color: var(--color-text-dim);
}

.modal-planes-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-bg);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-neon);
}

.modal-planes-submit:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon-strong);
}

.modal-planes-submit:active {
    transform: translateY(0);
}

/* Mobile responsive for modal */
@media (max-width: 480px) {
    .modal-planes-content {
        max-width: 100%;
        margin: 0;
        border-radius: var(--border-radius);
    }

    .modal-planes-header {
        padding: 1rem;
    }

    .modal-planes-title {
        font-size: 1.25rem;
    }

    .modal-planes-form {
        padding: 1rem;
    }

    .modal-planes-form input,
    .modal-planes-form textarea {
        font-size: 16px; /* Prevents iOS zoom */
    }
}

.tech-carousel-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    text-align: center;
}

.tech-carousel-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(0, 212, 255, 0.2));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.tech-carousel-item:hover img {
    filter: brightness(1.3) drop-shadow(0 0 16px rgba(0, 212, 255, 0.5));
    transform: scale(1.1);
}

.tech-carousel-item p {
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

/* ========================================
   LEGAL PAGES STYLES
   ======================================== */
.legal-section {
    padding: 6rem 1.5rem 4rem;
    min-height: 100vh;
    background-color: var(--color-bg);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-surface);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.legal-intro {
    font-size: 0.95rem;
    color: var(--color-text-dim);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.legal-intro:last-of-type {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.legal-content li {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--color-primary);
    font-weight: 600;
}

.back-to-home {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    text-align: center;
}

.legal-section .btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.legal-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

@media (max-width: 768px) {
    .legal-section {
        padding: 5rem 1rem 3rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 0.95rem;
    }
}

@keyframes tech-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
/* Estilo para el enlace del Email en el footer */
.footer-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espacio entre el sobre y el texto */
    color: #ffffff; /* Color blanco, o el que use tu marca */
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.footer-email i {
    font-size: 1.2rem; /* Tamaño del sobrecito */
    color: #25d366; /* Podés usar el verde de tu marca o blanco */
}

.footer-email:hover {
    color: #f1f1f1;
    transform: scale(1.05); /* Se agranda un poquito al pasar el mouse */
}