        :root {
            --bg-deep: #0a1014;
            --lifestream: #00ffc3;
            --meteor-red: #ff3333;
            --ui-gold: #d4c393;
            --text-main: #f0f0f0;
            --font-main: 'Outfit', sans-serif;
            --glass-bg: rgba(30, 30, 45, 0.6);
            --glass-border: rgba(255, 255, 255, 0.1);
        }

        /* BLINDAJE ANTI-DESBORDAMIENTO */
        html { background-color: var(--bg-deep); width: 100%; height: 100%; }
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        body { 
            background-color: var(--bg-deep); color: var(--text-main); 
            font-family: var(--font-main); overflow-x: hidden; 
            min-height: 100vh; display: flex; flex-direction: column; margin: 0; 
            width: 100%; max-width: 100vw;
        }

        .bg-universe {
            position: fixed; inset: 0; z-index: 0; pointer-events: none;
            background: radial-gradient(circle at 50% 0%, rgba(255, 51, 51, 0.08) 0%, transparent 50%),
                        radial-gradient(circle at 50% 100%, rgba(0, 255, 195, 0.05) 0%, transparent 50%);
        }

        /* === ANIMACIONES ELEGANTES DE ENTRADA === */
        @keyframes fadeUp {
            0% { opacity: 0; transform: translateY(30px); filter: blur(8px); }
            100% { opacity: 1; transform: translateY(0); filter: blur(0); }
        }
        @keyframes boxReveal {
            0% { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(10px); }
            100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
        }

        /* === HERO CASTING === */
        .casting-hero {
            padding: 120px 6% 40px; text-align: center; position: relative; z-index: 1;
            width: 100%; box-sizing: border-box;
        }
        .casting-title {
            font-size: 3.5rem; font-weight: 900; text-transform: uppercase; color: white;
            letter-spacing: -1px; margin-bottom: 20px; text-shadow: 0 0 30px rgba(255, 51, 51, 0.4);
            word-wrap: break-word;
            opacity: 0; animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
        }
        .casting-title span { color: var(--meteor-red); }
        .casting-subtitle { 
            color: #ccc; font-size: 1.2rem; max-width: 850px; margin: 0 auto; line-height: 1.7; 
            opacity: 0; animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.15s;
        }

        /* === TABS SWITCHER === */
        .tab-switcher {
            display: flex; justify-content: center; gap: 20px; margin-bottom: 50px;
            position: relative; z-index: 10; opacity: 0; animation: fadeUp 0.8s ease forwards 0.25s;
            flex-wrap: wrap; padding: 0 6%;
        }
        .tab-btn {
            background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
            color: #888; padding: 15px 30px; border-radius: 30px;
            font-family: var(--font-main); font-weight: 800; font-size: 1.1rem;
            cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
            display: flex; align-items: center; gap: 10px; backdrop-filter: blur(5px);
        }
        .tab-btn.active {
            background: var(--lifestream); color: black; border-color: var(--lifestream);
            box-shadow: 0 0 20px rgba(0,255,195,0.4);
        }
        .tab-btn:hover:not(.active) { color: white; border-color: white; transform: translateY(-3px); }

        /* === CONTENEDORES DE PESTAÑAS === */
        .unete-tab { display: none; animation: fadeUp 0.5s ease forwards; }
        .unete-tab.active { display: block; }

        /* === REQUISITOS === */
        .req-container {
            max-width: 1300px; margin: 0 auto 60px; padding: 0 6%; position: relative; z-index: 1;
            display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
            width: 100%; box-sizing: border-box;
        }
        .req-card {
            background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
            padding: 35px 25px; border-radius: 12px; text-align: center; transition: 0.3s;
            width: 100%; box-sizing: border-box; cursor: default;
        }
        .req-card:hover { background: rgba(255,51,51,0.05); border-color: var(--meteor-red); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255,51,51,0.1); }
        .req-icon { font-size: 2.5rem; color: var(--meteor-red); margin-bottom: 20px; transition: 0.3s; }
        .req-card:hover .req-icon { transform: scale(1.1); }
        .req-card h3, .req-card h2 { color: white; font-size: 1.3rem; margin-bottom: 15px; text-transform: uppercase; }
        .req-card p { color: #aaa; font-size: 1rem; line-height: 1.6; }

        /* === FORMULARIO === */
        .form-section {
            max-width: 1300px; margin: 0 auto 100px; padding: 0 6%; position: relative; z-index: 1; 
            width: 100%; box-sizing: border-box;
        }
        .casting-box {
            background: var(--glass-bg); border: 1px solid var(--glass-border);
            border-radius: 20px; padding: 60px 80px; box-shadow: 0 0 50px rgba(0,0,0,0.5);
            backdrop-filter: blur(10px); width: 100%; box-sizing: border-box;
        }

        /* === BARRA DE LÍMITE (GAMIFICACIÓN) === */
        .limit-container { margin-bottom: 50px; width: 100%; }
        .limit-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
        .limit-title { color: var(--lifestream); font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; }
        .limit-pct { color: white; font-size: 1.2rem; font-weight: 900; font-family: monospace; }
        .limit-bar { width: 100%; height: 12px; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; overflow: hidden; position: relative; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); }
        .limit-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #005544, var(--lifestream)); transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 0 0 15px var(--lifestream); position: relative; }
        .limit-fill.ready { background: linear-gradient(90deg, #d4c393, #fff, #d4c393); background-size: 200% 100%; animation: limitGlow 1s linear infinite; box-shadow: 0 0 25px var(--ui-gold); }
        @keyframes limitGlow { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

        /* === CAMPOS DEL FORMULARIO === */
        .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 50px; width: 100%; }
        .full-width { grid-column: 1 / -1; }
        .form-group { position: relative; margin-bottom: 10px; width: 100%; }
        .form-label { display: block; color: var(--lifestream); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; margin-left: 5px; line-height: 1.3; }
        .form-input { width: 100%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.15); padding: 16px 20px; color: white; font-family: var(--font-main); font-size: 1rem; border-radius: 8px; outline: none; transition: 0.3s; box-sizing: border-box; }
        textarea.form-input { resize: vertical; min-height: 120px; }
        .form-input:focus { border-color: var(--lifestream); background: rgba(0,0,0,0.7); box-shadow: 0 0 15px rgba(0, 255, 195, 0.15); transform: translateY(-2px); }
        select.form-input { cursor: pointer; appearance: none; }
        select.form-input option { background: #111; color: white; padding: 10px; }

        /* DRAG AND DROP ZONE */
        .file-drop-zone { border: 2px dashed rgba(255,255,255,0.2); border-radius: 12px; padding: 50px 20px; text-align: center; cursor: pointer; transition: 0.3s; background: rgba(0,0,0,0.2); position: relative; overflow: hidden; width: 100%; box-sizing: border-box; }
        .file-drop-zone:hover, .file-drop-zone.dragover { border-color: var(--ui-gold); background: rgba(212, 195, 147, 0.05); transform: translateY(-2px); }
        .file-drop-zone i { font-size: 3.5rem; color: var(--ui-gold); margin-bottom: 15px; transition: 0.3s; }
        .file-drop-zone:hover i { transform: translateY(-5px); }
        .file-drop-zone h4, .file-drop-zone h3 { color: white; margin-bottom: 5px; font-size: 1.2rem; }
        .file-drop-zone p { color: #888; font-size: 0.95rem; margin: 0; }
        .file-input-hidden { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
        .file-name-display { margin-top: 15px; color: var(--lifestream); font-weight: 700; font-size: 1rem; display: none; align-items: center; justify-content: center; gap: 10px; width: 100%; overflow: hidden; }
        .file-name-display span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80%; }

        .btn-submit { background: linear-gradient(135deg, var(--meteor-red) 0%, #a30000 100%); color: white; border: none; padding: 20px 40px; border-radius: 30px; font-family: var(--font-main); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.3s; width: 100%; font-size: 1.1rem; box-shadow: 0 5px 20px rgba(255, 51, 51, 0.3); margin-top: 20px; box-sizing: border-box; }
        .btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255, 51, 51, 0.6); }
        .btn-submit.ready { background: linear-gradient(135deg, var(--ui-gold) 0%, #a6935b 100%); color: black; box-shadow: 0 0 30px rgba(212, 195, 147, 0.6); animation: pulseReady 1.5s infinite alternate; }
        @keyframes pulseReady { 0% { transform: scale(1); } 100% { transform: scale(1.02); } }

        /* ESTADO DE ÉXITO */
        .success-box { text-align: center; padding: 40px 20px; }
        .success-icon { font-size: 5rem; color: var(--lifestream); margin-bottom: 20px; filter: drop-shadow(0 0 20px rgba(0,255,195,0.5)); }

        /* === MEDIA QUERIES === */
        @media (max-width: 1024px) {
            .casting-title { font-size: 2.8rem; }
            .casting-box { padding: 50px; }
            .form-grid { gap: 30px; }
            .req-container { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
        }

        @media (max-width: 900px) {
            .casting-title { font-size: 2.5rem; }
            .form-grid { grid-template-columns: 1fr; gap: 25px; } 
            .casting-box { padding: 40px; }
        }

        @media (max-width: 768px) {
            .casting-hero { padding: 100px 5% 30px; }
            .casting-title { font-size: 2.2rem; }
            .casting-subtitle { font-size: 1rem; }
            .tab-switcher { flex-direction: column; gap: 15px; }
            .tab-btn { width: 100%; justify-content: center; }
            .req-container { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
            .req-card { padding: 25px 20px; }
            .form-section { padding: 0 5%; margin-bottom: 60px; }
            .casting-box { padding: 30px 20px; border-radius: 15px; }
            .form-label { font-size: 0.8rem; }
            .file-drop-zone { padding: 30px 15px; }
            .file-drop-zone i { font-size: 2.5rem; }
            .file-drop-zone h4, .file-drop-zone h3 { font-size: 1rem; }
            .btn-submit { padding: 15px 20px; font-size: 1rem; }
        }

        @media (max-width: 480px) {
            .casting-title { font-size: 1.8rem; }
            .form-input { padding: 12px 15px; font-size: 0.95rem; }
        }

        /* === PULIDO (05/11/2026) === */
        /* Campos: el aro de foco de main.css se sumaba al borde verde propio (doble borde). El foco ya se ve con el borde y el brillo. */
        .form-input:focus-visible { outline: none !important; }

        /* Desplegables: tenían la flecha quitada (parecían campos de texto). Se pone una flecha propia, sin imágenes. */
        select.form-input { padding-right: 46px; text-overflow: ellipsis; }
        .form-group:has(> select.form-input)::after {
            content: ''; position: absolute; right: 22px; bottom: 25px; width: 8px; height: 8px;
            border-right: 2px solid var(--lifestream); border-bottom: 2px solid var(--lifestream);
            transform: rotate(45deg); pointer-events: none;
        }
        /* Mientras no se ha elegido nada, el texto-guía se ve gris como en los demás campos */
        select.form-input:required:invalid { color: #7d838c; }
        select.form-input option { color: white; }

        /* Móvil: tarjetas de requisitos más compactas (el formulario queda más cerca). Las pestañas van en una sola píldora de dos mitades. */
        @media (max-width: 768px) {
            /* Pestañas como un selector de dos mitades en una sola píldora, con el texto en una línea */
            .tab-switcher {
                flex-direction: row; flex-wrap: nowrap; gap: 4px; padding: 5px; margin: 0 5% 35px;
                background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px;
            }
            .tab-btn {
                flex: 1 1 0; min-width: 0; width: auto; justify-content: center; white-space: nowrap;
                padding: 13px 8px; font-size: 0.78rem; letter-spacing: 0.4px; gap: 6px;
                background: transparent; border: 1px solid transparent; backdrop-filter: none;
            }
            .tab-btn.active { background: var(--lifestream); border-color: var(--lifestream); box-shadow: 0 0 16px rgba(0,255,195,0.35); }
            .req-card { padding: 20px 18px; }
            .req-icon { font-size: 2rem; margin-bottom: 12px; }
            .req-card h3, .req-card h2 { font-size: 1.1rem; margin-bottom: 10px; }
            .req-card p { font-size: 0.92rem; line-height: 1.5; }
            .limit-container { margin-bottom: 30px; }
        }

        /* Pantallas muy estrechas: sin iconos en las pestañas para que el texto quepa entero */
        @media (max-width: 380px) {
            .tab-btn i { display: none; }
            .tab-btn { font-size: 0.72rem; letter-spacing: 0.2px; padding: 13px 4px; }
        }

        /* Móvil girado: menos hueco arriba */
        @media (max-height: 520px) and (orientation: landscape) {
            .casting-hero { padding: 90px 6% 20px; }
        }

        /* Pantallas táctiles: nada de efectos "pegados" al tocar */
        @media (hover: none) {
            .req-card:hover { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.05); transform: none; box-shadow: none; }
            .req-card:hover .req-icon { transform: none; }
            .tab-btn:hover:not(.active) { color: #888; border-color: rgba(255,255,255,0.2); transform: none; }
            .btn-submit:hover { transform: none; box-shadow: 0 5px 20px rgba(255, 51, 51, 0.3); }
            .file-drop-zone:hover { transform: none; }
            .file-drop-zone:hover i { transform: none; }
        }

        @media (prefers-reduced-motion: reduce) {
            .casting-title, .casting-subtitle, .tab-switcher, .unete-tab { animation: none; opacity: 1; transform: none; filter: none; }
            .limit-fill.ready, .btn-submit.ready { animation: none; }
            .req-card, .tab-btn, .form-input, .btn-submit, .file-drop-zone { transition: none; }
        }
