/* --- 1. CONFIGURACIÓN Y VARIABLES --- */
:root {
    /* Colores */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;

    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --text-dark: #000000;

    /* El Color Beige solicitado */
    --beige: #e6d8c3;
    --beige-dark: #bfaf94;
    --beige-translucent: rgba(227, 213, 202, 0.1);

    /* Estilos */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    --font-main: "Outfit", sans-serif;
    --font-mono: "Space Mono", monospace;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

::selection {
    background-color: var(--beige-dark);
    color: var(--text-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Efecto de ruido (Noise) para textura */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAAACAgIBAQEAAAAAAAD///8AAAB3QAysAAAACHRSTlMAMwA1MzMzM7O0s14AAABSSURBVDjLY2AYBaNgOANuQA7D/////48JwN0gD+Qz/f//fw4D7oZ/P9n/M8DdwM8E9z8D3A3+fGf/zwB3w7//7P8Z4G7495/9PwPcjYJRMArADQAAaO1BA21Z4wAAAABJRU5ErkJggg==");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* --- UTILIDADES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.text-beige {
    color: var(--beige);
}
.section {
    padding: 120px 0;
}
.bg-darker {
    background: #050505;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
ul {
    list-style: none;
}

/* Botones */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--beige);
    color: var(--text-dark);
    border: 1px solid var(--beige);
}
.btn-primary:hover {
    background: transparent;
    color: var(--beige);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    margin-left: 15px;
}
.btn-outline:hover {
    border-color: var(--beige);
    color: var(--beige);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.nav-desktop .btn-sm {
    background-color: var(--beige-dark);
    color: var(--text-dark);
    padding: 7px 18px;
    border: 1px solid var(--beige);
}

.nav-desktop .btn-sm:hover {
    background-color: transparent;
    color: var(--beige);
}

/* --- HEADER & NAV --- */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    padding: 20px 0;
    transition: var(--transition);
}
#main-header.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.logo .logo-dev {
    color: var(--beige-dark);
}

.logo-guion {
    margin-left: 2px;
    color: var(--text-white);
    animation: blink 1.1s steps(1) infinite;
}

/* Animación tipo cursor */
@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Nav Desktop */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav-desktop ul {
    display: flex;
    gap: 30px;
}
.nav-desktop a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
}
.nav-desktop a:hover {
    color: var(--text-white);
}

/* Hamburguesa Nueva */
.hamburger-wrapper {
    display: none;
}
.hamburger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
    position: relative;
    transition: var(--transition);
}
.line {
    width: 18px;
    height: 2px;
    background: var(--beige);
    transition: var(--transition);
}

/* Estado Activo Hamburguesa */
.hamburger.active {
    border-color: var(--beige);
}

.hamburger.active .line-1 {
    transform: translateY(4px) rotate(45deg);
}
.hamburger.active .line-2 {
    transform: translateY(-4px) rotate(-45deg);
}

/* --- HERO CON GRID --- */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Fondo de Grid CSS */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px
        ),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(
        circle at center,
        black 40%,
        transparent 80%
    );
    z-index: 0;
}
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(227, 213, 202, 0.08) 0%,
        transparent 70%
    );
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--beige-dark);
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--beige);
    border-radius: 50%;
    position: relative;
}

/* Brillo animado */
.pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--beige);
    opacity: 0.6;
    animation: pulseGlow 2.6s ease-out infinite;
}

/* Animación */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 6px var(--beige);
    }
    70% {
        transform: scale(2.4);
        opacity: 0;
        box-shadow: 0 0 20px var(--beige);
    }
    100% {
        opacity: 0;
    }
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

#hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Stats Flotantes */
.hero-stats-floating {
    position: absolute;
    right: 0;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(-50%);
}
.glass-stat {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 16px;
    text-align: left;
    min-width: 140px;
}
.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-family: var(--font-mono);
}

/* --- MENU MÓVIL CLEAN & CENTERED --- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    visibility: visible;
    opacity: 1;
}
.mobile-menu-overlay.active {
    transform: translateY(0%);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Quitamos justify-content: center del padre para usar flex-grow en el nav */
    align-items: center; /* Centrado Horizontalmente */
    text-align: center;
}

.mobile-nav-list {
    flex: 1; /* Ocupa todo el espacio disponible */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra los items verticalmente en ese espacio */
    gap: 25px;
    width: 100%;
}

.mobile-link {
    font-size: 1.4rem; /* Texto más pequeño y elegante */
    font-weight: 500;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;

    opacity: 0;
    transform: translateY(15px);
}
.mobile-link:hover,
.mobile-link:active {
    color: var(--text-white);
}

/* Animación de entrada suave */
.mobile-menu-overlay.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-overlay.active .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}
.mobile-menu-overlay.active .mobile-link:nth-child(2) {
    transition-delay: 0.15s;
}
.mobile-menu-overlay.active .mobile-link:nth-child(3) {
    transition-delay: 0.2s;
}
.mobile-menu-overlay.active .mobile-link:nth-child(4) {
    transition-delay: 0.25s;
}
.mobile-menu-overlay.active .mobile-link:nth-child(5) {
    transition-delay: 0.3s;
}

.nav-num {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--beige);
    display: inline-block;
    margin-right: 5px;
}

/* Footer del Menu */
.mobile-footer {
    margin-top: auto;
    opacity: 0;
    transition: 0.5s;
    transition-delay: 0.4s;
}
.mobile-menu-overlay.active .mobile-footer {
    opacity: 1;
}

.separator {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.social-links-minimal {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}
.social-links-minimal a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-gray);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.social-links-minimal a:hover {
    color: var(--beige);
    border-color: var(--beige);
}

.menu-email {
    color: var(--text-white);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- MARQUEE --- */
.marquee-section {
    background: var(--beige);
    color: var(--bg-dark);
    padding: 8px 0;
    overflow: hidden;
    transform: rotate(-2deg) scale(1.05);
    margin: 40px 0;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}
.track {
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}
.track .content {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- SOBRE MÍ --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.image-frame {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: #333;
    overflow: hidden;
}
/* Tarjetas flotantes sobre la foto */
.floating-card {
    position: absolute;
    background: var(--beige);
    color: var(--bg-dark);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-1 {
    top: 40px;
    right: -20px;
}
.card-2 {
    bottom: 40px;
    left: -20px;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--beige);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}
.about-text-col h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.about-text-col p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-white);
}
.check-list i {
    color: var(--beige);
    font-size: 1.2rem;
}

/* --- STACK CARDS --- */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.stack-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.stack-card:hover {
    border-color: var(--beige);
    transform: translateY(-10px);
}
.stack-icon {
    font-size: 2.5rem;
    color: var(--beige);
    margin-bottom: 20px;
}
.stack-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.stack-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* --- PORTAFOLIO CARDS (Rediseñado) --- */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
}
.section-header.center {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
}
.view-all-link {
    color: var(--beige);
    display: flex;
    align-items: center;
    gap: 5px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

/* Project Card Container */
.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    container-name: project-card;
    container-type: inline-size;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--beige-translucent);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Image Wrapper */
.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #111;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Status Badge (Top Right over image) */
.status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.status-live {
    background: rgba(40, 167, 69, 0.2);
    color: #4cd964;
    border: 1px solid rgba(76, 217, 100, 0.3);
}

.status-beta {
    background: rgba(255, 149, 0, 0.2);
    color: #ff9f0a;
    border: 1px solid rgba(255, 159, 10, 0.3);
}

.status-dev {
    background: rgba(0, 122, 255, 0.2);
    color: #0a84ff;
    border: 1px solid rgba(10, 132, 255, 0.3);
}

.status-open-source {
    background: rgba(175, 82, 222, 0.2);
    color: #bf5af2;
    border: 1px solid rgba(191, 90, 242, 0.3);
}

.status-pago {
    background: rgba(222, 82, 82, 0.2);
    color: #dd4646;
    border: 1px solid rgba(242, 90, 90, 0.3);
}

.status-license {
    background: rgba(222, 194, 82, 0.2);
    color: #f2db5a;
    border: 1px solid rgba(242, 194, 90, 0.3);
}

/* Card Content */
.card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Header: Feature + Title */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.feature-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--beige);
    background: rgba(230, 216, 195, 0.08); /* Transparent Beige */
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1; /* Pushes footer down if content is short */
}

/* Tech Stack Chips */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.tech-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.project-card:hover .tech-pill {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Footer / CTA */
.card-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--beige);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.btn-card-action:hover {
    color: var(--text-white);
}

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

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

/* Load More Container */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.hidden-project {
    display: none;
}

/* --- FOOTER COMPLETO --- */
footer {
    background: #000;
    padding: 100px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-logo {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 15px;
    display: block;
}
.footer-brand p {
    color: var(--text-gray);
    max-width: 300px;
}
.footer-links-group h4,
.footer-newsletter h4 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.footer-links-group li {
    margin-bottom: 12px;
}
.footer-links-group a {
    color: var(--text-gray);
}
.footer-links-group a:hover {
    color: var(--beige);
}

.newsletter-input {
    display: flex;
    position: relative;
}
.newsletter-input input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #111;
    color: #fff;
}
.newsletter-input button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--beige);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 40px;
}
.big-text {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    color: #111;
    text-align: center;
    line-height: 0.8;
    letter-spacing: -0.05em;
    user-select: none;
}
.bottom-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}
.bottom-bar p {
    color: #555;
}
.socials {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
}
.socials a:hover {
    color: var(--beige);
}

/* --- BOTON DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #1e1e1e;
    color: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 0 0 rgba(230, 210, 180, 0.4);
    animation: pulse-wa 2s infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(230, 210, 180, 0.6);
}

.wa-icon {
    width: 26px;
    height: 26px;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 210, 180, 0.4);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(230, 210, 180, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 210, 180, 0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-stats-floating {
        display: none;
    } /* Ocultar stats flotantes en tablet para limpiar visual */
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .hamburger-wrapper {
        display: block;
    }

    .section {
        padding: 80px 0;
    } /* Menos padding vertical */

    .hero-content {
        text-align: left;
        padding-top: 40px;
    }
    #hero h1 {
        font-size: 2.5rem;
    } /* Texto más pequeño */
    #hero p {
        font-size: 1rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .btn-outline {
        margin-left: 0;
    }

    /* Ajuste de tarjetas flotantes para evitar overflow */
    .image-frame {
        height: 400px;
    }
    .card-1 {
        right: 0;
        top: 20px;
        transform: scale(0.9);
    }
    .card-2 {
        left: 0;
        bottom: 20px;
        transform: scale(0.9);
    }

    .about-text-col h2 {
        font-size: 2.2rem;
    }

    .stack-card {
        padding: 25px;
    } /* Cards más compactas */
    .stack-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .stack-card h3 {
        font-size: 1.2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .bottom-bar {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .socials {
        justify-content: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }

    .wa-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.2rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .floating-card {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Asegurar que no haya scroll horizontal */
    .marquee-section {
        transform: rotate(-2deg) scale(1);
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Clases de Animación JS */
.fade-in,
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}
.reveal-left {
    transform: translateX(-30px);
}
.reveal-right {
    transform: translateX(30px);
}

.active-reveal {
    opacity: 1;
    transform: translate(0, 0);
}

/* Retrasos */
.delay-1 {
    transition-delay: 0.1s;
}
.delay-2 {
    transition-delay: 0.2s;
}
.delay-3 {
    transition-delay: 0.3s;
}
.delay-4 {
    transition-delay: 0.4s;
}

/* --- CONTACT FORM --- */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.contact-subtitle {
    color: var(--text-gray);
    margin-top: -10px;
    margin-bottom: 30px;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-bottom: 10px;
    font-weight: 500;
}

.group-label {
    display: block;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-white);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--beige);
    background: rgba(255, 255, 255, 0.05);
}

/* Radio Button Chips Style */
.select-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.select-options-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.select-option {
    cursor: pointer;
    position: relative;
}

.select-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition);
    text-align: center;
}

/* Hover State */
.select-option:hover .option-content {
    border-color: var(--beige);
    color: var(--text-white);
}

/* Checked State */
.select-option input:checked + .option-content {
    background: var(--beige);
    color: var(--bg-dark);
    border-color: var(--beige);
    font-weight: 600;
}

.center-btn {
    text-align: center;
    margin-top: 20px;
}

.submit-btn {
    min-width: 200px;
}

/* --- CTA INTERMEDIO --- */
.cta-box {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(20, 20, 20, 1) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Efecto decorativo simple */
.cta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--beige), transparent);
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.cta-box p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* --- FAQ SECTION --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(300px, 1fr)
    ); /* Auto responsive sin media query */
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.faq-item:hover {
    border-color: rgba(230, 216, 195, 0.3);
}

details > summary {
    list-style: none; /* Quitar triangulo default */
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
}
/* Compatibilidad webkit */
details > summary::-webkit-details-marker {
    display: none;
}

.faq-question {
    text-align: left;
    margin-right: 15px;
}

.faq-icon i {
    transition: transform 0.3s ease;
    color: var(--beige);
}

details[open] .faq-icon i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px 24px;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    margin-top: 5px;
    padding-top: 15px;
    animation: slideDown 0.3s ease-out;
}

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

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 25px;
    }
    .select-options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- SUCCESS MESSAGE --- */
.success-message {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: var(--beige);
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.success-message p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- FLOATING LANGUAGE WIDGET --- */
.lang-float-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse; /* Options appear above button */
    align-items: center;
    gap: 12px;
}

.lang-toggle-btn {
    width: 56px;
    height: 56px;
    background: #1e1e1e;
    color: var(--beige);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.lang-toggle-btn:hover {
    transform: scale(1.1);
    border-color: var(--beige);
}

.lang-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Show options on hover of container OR focus of button */
.lang-float-container:hover .lang-options,
.lang-toggle-btn:focus + .lang-options,
.lang-options:hover {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-option {
    width: 44px;
    height: 44px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.lang-option:hover {
    border-color: var(--beige);
    color: var(--beige);
    transform: scale(1.1);
}

.lang-option.active {
    background: var(--beige);
    color: var(--bg-dark);
    border-color: var(--beige);
}

/* Mobile Adjustment: Collapse behavior handled by :hover/focus is adequate for "Tap to expand" feel */
@media (max-width: 768px) {
    .lang-float-container {
        bottom: 16px;
        left: 16px;
    }
    .lang-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .lang-option {
        width: 40px;
        height: 40px;
    }
}
