@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');
@import url('https://fonts.cdnfonts.com/css/stretch-pro');

:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;

    /* New Lime Green Palette */
    --accent-primary: #bef32c;
    --accent-glow: rgba(190, 243, 44, 0.4);
    --accent-dim: rgba(190, 243, 44, 0.1);

    --font-main: 'Stretch Pro', sans-serif;
    --container-width: 1100px;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    background-color: var(--bg-dark);
    font-size: 80%;
    /* Adjusted from 95% to scale desktop down by 15% */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    /* Main background gradient only */
    background: radial-gradient(circle at 50% 0%, #111111 0%, #050505 80%);
    background-attachment: fixed;
    position: relative;
    z-index: 0;
    /* Creates an explicit stacking context */
}

/* Background Pattern - Right Side Only */
/* Background Pattern (Floating) */
#floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    /* Bring it forward but still behind content that has higher z-index (header has 100, text handles own z) */
    overflow: hidden;
    pointer-events: none;
}

.floating-symbol {
    position: absolute;
    color: var(--accent-primary);
    font-family: monospace;
    font-weight: bold;
    font-size: 1.3rem;
    opacity: 0;
    /* Hidden by default for fade-in */
    user-select: none;
    /* Remove default animation, handled by JS random duration */
    text-shadow: 0 0 10px var(--accent-dim);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
        /* Increased from 0.4 */
    }

    90% {
        opacity: 0.5;
        /* Increased from 0.4 */
    }

    100% {
        transform: translateY(-100vh) translateX(50px) rotate(20deg);
        opacity: 0;
    }
}

.falling-symbol {
    position: fixed;
    /* Keep them relative to the viewport so they are always visible */
    color: var(--accent-primary);
    font-family: monospace;
    font-weight: bold;
    opacity: 0;
    user-select: none;
    text-shadow: 0 0 15px var(--accent-primary);
    /* Much brighter glow */
    animation: fallDown infinite linear;
    top: -10vh;
    /* Start above viewport */
    z-index: 5;
    /* Ensure they sit between background (0) and content (20) */
    pointer-events: none;
    /* Make sure they don't block clicks */
}

@keyframes fallDown {
    0% {
        transform: translateY(0) rotate(-10deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
        /* Reduced from 0.6 */
    }

    85% {
        opacity: 0.5;
        /* Reduced from 0.6 */
    }

    100% {
        transform: translateY(120vh) rotate(20deg);
        /* Fall past bottom */
        opacity: 0;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    /* Reduced from 3rem */
    /* Massive Zafiro style */
    margin-bottom: 1.2rem;
}

h1 span {
    color: var(--accent-primary);
    display: block;
    text-shadow: 0 0 20px var(--accent-glow);
}

p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    /* Reduced from 0.85rem */
    line-height: 1.6;
    font-family: 'Courier New', Courier, monospace;
    /* Applied as requested */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
header {
    width: 100%;
    padding: 1.5rem 0;
    position: fixed;
    /* Make it stick to top */
    top: 0;
    left: 0;
    z-index: 100;
    background: radial-gradient(circle at 70% 50%, rgba(190, 243, 44, 0.15) 0%, rgba(5, 5, 5, 0.8) 50%, rgba(5, 5, 5, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    /* Reduced from 1.1rem */
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--accent-primary), 0 0 30px var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 600;
    font-size: 0.7rem;
    /* Reduced from 0.75rem */
    text-transform: uppercase;
    align-items: center;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.btn-cta {
    background-color: var(--accent-primary);
    /* Solid color instead of red */
    color: #000;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    /* Reduced from 0.75rem */
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-2px);
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 25px var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    /* Space for header */
    position: relative;
    z-index: 20;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Layout Left: Text */
.hero-text {
    z-index: 10;
}

.subheadline {
    margin-bottom: 3rem;
    max-width: 500px;
}

/* Stats / Features Row */
.features-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-pill {
    background: #111;
    border: 1px solid #222;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 160px;
}

.feature-icon {
    background: #1a1a1a;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    /* Green icon */
    font-size: 1.1rem;
}

.feature-text h4 {
    font-size: 0.75rem;
    /* Reduced from 0.9rem */
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.2rem;
}

.feature-text span {
    font-size: 0.65rem;
    /* Reduced from 0.8rem */
    color: #666;
}

.btn-hero {
    background: linear-gradient(90deg, #ff004c 0%, #ff4b2b 100%);
    /* Wait, user wanted green? Keeping structure but changing color */
    background: linear-gradient(90deg, var(--accent-primary) 0%, #00b35f 100%);
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    /* Reduced from 0.8rem */
    text-transform: uppercase;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    box-shadow: 0 0 40px var(--accent-primary);
    transform: scale(1.05);
}

/* Layout Right: Visual */
.hero-visual {
    position: relative;
    aspect-ratio: 9 / 16;
    max-height: 550px;
    width: 100%;
    max-width: 310px;
    background: #000;
    border-radius: 20px;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Volume Toggle Button */
.volume-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.volume-toggle-btn i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.volume-toggle-btn:hover {
    background: rgba(190, 243, 44, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.volume-toggle-btn:active {
    transform: scale(0.95);
}

.volume-toggle-btn.unmuted {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Pulsing hint for audio on load */
.volume-toggle-btn::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 1px solid var(--accent-primary);
    opacity: 0;
    animation: pulseVolumeBtn 2s infinite;
    pointer-events: none;
}

@keyframes pulseVolumeBtn {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* The "Green Line" effect - mimicking the red line in Zafiro */
.visual-glow-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--accent-primary);
    box-shadow: 0 0 50px 5px var(--accent-primary);
    animation: pulseLine 3s infinite;
}

.visual-content {
    z-index: 2;
    position: relative;
    /* Simulate the silhouette figure or content */
    width: 100px;
    height: 200px;
    background: #000;
    opacity: 0.8;
}

.visual-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: #0d0d0d;
    border: 1px solid #222;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    color: #ff3333;
    /* The robot icon might still be red or stick to green? sticking to green for consistency unless specified */
    color: var(--accent-primary);
    font-size: 1.3rem;
}

@keyframes pulseLine {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 20px 2px var(--accent-primary);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 60px 10px var(--accent-primary);
    }

    100% {
        opacity: 0.5;
        box-shadow: 0 0 20px 2px var(--accent-primary);
    }
}




/* Sections General */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 1;
}

/* The red/green underline effect */
.section-underline {
    width: 100px;
    height: 4px;
    background: var(--accent-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Split Layout (Reference Style) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split-content .pill-label {
    display: inline-block;
    border: 1px solid var(--accent-dim);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    color: var(--accent-primary);
    background: rgba(190, 243, 44, 0.05);
    font-weight: 600;
    font-size: 0.75rem;
    /* Reduced from 0.9rem */
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.split-content h3 {
    font-size: 1.8rem;
    /* Reduced from 2rem */
    margin-bottom: 1.2rem;
    color: #fff;
}

.split-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Check list style */
.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #ddd;
}

.check-item i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

/* Visual Container (Right side) */
.split-visual {
    background: linear-gradient(135deg, #0a0a0a 0%, #050505 100%);
    border: 1px solid #1a1a1a;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(190, 243, 44, 0.05) 0%, transparent 60%);
    z-index: 1;
}

.split-visual img,
.split-visual i {
    z-index: 2;
    max-width: 100%;
}



/* Sections General */
section {
    padding: 4rem 0;
    position: relative;
    /* Enables z-index stacking */
    z-index: 20;
    /* Places sections above the falling symbols container */
}

.section-title {
    font-size: 1.8rem;
    /* Reduced from 2rem */
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
}

.section-title span {
    color: var(--accent-primary);
}

/* Que Hacemos */
.que-hacemos-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.que-hacemos-text {
    font-size: 1rem;
    /* Reduced from 1.5rem */
    color: var(--text-secondary);
}

/* Servicios Grid */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.servicio-card {
    background: var(--bg-card);
    border: 1px solid #222;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.servicio-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--accent-glow), inset 0 0 20px rgba(190, 243, 44, 0.1);
}

.servicio-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1.2rem;
}

.servicio-card h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    /* Reduced from 1.1rem */
}

/* Contacto & Socials */
.contacto-container {
    text-align: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.8rem;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.7) 0%, rgba(5, 5, 5, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 170px;
    position: relative;
    overflow: hidden;
}

.social-card i {
    font-size: 1.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.social-card span {
    transition: all 0.3s ease;
}

/* Subtle corner accent indicator on cards */
.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: all 0.3s ease;
}

/* WhatsApp Hover */
.social-card.wa-card:hover {
    color: #25d366;
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.05);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.35);
    transform: translateY(-5px) scale(1.03);
}

.social-card.wa-card:hover i {
    color: #25d366;
    transform: rotate(10deg) scale(1.1);
}

.social-card.wa-card:hover::before {
    background: #25d366;
}

/* Instagram Hover */
.social-card.ig-card:hover {
    color: #e1306c;
    border-color: #e1306c;
    background: rgba(225, 48, 108, 0.05);
    box-shadow: 0 0 25px rgba(225, 48, 108, 0.35);
    transform: translateY(-5px) scale(1.03);
}

.social-card.ig-card:hover i {
    color: #e1306c;
    transform: rotate(-10deg) scale(1.1);
}

.social-card.ig-card:hover::before {
    background: #e1306c;
}

/* TikTok Hover */
.social-card.tt-card:hover {
    color: #00f2ea;
    border-color: #ff0050;
    background: rgba(0, 242, 234, 0.05);
    box-shadow: -5px -5px 15px rgba(0, 242, 234, 0.25), 5px 5px 15px rgba(255, 0, 80, 0.25);
    transform: translateY(-5px) scale(1.03);
}

.social-card.tt-card:hover i {
    color: #00f2ea;
    text-shadow: -2px 0 0 #ff0050, 2px 0 0 #00f2ea;
    transform: scale(1.1);
}

.social-card.tt-card:hover::before {
    background: #00f2ea;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #050505;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

/* Preloader Background */
#preloader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;

    /* Entrance State */
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: contentEnter 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.1s;
}

@keyframes contentEnter {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.loader-icon {
    font-size: 2.5rem;
    /* Reduced from 5rem */
    font-weight: 800;
    color: var(--accent-primary);
    font-family: monospace;
    margin-bottom: 1rem;
    /* animation removed */
    text-shadow: 0 0 20px var(--accent-primary), 0 0 50px var(--accent-glow);
}

.loader-bar {
    width: 120px;
    height: 8px;
    background: #222;
    border-radius: 4px;
    margin: 0 auto 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(190, 243, 44, 0.5);
    /* Stronger container glow */
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--accent-primary);
    position: absolute;
    left: 0;
    top: 0;
    box-shadow: 0 0 30px var(--accent-primary), 0 0 50px var(--accent-glow);
    /* Intense progress glow */
    animation: loadProgress 1.9s ease-in-out forwards;
    animation-delay: 1s;
    /* Waits for entrance to finish */
}

.loader-content p {
    font-size: 0.65rem;
    /* Reduced from 0.8rem */
    color: #666;
    letter-spacing: 2px;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

@keyframes loadProgress {
    0% {
        width: 0%;
        left: 0;
    }

    100% {
        width: 100%;
        left: 0;
    }
}

/* Entry Animation */
body>header,
body>section,
body>footer {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
    /* Delay to start after preloader fade */
}

body.loaded>header,
body.loaded>section,
body.loaded>footer {
    opacity: 1;
    transform: translateY(0);
}

/* Utilities */
.menu-toggle {
    display: none;
}

/* Quienes Somos */
.team-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
}

.team-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.team-card {
    background: transparent;
    /* Removed card background for cleaner look as per "picture frame" vibe */
    border: none;
    padding: 0;
    text-align: center;
    border-radius: 16px;
    transition: all 0.3s ease;
    width: 220px;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-photo-placeholder {
    width: 220px;
    height: 300px;
    background: #050505;
    /* Dark background inside frame */
    border: 3px solid var(--accent-primary);
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(190, 243, 44, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Remove the complex pseudo-element border to keep it a simple single line */
.team-photo-placeholder::after {
    display: none;
}

.team-card:hover .team-photo-placeholder {
    box-shadow: 0 0 40px rgba(190, 243, 44, 0.8);
    border-color: #fff;
    color: #fff;
    transform: scale(1.02);
}



.team-card h3 {
    font-family: var(--font-main);
    /* Stretch Pro */
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: none;
    letter-spacing: 1px;
}

.team-card p {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 600;
}




.paquetes-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.4rem;
    /* Reduced from 3rem */
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.paquete-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(5, 5, 5, 0.9) 100%);
    border: 1px solid #222;
    padding: 2.5rem 1.8rem;
    /* Reduced ~20% */
    border-radius: 16px;
    /* Reduced from 20px */
    max-width: 290px;
    /* Reduced ~20% from 360px */
    width: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-variant-ligatures: none !important;
    font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "hlig" 0 !important;
    letter-spacing: 0.05rem;
    /* Slight increase to separate double letters */
}

/* Green Variant (Package 2) */
.paquete-verde {
    background: linear-gradient(180deg, rgba(30, 40, 20, 0.6) 0%, rgba(5, 15, 5, 0.8) 100%);
    border-color: rgba(190, 243, 243, 44, 0.2);
}

/* Lime green highlight for Pro Web plan - matching brand theme */
.paquete-pro {
    background: linear-gradient(180deg, rgba(40, 50, 20, 0.6) 0%, rgba(5, 10, 5, 0.8) 100%) !important;
    border-color: rgba(190, 243, 44, 0.4) !important;
    box-shadow: 0 10px 40px rgba(190, 243, 44, 0.1) !important;
}

.paquete-pro:hover {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 15px 50px rgba(190, 243, 44, 0.4), inset 0 0 20px rgba(190, 243, 44, 0.1) !important;
}

@media (min-width: 901px) {

    #sitios-web .paquetes-grid,
    #soporte-web .paquetes-grid {
        flex-wrap: nowrap !important;
        gap: 1.2rem !important;
        /* Reduced from 1.5rem */
        justify-content: center;
        width: 100%;
    }

    #sitios-web .paquete-card,
    #soporte-web .paquete-card {
        max-width: none !important;
        flex: 1 1 33% !important;
        min-width: 0 !important;
        padding: 1.2rem !important;
        /* Reduced from 1.5rem */
    }

    #sitios-web .paquete-logo,
    #soporte-web .paquete-logo {
        margin-bottom: 1rem !important;
        /* Reduced from 1.5rem */
    }

    #sitios-web .paquete-title,
    #soporte-web .paquete-title {
        font-size: 1rem !important;
        /* Reduced from 1.2rem */
        margin-bottom: 1rem !important;
        /* Reduced from 1.5rem */
    }

    #sitios-web .price-value,
    #soporte-web .price-value {
        font-size: 2.4rem !important;
        /* Reduced from 3rem */
    }

    #sitios-web .paquete-price-section,
    #soporte-web .paquete-price-section {
        margin-bottom: 1.2rem !important;
        /* Reduced from 1.5rem */
        padding-bottom: 0.8rem !important;
        /* Reduced from 1rem */
    }

    #sitios-web .feat-block,
    #soporte-web .feat-block {
        gap: 0.6rem !important;
        /* Reduced from 0.8rem */
    }

    #sitios-web .feat-block i,
    #soporte-web .feat-block i {
        font-size: 1.1rem !important;
        /* Reduced from 1.4rem */
        width: 25px !important;
        /* Reduced from 30px */
    }

    #sitios-web .feat-block .block-text,
    #soporte-web .feat-block .block-text {
        font-size: 0.7rem !important;
        /* Reduced from 0.85rem */
    }
}

.paquete-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(190, 243, 44, 0.6), inset 0 0 20px rgba(190, 243, 44, 0.2);
    transform: scale(1.03) translateY(-10px);
    z-index: 10;
}

/* Block style features for Package 2 */
.list-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem !important;
    margin-bottom: 2.5rem;
}

.feat-block {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: #fff;
    padding: 0;
    border-radius: 0;
    font-weight: 600;
}

.feat-block i {
    font-size: 1.8rem;
    color: var(--accent-primary);
    width: 35px;
    text-align: center;
}

.feat-block .block-text {
    line-height: 1.3;
    font-size: 0.85rem;
    font-family: var(--font-main);
    color: #fff;
}


/* New Image-Based Glitch only on texts running every 2s */
.paquete-card:hover .paquete-logo,
.paquete-card:hover .paquete-title,
.paquete-card:hover .paquete-subtitle,
.paquete-card:hover .price-value,
.paquete-card:hover .price-desde,
.paquete-card:hover .price-calidad,
.paquete-card:hover .feat-item,
.servicio-card:hover h3,
.servicio-card:hover p,
.servicio-card:hover .servicio-icon {
    animation: text-block-glitch 2s infinite alternate;
}

/* Stagger animations slightly so the cuadritos happen differently on elements */
.servicio-card:hover .servicio-icon {
    animation-delay: 0.1s;
}

.servicio-card:hover h3 {
    animation-delay: 0.3s;
}

.servicio-card:hover p {
    animation-delay: 0.5s;
}

.paquete-card:hover .paquete-title {
    animation-delay: 0.2s;
}

.paquete-card:hover .price-value {
    animation-delay: 0.3s;
}

.paquete-card:hover .feat-item {
    animation-delay: 0.4s;
}

@keyframes text-block-glitch {

    /* 0% to 50% totally normal (1 full second of waiting now) */
    0%,
    50%,
    100% {
        transform: translate(0, 0);
        text-shadow: none;
        clip-path: none;
    }

    /* Top fragment: Cyan thick left, Magenta right */
    52% {
        transform: translate(0, 0);
        /* Keep it centered, stretch with shadow */
        text-shadow:
            -15px 0 0 rgba(0, 255, 255, 1),
            15px 0 0 rgba(255, 0, 255, 1);
        clip-path: inset(5% 0 85% 0);
    }

    /* Upper-mid fragment: Yellow far left, Magenta right */
    54% {
        transform: translate(0, 0);
        text-shadow:
            -25px 0 0 rgba(255, 255, 0, 1),
            -5px 0 0 rgba(0, 255, 255, 1),
            25px 0 0 rgba(255, 0, 255, 1);
        clip-path: inset(25% 0 65% 0);
    }

    /* Center fragment: Yellow left, Magenta right */
    56% {
        transform: translate(0, 0);
        text-shadow:
            -15px 0 0 rgba(255, 255, 0, 1),
            15px 0 0 rgba(255, 0, 255, 1);
        clip-path: inset(55% 0 35% 0);
    }

    /* Lower-mid fragment: Intense Cyan left, Magenta right */
    58% {
        transform: translate(0, 0);
        text-shadow:
            -30px 0 0 rgba(0, 255, 255, 1),
            30px 0 0 rgba(255, 0, 255, 1);
        clip-path: inset(65% 0 15% 0);
    }

    /* Bottom edge fragment: Yellow thick left, Magenta thick right */
    59% {
        transform: translate(0, 0);
        text-shadow:
            -20px 0 0 rgba(255, 255, 0, 1),
            20px 0 0 rgba(255, 0, 255, 1);
        clip-path: inset(85% 0 0 0);
    }

    61% {
        transform: translate(0, 0);
        text-shadow: none;
        clip-path: none;
    }
}

.paquete-logo {
    margin-bottom: 2rem;
}

.paquete-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-transform: none;
    font-family: var(--font-main);
}

.paquete-subtitle {
    color: var(--accent-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.paquete-price-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1.5rem;
}

.price-desde {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: -5px;
}

.price-value {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.price-calidad {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 800;
    line-height: 1.2;
}

.price-calidad span {
    font-size: 1.8rem;
    color: #fff;
}

.paquete-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.paquete-features .feat-item {
    color: #ccc;
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.4;
}

.paquete-footer-text {
    font-family: var(--font-main);
    font-size: 0.7rem;
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
    margin-top: auto;
}

.btn-paquete {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Mobile Navigation Dock (Hidden on Desktop) */
.mobile-nav-dock {
    display: none;
}

/* Media Queries */

@media (max-width: 900px) {
    :root {
        font-size: 80%;
    }



    .menu-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(5, 5, 5, 0.7) !important;
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 7rem 2.5rem 3rem 2.5rem;
        gap: 0.8rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 150;
        border-left: 2px solid var(--accent-primary);
        box-shadow: -10px 0 30px rgba(190, 243, 44, 0.15);
    }

    .nav-links::before {
        content: "MENU >_";
        font-family: var(--font-main);
        font-weight: 800;
        font-size: 1rem;
        color: #fff;
        margin-bottom: 1.5rem;
        letter-spacing: 2px;
        text-shadow: 0 0 10px var(--accent-glow);
        border-bottom: 2px solid var(--accent-primary);
        width: 100%;
        padding-bottom: 0.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 0.8rem !important;
        width: 100%;
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        letter-spacing: 1px;
    }

    .nav-links a:hover,
    .nav-links a:active {
        color: var(--accent-primary);
        padding-left: 8px;
        border-bottom-color: rgba(190, 243, 44, 0.3);
        text-shadow: 0 0 10px var(--accent-glow);
    }

    /* Terminal Numeric Prefixes */
    .nav-links a::before {
        font-family: monospace;
        font-weight: bold;
        color: var(--accent-primary);
        margin-right: 0.6rem;
        opacity: 0.8;
    }

    .nav-links a:nth-child(1)::before { content: "01 //"; }
    .nav-links a:nth-child(2)::before { content: "02 //"; }
    .nav-links a:nth-child(3)::before { content: "03 //"; }
    .nav-links a:nth-child(4)::before { content: "04 //"; }
    .nav-links a:nth-child(5)::before { content: "05 //"; }

    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    h1 {
        font-size: 2rem;
    }

    .subheadline {
        margin: 0 auto 2rem;
    }

    .features-row {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .feature-pill {
        width: 100%;
        max-width: 300px;
    }

    .hero-visual {
        max-height: 450px;
        width: 100%;
        max-width: 253px;
        order: 2;
        margin: 0 auto;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split-visual {
        order: 2;
        min-height: 250px;
        margin-top: 1rem;
    }

    .split-content h3 {
        font-size: 1.6rem;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    /* Mobile Packages Carousel */
    .paquetes-grid {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding-left: 12.5vw !important;
        padding-right: 12.5vw !important;
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
        gap: 1.5rem !important;
        justify-content: flex-start !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .paquetes-grid::-webkit-scrollbar {
        display: none;
    }

    .paquetes-grid .paquete-card {
        flex: 0 0 75vw !important;
        max-width: none !important;
        scroll-snap-align: center;
        margin-bottom: 1rem;
    }

    /* Mobile Team Carousel */
    .team-layout {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding-left: 12.5vw !important;
        padding-right: 12.5vw !important;
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
        gap: 1.5rem !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
        margin-top: 3rem;
    }

    .team-layout::-webkit-scrollbar {
        display: none;
    }

    .team-row {
        display: contents !important;
    }

    .team-card {
        flex: 0 0 75vw !important;
        max-width: none !important;
        scroll-snap-align: center;
        margin-bottom: 1rem;
        width: 75vw !important;
    }

    /* Mobile Services Carousel */
    .servicios-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding-left: 12.5vw !important;
        padding-right: 12.5vw !important;
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
        gap: 1.5rem !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .servicios-grid::-webkit-scrollbar {
        display: none;
    }

    .servicios-grid .servicio-card {
        flex: 0 0 75vw !important;
        max-width: none !important;
        scroll-snap-align: center;
        margin-bottom: 1rem;
        width: 75vw !important;
    }

    /* Mobile Navigation Dock */
    .mobile-nav-dock {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translate(-50%, 100px);
        width: 90%;
        max-width: 420px;
        height: 65px;
        background: rgba(10, 10, 10, 0.75);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1.5px solid rgba(255, 255, 255, 0.08);
        border-radius: 50px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 1rem;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 
                    inset 0 0 15px rgba(255, 255, 255, 0.02),
                    0 0 20px rgba(190, 243, 44, 0.05);
        opacity: 0;
        transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body.loaded .mobile-nav-dock {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        text-decoration: none;
        font-family: 'Courier New', monospace;
        font-size: 0.6rem;
        font-weight: bold;
        gap: 4px;
        flex: 1;
        height: 100%;
        transition: all 0.3s ease;
    }

    .dock-item i {
        font-size: 1.2rem;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
        color: rgba(255, 255, 255, 0.8);
    }

    .dock-item span {
        transition: color 0.3s ease;
    }

    .dock-item:hover,
    .dock-item:active {
        color: var(--accent-primary);
    }

    .dock-item:hover i,
    .dock-item:active i {
        color: var(--accent-primary);
        transform: scale(1.15) translateY(-2px);
    }

    /* WhatsApp Special Tab */
    .dock-whatsapp {
        position: relative;
    }

    .dock-whatsapp i {
        color: #25d366;
        text-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
    }

    .dock-whatsapp:hover i,
    .dock-whatsapp:active i {
        color: #25d366;
        transform: scale(1.2) translateY(-4px);
    }

    /* Extra padding for footer so content doesn't get hidden behind dock */
    footer {
        padding-bottom: 7rem !important;
    }
}

@media (max-width: 768px) {

    h1 {
        font-size: 2rem;
    }

    .loader-icon {
        font-size: 2rem;
    }

    .loader-bar {
        width: 100px;
    }

    header {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .btn-cta {
        display: none;
    }

    .logo {
        font-size: 0.9rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .hero {
        padding-top: 100px;
    }
}
