/* ==========================================================================
   PROYECTO: TORRES CUSTOM MANOR
   ESTILO: Elite Web Systems & Luxury Tech Design (Refreshed & Responsive)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Fondos Base */
    --dark-blue: #02040a;
    --secondary-dark: #05070c;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-bg-hover: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.05);
    
    /* Tipografía */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --text-gray: #a3a3a3;
    --text-light: #f5f5f5;
    
    /* Valores por Defecto: Oro (Tema Manor) */
    --accent: #d4af37;
    --accent-light: #f1d592;
    --accent-dark: #b8860b;
    --accent-rgb: 212, 175, 55;
    --accent-glow: rgba(212, 175, 55, 0.15);
}

/* ==========================================================================
   RESET & CONFIGURACIÓN BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--dark-blue);
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--dark-blue);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   UTILERÍAS DE ANIMACIÓN & REVELADO (SCROLL)
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* ==========================================================================
   NAVBAR (GLASSMORPHISM & PREMIUM TRANSITIONS)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
    background: rgba(2, 4, 10, 0.85);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 0.7rem 8%;
    background: rgba(2, 4, 10, 0.95);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-logo {
    height: 70px;
    width: auto;
    display: block;
    filter: drop-shadow(0px 0px 8px rgba(var(--accent-rgb), 0.25));
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-menu-logo { display: none; }
.nav-links li a i { display: none; }

/* Hamburguesa Móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* ==========================================================================
   HERO SECTION (AMBIENT GLOWS & MESH GRID)
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    background-color: var(--dark-blue);
    display: flex;
    align-items: center;
    padding: 0 8%;
    overflow: hidden;
}

/* SVG background layer */
.hero-svg-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.15;
    pointer-events: none;
}

/* Ambient Animated Glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    animation: ambient-shift 12s infinite alternate ease-in-out;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-dark);
    bottom: -150px;
    left: -150px;
    animation-delay: -4s;
}

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

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    font-weight: 700;
    text-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
}

.gold-gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: 1.35rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 300;
}

/* Botón Dorado Refrescado */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.45);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

/* Icono de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.6;
    animation: float 2s infinite ease-in-out;
}

.scroll-indicator i {
    font-size: 1.8rem;
    color: var(--accent);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: 120px 8%;
    background-color: var(--dark-blue);
    position: relative;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-border {
    position: relative;
    padding: 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255,255,255,0.01);
}

.image-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 40px;
    height: 40px;
    border-top: 3px solid var(--accent);
    border-left: 3px solid var(--accent);
    border-radius: 4px 0 0 0;
}

.image-border::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 40px;
    height: 40px;
    border-bottom: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    border-radius: 0 0 4px 0;
}

.image-border img {
    width: 100%;
    max-width: 420px;
    display: block;
    border-radius: 8px;
    filter: grayscale(40%);
    transition: all 0.5s ease;
}

.image-border:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(var(--accent-rgb), 0.6);
    box-shadow: 0 20px 40px rgba(var(--accent-rgb), 0.15);
}

.image-border:hover img {
    filter: grayscale(0%);
}

.about-text {
    flex: 1.2;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.gold-text {
    color: var(--accent);
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 35px;
}

.stat-item {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px 20px;
    border-radius: 10px;
    flex: 1;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    background: var(--card-bg-hover);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-main);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   SERVICES SECTION (MOUSE GLOW EFFECT)
   ========================================================================== */
.services-section {
    padding: 120px 8%;
    background-color: var(--secondary-dark);
    position: relative;
}

.underline {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    letter-spacing: -0.5px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Tarjetas Generales y Efecto Spotlight */
.service-card, .stack-card {
    background: var(--dark-blue);
    padding: 45px 35px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
    display: flex;
    flex-direction: column;
}

/* Máscara de Brillo Spotlight */
.service-card::before, .stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(var(--accent-rgb), 0.08), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.service-card:hover, .stack-card:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 25px;
    display: inline-block;
    position: relative;
    z-index: 2;
    background: rgba(var(--accent-rgb), 0.06);
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: #000;
    transform: scale(1.05);
}

.service-card h3, .stack-card h3 {
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-card p, .stack-card p {
    color: var(--text-gray);
    font-size: 0.98rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* Tarjeta Resaltada (Nube Privada) */
.highlight-card {
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    background: linear-gradient(145deg, var(--dark-blue), rgba(var(--accent-rgb), 0.02));
}

.highlight-card::before {
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(var(--accent-rgb), 0.15), transparent 40%);
}

/* ==========================================================================
   PORTFOLIO SECTION (DYNAMIC FILTER & SMOOTH GRID)
   ========================================================================== */
.portfolio-section {
    padding: 120px 8%;
    background-color: var(--dark-blue);
    position: relative;
}

/* Botones de Filtro */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

/* Grid del Portafolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    transition: all 0.5s ease;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: 420px;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s;
    background: var(--secondary-dark);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    position: absolute;
    pointer-events: none;
    visibility: hidden;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    position: relative;
}

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

/* Badge Próximamente */
.proximamente-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: rgba(6, 8, 15, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 6px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}
.proximamente-badge span {
    display: block;
    color: #d4af37;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}
.proximamente-badge p {
    margin: 0;
    color: #6b7a9a;
    font-size: 0.72rem;
    font-family: 'Outfit', sans-serif;
    line-height: 1.4;
}

/* Capa de Información Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(2, 4, 10, 0.95) 20%, rgba(2, 4, 10, 0.75) 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.overlay-content h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.overlay-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.tech-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    background: rgba(var(--accent-rgb), 0.05);
}

.portfolio-item:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.08);
}

/* ==========================================================================
   MANOR ARCADE SECTION (PRODUCT SHOWCASE)
   ========================================================================== */
.arcade-section {
    padding: 120px 8%;
    background: radial-gradient(circle at 10% 30%, rgba(var(--accent-rgb), 0.05), transparent 40%),
                var(--dark-blue);
    position: relative;
    border-top: 1px solid var(--border-color);
}

.arcade-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.arcade-text-content {
    flex: 1.2;
}

.arcade-text-content h2 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.arcade-text-content .subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.arcade-text-content .tagline {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.5;
}

.arcade-text-content p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.arcade-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.arcade-feat-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.arcade-feat-item .feat-icon {
    font-size: 1.6rem;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.arcade-feat-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-light);
}

.arcade-feat-item p {
    font-size: 0.92rem;
    color: var(--text-gray);
    margin-bottom: 0;
    line-height: 1.5;
}

.arcade-cta-box {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.stock-badge {
    font-size: 0.85rem;
    color: #2ecc71;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arcade-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.arcade-wrapper {
    position: relative;
    padding: 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.arcade-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s ease;
}

.arcade-wrapper:hover .arcade-image {
    transform: scale(1.03);
}

.arcade-glow-effect {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent);
    filter: blur(80px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Gallery Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--secondary-dark);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumb:hover img, .thumb.active img {
    opacity: 1;
}

.thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

/* Specifications Table */
.specs-table-container {
    margin-top: 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.specs-table th, .specs-table td {
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.specs-table td {
    font-size: 0.98rem;
    color: var(--text-gray);
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover td {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.01);
}

/* Editions & Comparison Grid */
.editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
    justify-content: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.edition-card {
    background: var(--dark-blue);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
}

.edition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(var(--accent-rgb), 0.08), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.edition-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-align: center;
}

.price-badge {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    align-self: center;
    margin-bottom: 30px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.edition-details-list {
    list-style: none;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edition-details-list li {
    font-size: 0.95rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.edition-details-list li i {
    color: var(--accent);
}

.edition-details-list li.disabled {
    color: #444;
    text-decoration: line-through;
}

.edition-details-list li.disabled i {
    color: #444;
}

.edition-select-btn {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.edition-select-btn:hover, .edition-select-btn.active {
    background: var(--accent);
    color: #000;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.35);
}

.highlight-edition {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.02);
    transform: scale(1.03);
}

.highlight-edition::before {
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(var(--accent-rgb), 0.15), transparent 40%);
}

.popular-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 40px;
    transform: rotate(45deg);
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ==========================================================================
   TECH STACK SECTION
   ========================================================================== */
.tech-stack-section {
    padding: 120px 8%;
    background-color: var(--secondary-dark);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stack-card {
    background: var(--dark-blue);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stack-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.tag {
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent-light);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    transition: all 0.3s ease;
}

.stack-card:hover .tag {
    border-color: rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.12);
}

/* ==========================================================================
   FEATURES / BENEFITS GRID
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    background: var(--dark-blue);
    padding: 70px 8%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.feature-card {
    text-align: center;
    transition: all 0.3s ease;
    padding: 20px 10px;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card i {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.feature-card p {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Sección Beneficios Integrales */
.benefits-section {
    padding: 120px 8%;
    background-color: var(--secondary-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: var(--dark-blue);
    padding: 45px 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.02);
}

.benefit-icon {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.25));
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   NEW COMPONENT: INTERACTIVE BUDGET CALCULATOR
   ========================================================================== */
.calculator-section {
    padding: 120px 8%;
    background-color: var(--dark-blue);
    position: relative;
    border-top: 1px solid var(--border-color);
}

.calc-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.calc-options h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Estilo de fila de opción */
.calc-option-row {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.calc-option-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.calc-option-row input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(var(--accent-rgb), 0.4);
    border-radius: 4px;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.calc-option-row input[type="checkbox"]:checked + .custom-checkbox {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
}

.calc-option-row input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #000;
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.calc-option-row input[type="checkbox"]:checked ~ .option-details h4 {
    color: var(--accent);
}

.calc-option-row.checked {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.02);
}

.option-details h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 3px;
    transition: color 0.3s;
}

.option-details p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Resultados de la Calculadora */
.calc-results-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 12px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.results-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--accent);
}

.results-header p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.calc-metric {
    margin-bottom: 25px;
}

.metric-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: block;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

/* Barra de Complejidad */
.complexity-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.complexity-bar {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s;
}

.complexity-bar.low { background: #2ecc71; }
.complexity-bar.medium { background: #f1c40f; }
.complexity-bar.high { background: #e74c3c; }

.calc-cta-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 20px;
}

.calc-cta-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

/* ==========================================================================
   CTA DEVICES SECTION (CORREGIDA Y ALINEADA)
   ========================================================================== */
.cta-devices-section {
    padding: 120px 8%;
    background-color: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.cta-devices-container {
    display: flex;
    align-items: center; /* Centra perfectamente vertical la imagen y el texto */
    justify-content: space-between;
    gap: 80px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.cta-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Nueva animación de flotado suave sin romper el posicionamiento */
    animation: ctaFloat 6s ease-in-out infinite; 
}

.mockup-wrapper {
    position: relative;
    padding: 10px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.main-mockup {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.cta-text-content {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-text-content h2 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.cta-text-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.cta-link-gold {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 35px;
    transition: transform 0.3s ease, color 0.3s;
    letter-spacing: 1px;
    align-self: flex-start;
}

.cta-link-gold:hover {
    color: var(--accent-light);
    transform: translateX(8px);
}

.cta-button-container {
    display: flex;
    justify-content: flex-start;
}

.cta-button-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 45px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #000 !important;
    text-decoration: none;
    font-weight: 800;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 5px 20px rgba(var(--accent-rgb), 0.25);
}

.cta-button-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.45);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

/* ==========================================================================
   NUEVA ANIMACIÓN EXCLUSIVA PARA EL CTA (Evita heredar errores de float)
   ========================================================================== */
@keyframes ctaFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
/* ==========================================================================
   CONTACT & FAQ SECTION (CUSTOM ACCORDION & VALIDATION)
   ========================================================================== */
.contact-ultra-section {
    padding: 120px 8%;
    background-color: var(--dark-blue);
    color: var(--text-light);
}

.contact-grid-main {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
}

.status-card {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    padding: 22px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.pulse-icon {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(46, 204, 113, 0.4);
    animation: pulse-green 2s infinite;
}

.status-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

.status-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Custom Accordion FAQ */
.faq-accordion h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item details {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item details[open] {
    border-color: rgba(var(--accent-rgb), 0.3);
    background: var(--card-bg-hover);
}

.faq-item summary {
    font-weight: 600;
    padding: 20px;
    cursor: pointer;
    list-style: none;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    animation: slideDown 0.3s ease-out;
}

/* Formulario Elite Refrescado */
.contact-form-card {
    background: var(--secondary-dark);
    padding: 55px;
    border-radius: 16px;
    border-bottom: 5px solid var(--accent);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.form-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.form-header p {
    font-size: 1rem;
    color: var(--text-gray);
}

.ultra-form {
    margin-top: 35px;
}

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

.input-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.input-box label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
}

.input-box input, .input-box select, .input-box textarea {
    background: var(--dark-blue);
    border: 1px solid var(--border-color);
    padding: 16px;
    color: var(--text-light);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-box select option {
    background-color: var(--secondary-dark);
    color: var(--text-light);
}

.input-box input:focus, .input-box select:focus, .input-box textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.15);
    background: rgba(var(--accent-rgb), 0.01);
}

.input-box input::placeholder, .input-box textarea::placeholder {
    color: #555;
}

.ultra-submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: #000;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 6px;
}

.ultra-submit-btn:hover {
    background: var(--accent-light);
    gap: 18px;
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.3);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transform: translateX(calc(100% + 40px));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-container.active {
    transform: translateX(0);
}

.toast-message {
    background: rgba(5, 7, 12, 0.9);
    border: 1px solid var(--accent);
    border-left: 6px solid var(--accent);
    padding: 20px 25px;
    border-radius: 8px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.toast-message i {
    font-size: 1.5rem;
    color: var(--accent);
}

.toast-message-text h4 {
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-message-text p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ==========================================================================
   CLIENTS SECTION
   ========================================================================== */
.clients-section {
    padding: 100px 8%;
    background-color: var(--secondary-dark);
    text-align: center;
}

.clients-header {
    margin-bottom: 60px;
}

.clients-header .subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 12px;
}

.clients-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.underline-gold {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-item {
    padding: 30px 40px;
    transition: all 0.4s ease;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.06);
}

.logo-item img {
    max-width: 220px;
    height: auto;
    display: block;
    filter: none;
    opacity: 1;
}

.logo-item:hover {
    transform: scale(1.05);
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.15);
    cursor: pointer;
}

/* ==========================================================================
   FOOTER (SLEEK LUXURY ARCHITECTURE)
   ========================================================================== */
.main-footer {
    background-color: #010307;
    padding: 100px 8% 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.footer-brand p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 0.98rem;
    margin-bottom: 30px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

.footer-links h3, .footer-tech h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.25rem;
    position: relative;
}

.footer-links h3::after, .footer-tech h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--accent);
}

.footer-links ul, .footer-tech ul {
    list-style: none;
}

.footer-links ul li, .footer-tech ul li {
    margin-bottom: 14px;
}

.footer-links ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-tech ul li {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    color: #444;
}

/* ==========================================================================
   FLOATING ACCENT THEME SELECTOR
   ========================================================================== */
/* Theme switcher dentro del navbar (proyectos.html) */
.navbar .theme-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar .theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s, border-color 0.2s;
}
.navbar .theme-dot:hover,
.navbar .theme-dot.active {
    border-color: #fff;
    transform: scale(1.2);
}

.theme-selector-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.theme-trigger-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(5, 7, 12, 0.95);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.theme-trigger-btn:hover {
    transform: rotate(30deg) scale(1.05);
    border-color: var(--accent);
    color: var(--accent-light);
}

.theme-palette-panel {
    position: absolute;
    bottom: 65px;
    left: 0;
    background: rgba(5, 7, 12, 0.95);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    transform: scale(0.8) translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom left;
}

.theme-selector-wrapper.active .theme-palette-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--text-light);
}

/* Colores de botones */
.color-option[data-theme="gold"] { background-color: #d4af37; }
.color-option[data-theme="emerald"] { background-color: #10b981; }
.color-option[data-theme="sapphire"] { background-color: #3b82f6; }
.color-option[data-theme="amethyst"] { background-color: #8b5cf6; }

/* Tooltip para paleta */
.color-option::before {
    content: attr(title);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.color-option:hover::before {
    opacity: 1;
}

/* ==========================================================================
   MEDIA QUERIES — RESPONSIVE COMPLETO (TABLET + MÓVIL)
   ========================================================================== */

/* ---- TABLET ANCHO ---- */
@media (max-width: 1024px) {
    .navbar { padding: 1rem 5%; }
    .navbar.scrolled { padding: 0.8rem 5%; }
    .hero-content h1 { font-size: 3.5rem; }
    .about-container { gap: 40px; }
    .calc-container { padding: 30px; gap: 30px; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ---- TABLET ---- */
@media (max-width: 992px) {
    /* Arcade hero */
    .arcade-container { flex-direction: column; text-align: center; gap: 40px; }
    .arcade-feat-item { text-align: left; }
    .arcade-cta-box { justify-content: center; flex-wrap: wrap; }

    /* Nosotros */
    .about-container { flex-direction: column; text-align: center; }
    .about-image { margin-bottom: 30px; width: 100%; }
    .image-border img { max-width: 380px; margin: 0 auto; }
    .about-stats { justify-content: center; }

    /* Calculadora */
    .calc-container { grid-template-columns: 1fr; }

    /* Contacto */
    .contact-grid-main { grid-template-columns: 1fr; gap: 40px; }

    /* CTA */
    .cta-devices-container { flex-direction: column; text-align: center; }
    .cta-visual { order: 2; margin-top: 40px; }
    .cta-text-content { order: 1; }

    /* Footer */
    .footer-container { grid-template-columns: 1fr 1fr; gap: 35px; text-align: center; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-socials { justify-content: center; }
    .footer-links h3::after, .footer-tech h3::after { left: 50%; transform: translateX(-50%); }

    /* Ediciones arcade */
    .editions-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ---- MÓVIL (768px) ---- */
@media (max-width: 768px) {
    .hero { background-attachment: scroll; }

    /* ---------- MENÚ HAMBURGUESA ---------- */
    .menu-toggle { display: flex; }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 999;
        backdrop-filter: blur(2px);
    }
    .nav-overlay.active { display: block; }

    .nav-links {
        position: fixed;
        top: 0; left: -290px;
        width: 270px;
        height: 100vh;
        background: #07090f;
        border-right: 1px solid rgba(212,175,55,0.15);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        transition: left 0.35s cubic-bezier(0.16,1,0.3,1);
        z-index: 1001;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0;
    }
    .nav-links.active { left: 0; }

    .nav-links::before, .nav-links::after { display: none; }

    .nav-menu-logo {
        padding: 28px 20px 12px;
        text-align: center;
    }
    .nav-menu-logo img {
        height: 70px;
        object-fit: contain;
    }
    .nav-menu-divider {
        height: 1px;
        background: linear-gradient(to right, transparent, var(--accent), transparent);
        margin: 14px 0 4px;
    }

    .nav-links li { width: 100%; }
    .nav-links li a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 24px;
        font-size: 0.88rem;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #8a9bb5;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }
    .nav-menu-logo { display: block; }
    .nav-links li a i {
        display: block;
        width: 18px;
        font-size: 1rem;
        text-align: center;
        color: #4a5a72;
        transition: color 0.2s;
        flex-shrink: 0;
    }
    .nav-links li a:hover {
        color: var(--text-light);
        background: rgba(212,175,55,0.07);
        border-left-color: var(--accent);
    }
    .nav-links li a:hover i { color: var(--accent); }

    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .navbar .theme-switcher { display: none; }

    /* ---------- TIPOGRAFÍA ---------- */
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content p { font-size: 1rem; }
    .about-text h2,
    .section-title h2,
    .cta-text-content h2,
    .form-header h2 { font-size: 1.9rem; }
    .stat-number { font-size: 2rem; }

    /* ---------- SECCIONES GENERALES ---------- */
    .services-section,
    .about-section,
    .benefits-section { padding: 70px 5%; }

    .services-container { grid-template-columns: 1fr; gap: 20px; }
    .service-card { padding: 28px 22px; }

    /* ---------- FORMULARIOS ---------- */
    .contact-ultra-section { padding: 60px 5%; }
    .contact-grid-main { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form-card { padding: 28px 18px; }
    .form-header h2 { font-size: 1.8rem; }
    .input-box input, .input-box select, .input-box textarea {
        width: 100%;
        max-width: 100%;
        font-size: 0.9rem;
        padding: 13px;
    }
    .ultra-submit-btn { font-size: 0.95rem; padding: 14px 20px; }

    /* ---------- PORTAFOLIO ---------- */
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item { height: 300px; }
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(2,4,10,0.95) 40%, rgba(2,4,10,0.3) 100%);
        padding: 18px;
    }
    .overlay-content { transform: translateY(0); }
    .overlay-content h3 { font-size: 1.3rem; margin-bottom: 4px; }
    .overlay-content p {
        font-size: 0.82rem; margin-bottom: 12px;
        display: -webkit-box; -webkit-line-clamp: 2;
        -webkit-box-orient: vertical; overflow: hidden;
    }
    .tech-tag { padding: 4px 10px; font-size: 0.65rem; }

    /* ---------- FEATURES / BENEFICIOS ---------- */
    .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; padding: 40px 5%; }
    .benefit-card { padding: 26px 20px; }

    /* ---------- CALCULADORA ---------- */
    .calc-container { padding: 24px 16px; gap: 24px; }
    .calc-modules-grid { grid-template-columns: 1fr; }
    .results-panel { padding: 24px 18px; }

    /* ---------- LOGOS CLIENTES ---------- */
    .logos-grid { gap: 20px; }
    .logo-item { padding: 20px 24px; }
    .logo-item img { max-width: 130px; }

    /* ---------- FOOTER ---------- */
    .footer-container { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-brand { grid-column: auto; }
    .footer-socials { justify-content: center; }
    .footer-links h3::after, .footer-tech h3::after { left: 50%; transform: translateX(-50%); }
    .footer-bottom p { font-size: 0.8rem; text-align: center; }

    /* ---------- ARCADE HERO (ManorArcade.html) ---------- */
    .arcade-hero-section { padding: 60px 5% 50px; }
    .arcade-container { flex-direction: column; gap: 36px; text-align: center; }
    .arcade-logo-panel { max-width: 100%; }
    .arcade-text-content h1 { font-size: 2.4rem; }
    .arcade-text-content .tagline { font-size: 1rem; }
    .arcade-cta-box { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .stock-badge { justify-content: center; }

    /* ---------- SPECS TABLE ---------- */
    .specs-table-container { overflow-x: auto; }
    .specs-table th, .specs-table td { padding: 14px 14px; font-size: 0.88rem; }

    /* ---------- EDICIONES ---------- */
    .editions-grid { grid-template-columns: 1fr; gap: 24px; }
    .edition-card { padding: 36px 24px; }

    /* ---------- HERO QUOTE (ManorArcade.html) ---------- */
    #manor-hero-quote { min-height: 70vh; padding: 60px 6% 50px; }
    #manor-hero-quote h1 { font-size: 2.2rem !important; line-height: 1.2; }
    #manor-hero-quote .cta-button { width: 100%; justify-content: center; }

    /* ---------- SISTEMAS GRID (index.html) ---------- */
    .sistemas-grid { grid-template-columns: 1fr; }
    .sistema-card { padding: 28px 22px; }
}

/* ---- MÓVIL PEQUEÑO (480px) ---- */
@media (max-width: 480px) {
    .hero {
        padding: 0 5%;
        justify-content: center;
        text-align: center;
        overflow: hidden;
    }
    .ambient-glow { display: none; }
    .navbar .theme-switcher { display: none; }
    .hero-content {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-content h1 { font-size: 2rem; letter-spacing: -0.5px; }
    .hero-content p { font-size: 0.95rem; }
    .section-title h2 { font-size: 1.7rem; }

    .cta-button { width: 100%; justify-content: center; padding: 14px 20px; }

    .about-stats { flex-direction: column; gap: 14px; }
    .stat-item { padding: 20px; }
    .stat-number { font-size: 1.8rem; }

    .features-grid { grid-template-columns: 1fr; justify-items: center; }

    /* Calculadora */
    .calc-container { padding: 16px 12px; }
    .calc-module-item { padding: 12px 14px; font-size: 0.88rem; }

    /* Footer */
    .footer-container { gap: 24px; }
    .footer-logo { font-size: 1.3rem; }

    /* Toast & Theme selector */
    .theme-selector-wrapper { bottom: 16px; left: 16px; }
    .toast-container { bottom: 16px; left: 12px; right: 12px; }
    .toast-message { padding: 14px; }

    /* Arcade hero pequeño */
    #manor-hero-quote h1 { font-size: 1.75rem !important; }
    .arcade-text-content h1 { font-size: 2rem; }
    .edition-card { padding: 28px 18px; }
    .specs-table th, .specs-table td { padding: 11px 10px; font-size: 0.82rem; }

    /* Ediciones y tablas en móvil pequeño */
    .editions-grid { gap: 18px; }
    .edition-details-list li { font-size: 0.88rem; }

    /* Contacto cards */
    .contact-ultra-section { padding: 50px 4%; }
    .contact-form-card { padding: 22px 14px; }
    .form-header h2 { font-size: 1.5rem; }
    .status-card { padding: 16px 14px; }
    .faq-item summary { padding: 14px; font-size: 0.88rem; }

    /* Sistemas web cards */
    .sistema-card { padding: 22px 16px; }
}

/* ==========================================================================
   ANIMACIONES CLAVE
   ========================================================================== */
@keyframes ambient-shift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.1); }
    100% { transform: translate(-30px, 40px) scale(0.9); }
}

@keyframes float {
    0% { transform: translateY(0px) translateX(-50%); }
    50% { transform: translateY(-10px) translateX(-50%); }
    100% { transform: translateY(0px) translateX(-50%); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

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