/* ===== VARIABLES CSS (Ryōcode Theme) ===== */
:root {
    /* Colores principales - Paleta Cyberpunk Red/Black */
    --color-primary: #e60000;
    --color-primary-dark: #b30000;
    --color-primary-light: #ff3333;
    --color-secondary: #ffffff;
    --color-accent: #00f3ff;
    /* Un toque de cian para contraste tech */

    /* Colores de fondo */
    --color-bg-primary: #050505;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #111111;
    --color-bg-dark: #000000;
    --color-bg-card: rgba(20, 20, 20, 0.95);

    /* Colores de texto */
    --color-text-primary: #ffffff;
    --color-text-secondary: #e0e0e0;
    --color-text-muted: #888888;
    --color-text-light: #ffffff;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #e60000 0%, #ff1a1a 100%);
    --gradient-secondary: linear-gradient(135deg, #333 0%, #555 100%);
    --gradient-hero: linear-gradient(180deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 1) 100%);

    /* Sombras (Glow Effects) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 10px 40px rgba(230, 0, 0, 0.2);
    /* Red Glow */
    --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 10px var(--color-primary);

    /* Tipografía */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-family: var(--font-body);
    /* Default */

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1.1rem;
    /* Un poco más grande para mejor lectura */
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --font-size-6xl: 4.5rem;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;
    --spacing-3xl: 8rem;

    /* Bordes */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    --border-radius-full: 9999px;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index */
    --z-header: 100;
    --z-modal: 200;
    --z-tooltip: 300;

    /* Contenedor */
    --container-max: 1280px;
    --container-padding: 1.5rem;

    /* Header height */
    --header-height: 5rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(230, 0, 0, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.03), transparent 25%);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ===== UTILIDADES ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--spacing-2xl) 0;
}

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

.section__subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 5px rgba(230, 0, 0, 0.5);
}

.section__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

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

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: 700;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn--primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.4);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(230, 0, 0, 0.7);
}

.btn--secondary {
    background: var(--color-bg-card);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn--secondary:hover {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 15px var(--color-primary);
}

.btn--outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(230, 0, 0, 0.3);
}

.btn--full {
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(230, 0, 0, 0.2);
    z-index: var(--z-header);
    transition: all var(--transition-normal);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav__logo-img {
    height: 40px;
    /* Adjust height to fit header */
    width: auto;
    object-fit: contain;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav__link {
    position: relative;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    /* Ajustado */
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 5px var(--color-primary);
    transition: width var(--transition-normal);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-primary);
    text-shadow: 0 0 5px var(--color-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.nav__toggle:hover,
.nav__close:hover {
    color: var(--color-primary);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* User requested logo as background */
    background: url('ryocode.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    /* Parallax effect for premium feel */
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    /* Adjusted opacity to make the logo visible but text readable */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(5, 5, 5, 0.95) 100%);
    z-index: 1;
}

/* Efecto de 'blobs' o luces de fondo estilo Ryocode */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
}

.hero__container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: var(--header-height);
}

.hero__badge {
    display: inline-block;
    background: rgba(230, 0, 0, 0.1);
    border: 1px solid var(--color-primary);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(230, 0, 0, 0.2);
}

.hero__logo-main {
    width: 250px;
    /* Increased from 180px */
    max-width: 90%;
    margin: 0 auto 2.5rem;
    display: block;
    filter: drop-shadow(0 0 30px rgba(230, 0, 0, 0.7));
    /* Stronger glow */
    animation: fadeInDown 0.8s ease backwards;
}

@media screen and (min-width: 768px) {
    .hero__logo-main {
        width: 450px;
        /* Increased from 280px */
    }
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-6xl);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.hero__title .highlight {
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary);
}

.hero__subtitle {
    font-size: var(--font-size-2xl);
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.hero__description {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: var(--font-size-xs);
    z-index: 2;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* ===== ESTADÍSTICAS RÁPIDAS ===== */
.quick-stats {
    background: var(--color-bg-tertiary);
    /* Dark gray background */
    padding: var(--spacing-xl) 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    display: block;
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary);
}

.stat-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: white;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-left: 2px;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== NODES BACKGROUND CANVAS ===== */
#bg-nodes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* ===== SECCIONES GENERALE (Welcome, Services) ===== */
.welcome__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.welcome__text {
    /* ... */
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: white;
}

.feature-icon {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.welcome__image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.welcome__logo-img {
    width: 100%;
    max-width: 500px;
    /* Increased from 300px to make it visible bigger */
    height: auto;
    filter: drop-shadow(0 0 15px rgba(230, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.welcome__image-box:hover .welcome__logo-img {
    transform: scale(1.05);
}

/* Servicios Grid */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    /* Red Glow */
}

.service-card__icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--color-primary);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.service-card__description {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    /* More space for the button */
}

/* Service Buttons Special Style */
.btn--service-action {
    margin-top: auto;
    /* Push to bottom if using flex column */
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(90deg, transparent 0%, rgba(230, 0, 0, 0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    transition: all 0.4s ease;
}

.btn--service-action:hover {
    border-color: var(--color-primary);
    background-position: 100% 0;
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.4);
    transform: translateY(-3px);
    letter-spacing: 2px;
}


/* ===== FOOTER ===== */
.footer {
    background: var(--color-bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid #222;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo .logo-text {
    font-size: 1.5rem;
}

.footer__description {
    margin-top: 1rem;
    color: var(--color-text-muted);
}

.footer__title {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer__list li {
    margin-bottom: 0.8rem;
}

.footer__link {
    color: var(--color-text-secondary);
    transition: 0.3s;
}

.footer__link:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE (MOBILE) - CLAVE PARA EL USUARIO ===== */
@media screen and (max-width: 968px) {
    .hero__title {
        font-size: 3.5rem;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .welcome__features {
        max-width: 400px;
        margin: 2rem auto;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {

    /* MENÚ MÓVIL ESTILO CATILLUC (FIXED) */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        padding: 6rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--color-primary);
        transition: 0.4s ease;
        z-index: 200;
        display: flex;
        flex-direction: column;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav__link {
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }

    .nav__toggle {
        display: block;
        z-index: 101;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
        color: var(--color-primary);
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .stats__grid {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
    }
}

/* ===== ANIMATIONS & EXTRAS ===== */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(230, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(230, 0, 0, 0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== SOCIAL SECTION (Home) ===== */
.social-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.social-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
    text-align: center;
}

.social-card i {
    font-size: 3rem;
    color: var(--color-text-muted);
    transition: 0.3s;
}

.social-card span {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
}

.social-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.social-card:hover i {
    color: var(--color-primary);
    filter: drop-shadow(0 0 10px var(--color-primary));
}

.social-card:hover span {
    color: white;
}

/* Custom colors for social cards on hover */
.social-card.instagram:hover { border-color: #e1306c; }
.social-card.instagram:hover i { color: #e1306c; filter: drop-shadow(0 0 10px #e1306c); }

.social-card.linkedin:hover { border-color: #0077b5; }
.social-card.linkedin:hover i { color: #0077b5; filter: drop-shadow(0 0 10px #0077b5); }

.social-card.facebook:hover { border-color: #1877f2; }
.social-card.facebook:hover i { color: #1877f2; filter: drop-shadow(0 0 10px #1877f2); }

.social-card.github:hover { border-color: #ffffff; }
.social-card.github:hover i { color: #ffffff; filter: drop-shadow(0 0 10px #ffffff); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #128c7e;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.8);
    color: white;
}

/* ===== GLITCH EFFECT (404) ===== */
.glitch-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

.glitch {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 900;
    position: relative;
    color: white;
    text-transform: uppercase;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 42px, 0); }
    /* ... more frames simplified ... */
    100% { clip: rect(89px, 9999px, 98px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(10px, 9999px, 85px, 0); }
    100% { clip: rect(60px, 9999px, 15px, 0); }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--color-primary);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-lg);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
    bottom: 30px;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

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

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

/* ===== PORTFOLIO SLIDER (Manual & Auto) ===== */
.portfolio__container-relative {
    position: relative;
    padding: 0 4rem;
}

.portfolio__marquee {
    width: 100%;
    padding: 2rem 0 5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

.portfolio__marquee::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.portfolio__track {
    display: flex;
    gap: 3rem;
    width: max-content;
    /* Animation removed to allow manual control, we will use JS for auto-scroll if needed */
}

.portfolio__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(230, 0, 0, 0.2);
}

.portfolio__arrow:hover {
    background: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.arrow-left { left: 1rem; }
.arrow-right { right: 1rem; }

.portfolio__card {
    width: 350px; 
    flex-shrink: 0;
    background: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== NEURAL FLOW TRANSITION (PRO) ===== */
.portfolio-track-moving {
    filter: blur(4px) brightness(1.2); /* Efecto de velocidad */
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-line-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.data-pulse {
    position: absolute;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: dataTransfer 0.6s ease-out forwards;
}

@keyframes dataTransfer {
    0% { left: -30%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.portfolio__arrow:active {
    transform: translateY(-50%) scale(0.9);
    border-color: var(--color-primary-light);
}

/* ===== TEAM HOLOGRAM EFFECT ===== */
.team-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--color-primary);
    background: linear-gradient(180deg, #050505 0%, #1a0000 100%);
    position: relative;
    overflow: hidden;
}

.team-img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(230, 0, 0, 0.05) 2px,
        rgba(230, 0, 0, 0.05) 4px
    );
    pointer-events: none;
}

.team-card:hover .team-img-placeholder i {
    animation: pulse 1s infinite;
    filter: drop-shadow(0 0 15px var(--color-primary));
}

.footer__bottom a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 5px var(--color-primary);
}

/* ===== GLOBAL FORM STYLES ===== */
.form-container {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form__group {
    margin-bottom: 2rem;
    position: relative;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    color: white;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: 0.3s;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(230, 0, 0, 0.3);
    outline: none;
}

.form__label {
    position: absolute;
    top: -0.7rem;
    left: 1rem;
    background: var(--color-bg-card);
    padding: 0 0.5rem;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Custom CSS Spinner */
.ryo-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(230, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.5);
}

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


/* ===== TECH STACK ===== */
.tech-stack {
    background: rgba(10, 10, 10, 0.5);
    border-top: 1px solid rgba(230, 0, 0, 0.1);
    border-bottom: 1px solid rgba(230, 0, 0, 0.1);
    padding: 3rem 0;
}

.tech-stack__marquee {
    overflow: hidden;
    user-select: none;
    display: flex;
    gap: 4rem;
}

.tech-stack__track {
    display: flex;
    justify-content: space-around;
    gap: 5rem;
    min-width: 100%;
    animation: marquee 30s linear infinite;
}

.tech-stack__track i {
    font-size: 3.5rem;
    color: var(--color-text-muted);
    transition: 0.3s;
    opacity: 0.4;
}

.tech-stack__track i:hover {
    color: var(--color-primary);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(230, 0, 0, 0.5));
}

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

    100% {
        transform: translateX(-100%);
    }
}

/* ===== PORTFOLIO ===== */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.portfolio__card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    animation: cardEntrance 0.8s ease-out backwards;
}

/* Stagger delay for cards (up to 3) */
.portfolio__card:nth-child(1) { animation-delay: 0.1s; }
.portfolio__card:nth-child(2) { animation-delay: 0.3s; }
.portfolio__card:nth-child(3) { animation-delay: 0.5s; }

.portfolio__img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.portfolio__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
}

.portfolio__tag {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio__info {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.portfolio__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: white;
    transition: color 0.3s;
}

.portfolio__text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Hover Effects Portfolio */
.portfolio__card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(230, 0, 0, 0.15), 0 0 15px rgba(230, 0, 0, 0.2); /* Red Glow */
}

.portfolio__card:hover .portfolio__img {
    transform: scale(1.1) rotate(2deg); /* Subtle rotation */
}

.portfolio__card:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__card:hover .portfolio__tag {
    transform: translateY(0);
}

.portfolio__card:hover .portfolio__title {
    color: var(--color-primary);
}

/* Logo Watermark Effect */
.watermark-container {
    position: relative;
    overflow: hidden;
}

.watermark-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 600px;
    opacity: 0.03;
    /* Very subtle */
    pointer-events: none;
    z-index: 0;
    filter: grayscale(100%);
}

/* ===== TESTIMONIOS ===== */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition-normal);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 5rem;
    color: rgba(230, 0, 0, 0.1);
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 0, 0, 0.3);
    box-shadow: var(--shadow-card);
}

.testimonial__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial__img {
    width: 60px;
    height: 60px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    border: 2px solid rgba(230, 0, 0, 0.2);
}

.testimonial__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: white;
}

.testimonial__role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.testimonial__rating {
    margin-left: auto;
    color: #ffb400;
    font-size: 0.9rem;
}

.testimonial__text {
    color: var(--color-text-secondary);
    font-style: italic;
}

/* ===== PRECIOS / PLANES ===== */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center; /* Alinea verticalmente si uno es más alto */
}

.pricing-card {
    background: var(--color-bg-card);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 30px rgba(230, 0, 0, 0.15);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}
.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

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

.pricing__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.pricing__price {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
}

.pricing__price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 5px;
    color: var(--color-primary);
}

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

.pricing__features {
    text-align: left;
    margin-bottom: 2.5rem;
}

.pricing__features li {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pricing__features li i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.pricing__features li.disabled {
    color: var(--color-text-muted);
    opacity: 0.6;
    text-decoration: line-through;
}

.pricing__features li.disabled i {
    color: #555;
}

@media screen and (max-width: 968px) {
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}