/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Futuristic SaaS Color Palette */
    --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --secondary-gradient: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #764ba2 100%);
    --dark-bg: #030014;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.125);

    /* Neon Colors */
    --neon-blue: #00f2fe;
    --neon-purple: #764ba2;
    --neon-cyan: #4facfe;
    --neon-green: #39ff14;

    /* Colors */
    --primary-color: #00f2fe;
    --secondary-color: #764ba2;
    --text-primary: #ffffff;
    --text-secondary: #b0b0d1;
    --background-dark: #030014;

    /* Theming tokens (dark by default) */
    --bg-base:        #030014;
    --bg-nav:         rgba(10, 10, 35, 0.95);
    --bg-nav-scrolled:rgba(10, 10, 35, 0.98);
    --bg-section:     linear-gradient(135deg, #0a0a23 0%, #1a1a2e 100%);
    --bg-section-alt: #05001a;
    --bg-card:        rgba(255, 255, 255, 0.03);
    --bg-modal:       #0d0d2b;
    --border-subtle:  rgba(255, 255, 255, 0.1);
    --border-card:    rgba(255, 255, 255, 0.125);
    --txt-primary:    #ffffff;
    --txt-secondary:  #b0b0d1;
    --txt-muted:      #6b7280;
    --shadow-card:    rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Effects */
    --glass-blur: blur(20px);
    --neon-glow: 0 0 15px rgba(0, 242, 254, 0.5);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light Mode Overrides ─────────────────────────────────────────── */
html[data-theme="light"] {
    --dark-bg:        #f0f4ff;
    --background-dark:#f0f4ff;
    --card-bg:        rgba(0, 0, 0, 0.04);
    --glass-border:   1px solid rgba(0, 0, 0, 0.1);
    --text-primary:   #1a1a2e;
    --text-secondary: #4a4a6a;
    --neon-glow:      0 0 15px rgba(102, 126, 234, 0.3);

    --bg-base:        #f0f4ff;
    --bg-nav:         rgba(255, 255, 255, 0.95);
    --bg-nav-scrolled:rgba(255, 255, 255, 0.98);
    --bg-section:     linear-gradient(135deg, #e8eeff 0%, #f0eeff 100%);
    --bg-section-alt: #eef2ff;
    --bg-card:        rgba(0, 0, 0, 0.04);
    --bg-modal:       #ffffff;
    --border-subtle:  rgba(0, 0, 0, 0.1);
    --border-card:    rgba(0, 0, 0, 0.1);
    --txt-primary:    #1a1a2e;
    --txt-secondary:  #4a4a6a;
    --txt-muted:      #6b7280;
    --shadow-card:    rgba(0, 0, 0, 0.1);
}

/* 3D Scene Perspective */
.scene-3d {
    perspective: 2000px;
}

.tilt-element {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    transition: background-color 0.35s ease, color 0.35s ease;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--txt-primary);
    background: var(--bg-base);
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 40%);
    transition: background-color 0.35s ease, color 0.35s ease;
}

html[data-theme="light"] body {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.07) 0%, transparent 40%);
}


/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-padding {
    padding: var(--section-padding);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.navbar.scrolled {
    background: var(--bg-nav-scrolled);
    box-shadow: 0 4px 20px var(--shadow-card);
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar.visible {
    transform: translateY(0);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-icon {
    color: var(--accent-color);
    font-size: 1.8rem;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

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

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

.ai-link {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    color: #0a0a23 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    animation: ai-glow 2s ease-in-out infinite;
}

.ai-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.5);
    color: #0a0a23 !important;
}

.ai-link::after {
    display: none;
}

@keyframes ai-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 242, 254, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    }
}

.cta-link {
    background: var(--primary-gradient);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    color: var(--text-primary) !important;
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-indicator {
    position: absolute;
    bottom: -1px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 10;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

.nav-link.active {
    color: var(--text-primary);
    position: relative;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 6px var(--accent-color);
}

/* ── Theme Toggle Button ────────────────────────────────────────── */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
    transform: rotate(20deg) scale(1.1);
}

html[data-theme="light"] .theme-toggle:hover {
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.4);
}

/* Section Indicator */
.section-indicator {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%) translateX(100px);
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-indicator.show {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.section-indicator::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--primary-color);
    transform: translateY(-50%);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section Updated */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Let background handle it */
    background: var(--dark-bg);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-scene-3d {
    width: 100%;
    height: 100%;
    position: absolute;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--dark-bg) 95%);
    pointer-events: none;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neon-blue);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 10px var(--neon-blue);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-description {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Futuristic Buttons */
.btn-glow {
    background: var(--primary-gradient);
    color: var(--dark-bg);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.6);
    transform: translateY(-3px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}


.hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.control.red {
    background: #ff5f57;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #28ca42;
}

.card-title {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.prompt {
    color: var(--accent-color);
    font-weight: 500;
}

.command {
    color: var(--text-primary);
}

.output {
    color: var(--text-secondary);
}

.typing {
    animation: typewriter 2s infinite;
}

@keyframes typewriter {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.5;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--bg-section);
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding);
    background: var(--background-dark);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="0.5" fill="%23667eea" opacity="0.3"/><circle cx="80" cy="30" r="0.5" fill="%2300f2fe" opacity="0.2"/><circle cx="30" cy="70" r="0.5" fill="%23764ba2" opacity="0.25"/><circle cx="70" cy="80" r="0.5" fill="%23667eea" opacity="0.35"/></svg>') repeat;
    pointer-events: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-card {
    background: var(--glass-background);
    backdrop-filter: blur(15px);
    border: var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    transform-style: preserve-3d;
}

/* Interactive Glow Effect */
.portfolio-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%),
            rgba(102, 126, 234, 0.15) 0%,
            transparent 50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-card:hover::before,
.service-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(2deg);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.5);
}

.portfolio-card .portfolio-image {
    transform: translateZ(20px);
}

.portfolio-card .portfolio-content {
    transform: translateZ(30px);
}

.portfolio-card.highlight {
    border: 2px solid var(--primary-color);
    position: relative;
}

.portfolio-card.highlight::before {
    content: '✨ Próximo Proyecto';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

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

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-smooth);
    color: white;
}

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

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

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

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.portfolio-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.portfolio-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.portfolio-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-stats i {
    color: var(--accent-color);
}

.portfolio-summary {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.summary-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.summary-stats .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.summary-stats .stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.summary-stats .stat-content {
    flex: 1;
}

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

.summary-stats .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

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

/* Glassy Cards and Sections */
.service-card,
.plan-card,
.portfolio-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card:hover,
.plan-card:hover,
.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.4);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--accent-gradient);
    border-radius: 20px;
    /* Squircle style */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--dark-bg);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
    transform: translateZ(50px);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    transform: translateZ(40px);
}

/* Pricing Section Boost */
.hosting-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
}

.plan-card {
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-card.featured-plan {
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4), inset 0 0 10px rgba(0, 242, 254, 0.2);
    transform: scale(1.05);
    z-index: 5;
}


.plan-card.featured-plan::before {
    content: 'TOP RECOMENDADO';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-blue);
    color: var(--dark-bg);
    padding: 0.4rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 0 0 10px 10px;
}

.plan-card h4 {
    font-size: 2rem;
    color: var(--neon-blue);
    margin-bottom: 0.25rem;
}

.plan-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    opacity: 0.8;
}

.plan-bono-group {
    margin-bottom: 1.5rem;
}

.plan-bono {
    background: linear-gradient(135deg, rgba(0,242,254,0.08), rgba(118,75,162,0.08));
    border: 1px solid rgba(0,242,254,0.2);
    border-radius: 8px 8px 0 0;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.featured-plan .plan-bono {
    background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15));
    border-color: rgba(102,126,234,0.4);
}

.plan-bono-extras {
    list-style: none;
    background: rgba(0,242,254,0.04);
    border: 1px solid rgba(0,242,254,0.12);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 1rem;
    margin: 0;
}

.plan-bono-extras li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.plan-bono-extras li:last-child {
    border-bottom: none;
}

.plan-bono-extras .fab.fa-whatsapp { color: #25D366; }
.plan-bono-extras .fa-robot        { color: var(--neon-blue); }
.plan-bono-extras .fa-share-alt    { color: #667eea; }

.featured-plan .plan-bono-extras {
    background: rgba(102,126,234,0.06);
    border-color: rgba(102,126,234,0.2);
}

/* Light mode */
html[data-theme="light"] .plan-bono-extras {
    background: rgba(102,126,234,0.05);
    border-color: rgba(102,126,234,0.15);
}

html[data-theme="light"] .plan-bono-extras li {
    border-bottom-color: rgba(0,0,0,0.05);
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plan-features i {
    color: var(--neon-blue);
}

/* Portfolio Boost */
.portfolio-card {
    padding: 0;
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.portfolio-overlay {
    background: linear-gradient(to top, var(--dark-bg), transparent);
}


.service-description {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.service-features i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Service Note and Payment Methods */
.service-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    border-radius: 4px;
}

.service-note small {
    color: #ffc107;
    font-weight: 500;
}

.payment-methods {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
    border-radius: 4px;
}

.payment-methods small {
    color: #28a745;
    font-weight: 500;
}

/* Hosting Plans Specific Styles */
.hosting-plans {
    max-width: none;
    grid-column: 1 / -1;
}

.domain-search {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.domain-search h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
}

.search-box button {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.domain-result {
    padding: 0.75rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
}

.domain-result.available {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.domain-result.unavailable {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.hosting-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.plan-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
}

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

.plan-card.featured-plan {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* ── Precio de plan ── */
.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin: 0.75rem 0 1.25rem;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    line-height: 1;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.featured-plan .price-amount {
    font-size: 2.6rem;
}

/* ── Badge ── */
.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    font-size: 1.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 1.25rem;
    text-align: left;
}

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

.plan-features i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

.hosting-features {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
}

.hosting-features h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.general-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.general-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.general-features i {
    color: var(--accent-color);
    font-size: 1rem;
    width: 20px;
}

/* Responsive adjustments for hosting plans */
@media (max-width: 768px) {
    .hosting-plans-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

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

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.notification-success .notification-content {
    background: rgba(40, 167, 69, 0.9);
    border: 1px solid #28a745;
    color: white;
}

.notification-error .notification-content {
    background: rgba(220, 53, 69, 0.9);
    border: 1px solid #dc3545;
    color: white;
}

.notification-info .notification-content {
    background: rgba(0, 123, 255, 0.9);
    border: 1px solid #007bff;
    color: white;
}

.notification-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content span {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile responsive for notifications */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

.service-price {
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--background-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    margin: 3rem 0;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--tertiary-gradient);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.feature-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container {
    width: 100%;
    max-width: 400px;
}

.ai-dashboard {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h4 {
    color: var(--text-primary);
    margin: 0;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
}

.metric-bar {
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: var(--tertiary-gradient);
    border-radius: 4px;
    transition: width 2s ease;
}

.metric-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 35px;
    text-align: right;
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
    background: var(--bg-section);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.2);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-rating i {
    color: #ffd700;
    font-size: 1rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-name {
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.author-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--background-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    margin: 3rem 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.method-info h4 {
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.method-info p {
    color: var(--text-secondary);
    margin: 0;
}

/* WhatsApp Link Styles */
.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.1);
    transform: translateY(-2px);
}

.whatsapp-link:hover .method-icon {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    transform: scale(1.1);
}

.whatsapp-link:hover .method-info h4 {
    color: #25d366;
}

.contact-social {
    margin-top: 3rem;
}

.contact-social h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
}

.contact-form {
    width: 100%;
}

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

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

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

.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(102, 126, 234, 0.1);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-section);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

/* Chatbot */
.chatbot {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: rgba(10, 10, 35, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2), 0 0 0 1px rgba(102, 126, 234, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.chatbot.active {
    transform: translateY(0);
    opacity: 1;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    color: white;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.chatbot-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.chatbot-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-body {
    height: calc(100% - 70px);
    display: flex;
    flex-direction: column;
}

.chatbot-body .chatbot-messages {
    flex: 1;
    min-height: 0;
}

.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.message-avatar {
    width: 35px;
    height: 35px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: var(--tertiary-gradient);
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.user-message .message-content {
    background: var(--primary-gradient);
}

.chatbot-input {
    display: flex;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.75rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.9rem;
}

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

.chatbot-input button {
    padding: 0.75rem 1rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chatbot-input button:hover {
    transform: scale(1.05);
}

/* AI Source Badge */
.ai-source-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    font-weight: 600;
    vertical-align: middle;
}

.ai-source-badge.ollama {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-source-badge.local {
    background: rgba(0, 242, 254, 0.2);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* Enhanced Message Styles */
.bot-message .message-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.user-message .message-content {
    background: var(--primary-gradient);
    border: none;
}

/* Chatbot Open AI Page Link */
.chatbot-open-fullpage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(79, 172, 254, 0.1) 100%);
    border-top: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.chatbot-open-fullpage:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(79, 172, 254, 0.2) 100%);
}

.chatbot-open-fullpage i {
    font-size: 0.9rem;
}

/* Quick Action Buttons */
.quick-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-actions h5 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.quick-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    font-family: inherit;
}

.quick-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.quick-btn:active {
    transform: translateY(0);
}

.quick-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.quick-btn:disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
}

.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: pulse-trigger 2s infinite;
}

.chatbot-trigger:hover {
    transform: scale(1.1);
}

.chatbot-trigger.hidden {
    transform: scale(0);
    opacity: 0;
}

.trigger-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gradient);
    animation: pulse-wave 2s infinite;
    z-index: -1;
}

@keyframes pulse-trigger {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse-wave {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

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

    .logo-image {
        height: 35px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 80%;
        text-align: center;
    }

    .nav-menu .nav-link.active {
        background: rgba(102, 126, 234, 0.2);
        border-radius: var(--border-radius);
        border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    }

    .nav-indicator {
        display: none;
        /* Hide on mobile */
    }

    .section-indicator {
        right: 15px;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    /* Enhanced mobile navbar behavior */
    .navbar.hidden {
        transform: translateY(-100%);
    }

    .navbar.visible {
        transform: translateY(0);
    }

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

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

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

    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card.featured {
        transform: none;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-summary {
        padding: 2rem 1rem;
    }

    .summary-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-stats {
        justify-content: center;
        text-align: center;
    }

    .chatbot {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 90px;
    }

    .chatbot-trigger {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* AOS Animation Overrides */
[data-aos] {
    transition-duration: 0.8s;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

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

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Tech Section and Animated Code Background */
.tech-section {
    padding: 6rem 0;
    background: var(--bg-section-alt);
    position: relative;
    overflow: hidden;
}

.code-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-blue);
    pointer-events: none;
    z-index: 1;
}

.code-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.code-line {
    white-space: nowrap;
    animation: code-fade-in 2s forwards;
    opacity: 0;
}

@keyframes code-fade-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tech-nodes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.tech-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 180px;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.tech-node:hover {
    background: rgba(0, 242, 254, 0.08);
    border-color: var(--neon-blue);
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.2);
}

.tech-node i {
    font-size: 3.5rem;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.3));
}

.tech-node span {
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-display);
    color: var(--text-primary);
}
/* ═══════════════════════════════════════════
   MODAL DE COTIZACIÓN
═══════════════════════════════════════════ */
.quote-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
}
.quote-overlay.active { display: block; }

.quote-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(.95);
    width: min(920px, 96vw);
    max-height: 88vh;
    background: var(--bg-modal);
    border: 1px solid rgba(0,242,254,.2);
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(0,242,254,.15);
    z-index: 2100;
    overflow: hidden;
    flex-direction: column;
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}
.quote-modal.active {
    display: flex;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Header */
.quote-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    flex-shrink: 0;
}
.quote-modal-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-display);
}
.quote-close-btn {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.quote-close-btn:hover { background: rgba(255,255,255,.4); }

/* Body: dos columnas */
.quote-modal-body {
    display: grid;
    grid-template-columns: 1fr 360px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

/* ── Chat IA ── */
.quote-chat-section {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,.08);
    min-height: 0;
}
.quote-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.quote-chat-messages::-webkit-scrollbar { width: 4px; }
.quote-chat-messages::-webkit-scrollbar-thumb { background: rgba(0,242,254,.3); border-radius: 2px; }

.qmsg {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
}
.qmsg.bot { flex-direction: row; }
.qmsg.user { flex-direction: row-reverse; }

.qmsg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    flex-shrink: 0;
}
.qmsg.bot .qmsg-avatar  { background: linear-gradient(135deg,#667eea,#764ba2); color:#fff; }
.qmsg.user .qmsg-avatar { background: rgba(0,242,254,.2); color: var(--neon-blue); }

.qmsg-bubble {
    max-width: 80%;
    padding: .6rem .9rem;
    border-radius: 12px;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--text-primary);
}
.qmsg.bot  .qmsg-bubble { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-top-left-radius: 4px; }
.qmsg.user .qmsg-bubble { background: linear-gradient(135deg,#667eea,#764ba2); border-top-right-radius: 4px; }

.qmsg-typing span {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--neon-blue);
    border-radius: 50%;
    margin: 0 2px;
    animation: qbounce 1s infinite;
}
.qmsg-typing span:nth-child(2) { animation-delay: .15s; }
.qmsg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes qbounce {
    0%,80%,100% { transform: translateY(0); opacity:.4; }
    40%          { transform: translateY(-6px); opacity:1; }
}

.quote-chat-input-row {
    display: flex;
    gap: .5rem;
    padding: .75rem;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.quote-chat-input-row input {
    flex: 1;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .55rem .9rem;
    color: #fff;
    font-size: .88rem;
    outline: none;
}
.quote-chat-input-row input:focus { border-color: var(--neon-blue); }
.quote-chat-input-row button {
    background: linear-gradient(135deg,#667eea,#764ba2);
    border: none;
    color: #fff;
    width: 38px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
    transition: opacity .2s;
}
.quote-chat-input-row button:hover { opacity: .85; }

/* ── Formulario ── */
.quote-form-section {
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.quote-form-title {
    color: var(--neon-blue);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 0;
}
.quote-form-sub {
    font-size: .8rem;
    color: var(--text-secondary);
    margin: 0;
}
.quote-form-group { display: flex; flex-direction: column; gap: .3rem; }
.quote-form-group label { font-size: .8rem; color: var(--text-secondary); }
.quote-form-group input,
.quote-form-group textarea {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .6rem .9rem;
    color: var(--txt-primary);
    font-size: .88rem;
    font-family: inherit;
    outline: none;
    resize: none;
    transition: border-color .2s;
}
.quote-form-group input:focus,
.quote-form-group textarea:focus { border-color: var(--neon-blue); }

.quote-send-btn { margin-top: .25rem; }
.quote-send-status {
    font-size: .82rem;
    text-align: center;
    min-height: 1.2em;
}
.quote-send-status.success { color: #39ff14; }
.quote-send-status.error   { color: #ff4757; }

.quote-whatsapp-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: .75rem;
    margin-top: auto;
}
.quote-whatsapp-alt a {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* Responsive */
@media (max-width: 640px) {
    .quote-modal-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
    .quote-chat-section { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); max-height: 280px; }
    .quote-form-section { max-height: none; }
}

/* ══════════════════════════════════════════════════════════════════
   LIGHT MODE — targeted overrides for elements with hardcoded colors
   ══════════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="light"] p {
    color: var(--txt-secondary);
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4 {
    color: var(--txt-primary);
}

/* Cards */
html[data-theme="light"] .service-card,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .portfolio-card {
    background: rgba(255,255,255,0.8);
    border-color: rgba(102,126,234,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

html[data-theme="light"] .service-card:hover,
html[data-theme="light"] .plan-card:hover,
html[data-theme="light"] .portfolio-card:hover {
    box-shadow: 0 20px 50px rgba(102,126,234,0.2);
    border-color: rgba(102,126,234,0.5);
}

/* Contact form */
html[data-theme="light"] .contact-form-container {
    background: rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.1);
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea {
    background: #f8f9ff;
    border-color: rgba(102,126,234,0.25);
    color: var(--txt-primary);
}

html[data-theme="light"] .form-group input::placeholder,
html[data-theme="light"] .form-group textarea::placeholder {
    color: #9090b0;
}

/* Social links */
html[data-theme="light"] .social-link {
    background: rgba(102,126,234,0.08);
    border-color: rgba(102,126,234,0.2);
}

/* Quote modal inputs */
html[data-theme="light"] .quote-form-group input,
html[data-theme="light"] .quote-form-group textarea {
    background: #f0f4ff;
    border-color: rgba(102,126,234,0.25);
}

html[data-theme="light"] .quote-chat-messages {
    background: #f4f6ff;
}

html[data-theme="light"] .qmsg.bot .qmsg-bubble {
    background: rgba(102,126,234,0.12);
    color: var(--txt-primary);
}

html[data-theme="light"] .qmsg.user .qmsg-bubble {
    color: #fff;
}

/* Quote chat input area */
html[data-theme="light"] .quote-chat-input-row input {
    background: #f0f4ff;
    border-color: rgba(102,126,234,0.2);
    color: var(--txt-primary);
}

/* Tech section nodes */
html[data-theme="light"] .tech-node {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(102,126,234,0.2);
    color: var(--txt-primary);
}

html[data-theme="light"] .tech-node:hover {
    background: rgba(102,126,234,0.1);
}

/* Footer links */
html[data-theme="light"] .footer-links a {
    color: var(--txt-secondary);
}

html[data-theme="light"] .footer-links a:hover {
    color: var(--neon-blue);
}

html[data-theme="light"] .footer-description {
    color: var(--txt-secondary);
}

/* Nav mobile menu background */
@media (max-width: 768px) {
    html[data-theme="light"] .nav-menu {
        background: rgba(240,244,255,0.98);
    }

    html[data-theme="light"] .nav-menu .nav-link {
        color: var(--txt-primary);
    }
}

/* ============================================================
   WEB PACKAGES SECTION
   ============================================================ */
.web-packages {
    padding: 100px 0;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.web-packages::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.web-packages::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Grid */
.web-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
    align-items: stretch;
}

/* Card */
.web-package-card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.web-package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.3);
}

.web-package-card.featured-package {
    border-color: rgba(0, 242, 254, 0.4);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.1);
    transform: scale(1.02);
}

.web-package-card.featured-package:hover {
    transform: scale(1.02) translateY(-8px);
}

/* Popular badge */
.package-popular-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--primary-gradient);
    color: #030014;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header */
.package-header {
    padding: 36px 28px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}

.package-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(0,242,254,0.15) 0%, rgba(118,75,162,0.15) 100%);
    border: 1px solid rgba(0,242,254,0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--neon-blue);
}

.package-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.package-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.package-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.package-price .price-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.package-price .price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.package-price .price-period {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Body */
.package-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
}

/* Feature list */
.package-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.feature-included {
    color: var(--text-primary);
}

.feature-included i {
    color: #39ff14;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-excluded {
    color: rgba(176, 176, 209, 0.45);
}

.feature-excluded i {
    color: rgba(176, 176, 209, 0.3);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Price clarification note */
.package-price-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    text-align: center;
    margin: 4px 0 0;
    letter-spacing: 0.02em;
}

html[data-theme="light"] .package-price-note {
    color: rgba(0,0,0,0.4);
}

/* Note */
.package-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: auto;
}

.package-note i {
    color: var(--neon-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-note {
    background: rgba(0, 242, 254, 0.06);
    border-color: rgba(0, 242, 254, 0.2);
    color: var(--text-primary);
}

.highlight-note i {
    color: #ffd700;
}

/* CTA Button */
.pkg-btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

/* CTA Banner */
.packages-cta {
    margin-top: 56px;
    background: linear-gradient(135deg, rgba(0,242,254,0.08) 0%, rgba(118,75,162,0.1) 100%);
    border: 1px solid rgba(0,242,254,0.2);
    border-radius: 20px;
    padding: 36px 40px;
}

.packages-cta-content {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.cta-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #030014;
    flex-shrink: 0;
}

.cta-text {
    flex: 1;
    min-width: 200px;
}

.cta-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cta-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cta-text strong {
    color: var(--neon-blue);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .web-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .web-package-card.featured-package {
        transform: none;
        grid-column: span 2;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .web-package-card.featured-package:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 640px) {
    .web-packages-grid {
        grid-template-columns: 1fr;
    }

    .web-package-card.featured-package {
        grid-column: span 1;
        max-width: none;
    }

    .packages-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .packages-cta {
        padding: 28px 20px;
    }

    .cta-icon {
        margin: 0 auto;
    }
}

/* Light theme overrides */
html[data-theme="light"] .web-package-card {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.08);
}

html[data-theme="light"] .web-package-card:hover {
    border-color: rgba(79,172,254,0.5);
}

html[data-theme="light"] .web-package-card.featured-package {
    background: rgba(0,242,254,0.05);
    border-color: rgba(0,242,254,0.35);
}

html[data-theme="light"] .package-note {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.07);
}

html[data-theme="light"] .packages-cta {
    background: linear-gradient(135deg, rgba(0,242,254,0.06) 0%, rgba(118,75,162,0.06) 100%);
}

/* ============================================================
   GOOGLE MY BUSINESS — ELEMENTOS DE CONTACTO
   ============================================================ */

/* Ícono Google en el método de contacto */
.method-icon-google {
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc04, #ea4335) !important;
    border-color: transparent !important;
}

.gmb-profile-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    transition: opacity 0.2s ease;
}

.gmb-profile-link:hover {
    opacity: 0.85;
}

/* ── Bloque CTA de reseña ─────────────────────────────────── */
.gmb-review-cta {
    margin-top: 28px;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(66,133,244,0.08) 0%, rgba(52,168,83,0.06) 100%);
    border: 1px solid rgba(66,133,244,0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gmb-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gmb-stars {
    display: flex;
    gap: 3px;
}

.gmb-stars i {
    color: #fbbc04;
    font-size: 0.95rem;
}

.gmb-rating-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.gmb-review-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.gmb-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #333;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    width: fit-content;
}

.gmb-review-btn i {
    color: #4285f4;
}

.gmb-review-btn:hover {
    box-shadow: 0 4px 16px rgba(66,133,244,0.25);
    transform: translateY(-2px);
}

/* ── Mapa de Google (sección embed) ──────────────────────── */
.contact-map {
    margin-top: 48px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    flex-wrap: wrap;
}

.map-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(66,133,244,0.15), rgba(52,168,83,0.1));
    border: 1px solid rgba(66,133,244,0.25);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4285f4;
    margin-bottom: 8px;
    width: fit-content;
}

.map-badge i {
    font-size: 0.82rem;
}

.map-header-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.map-header-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.map-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.map-btn {
    font-size: 0.85rem;
    padding: 10px 18px;
    white-space: nowrap;
}

.map-embed-wrapper {
    line-height: 0; /* elimina espacio extra bajo el iframe */
    border-top: 1px solid rgba(255,255,255,0.06);
}

.map-embed-wrapper iframe {
    display: block;
    width: 100%;
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.3s ease;
}

.map-embed-wrapper:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* Responsive */
@media (max-width: 640px) {
    .map-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
    }

    .map-actions {
        width: 100%;
    }

    .map-btn {
        flex: 1;
        justify-content: center;
    }

    .gmb-review-cta {
        padding: 16px;
    }
}

/* Light theme */
html[data-theme="light"] .contact-map {
    border-color: rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.8);
}

html[data-theme="light"] .map-embed-wrapper {
    border-top-color: rgba(0,0,0,0.06);
}

html[data-theme="light"] .gmb-review-cta {
    background: linear-gradient(135deg, rgba(66,133,244,0.06) 0%, rgba(52,168,83,0.04) 100%);
}

html[data-theme="light"] .gmb-review-btn {
    background: #fff;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

html[data-theme="light"] .gmb-review-btn:hover {
    box-shadow: 0 4px 16px rgba(66,133,244,0.2);
}
