/* =========================================
   VARIABLES & RESETS
   ========================================= */
:root {
    /* Colors - Tech Premium */
    --bg-main: #06090E;
    --bg-alt: #0A1118;
    --bg-card: #111A24;
    --accent: #E5C37A;
    --accent-hover: #F2D596;
    --text-main: #FAFAFA;
    --text-muted: #8E9BAE;
    --border-color: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --section-pad: 8rem 0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(198, 167, 86, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(11, 31, 58, 0.4) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/watermark_circuits.png');
    background-size: 500px;
    background-repeat: repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}

@media (pointer: fine) {

    body,
    a,
    button,
    input,
    textarea,
    select,
    .service-card,
    .product-card,
    .case-card {
        cursor: none;
    }
}

/* =========================================
   CUSTOM MAGNETIC CURSOR
   ========================================= */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    transition: opacity 0.2s ease-in-out;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(229, 195, 122, 0.5);
    transition: transform 0.15s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.cursor-hover-active {
    transform: translate(-50%, -50%) scale(1.8) !important;
    background-color: rgba(229, 195, 122, 0.15);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* =========================================
   UTILITIES & LAYOUT
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--section-pad);
    position: relative;
    z-index: 1;
    /* Ensure section content is above the 3D canvas */
}

.bg-alt {
    /* Use very transparent colors to let the bgCanvas shine through */
    background: linear-gradient(180deg, rgba(6, 9, 14, 0.1) 0%, rgba(10, 17, 24, 0.4) 20%, rgba(10, 17, 24, 0.4) 80%, rgba(6, 9, 14, 0.1) 100%);
    position: relative;
}

.bg-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(229, 195, 122, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

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

.text-center {
    text-align: center;
}

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

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

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-inline: auto;
    position: relative;
    z-index: 2;
    /* Soft dark cloud behind section headers */
    background: radial-gradient(ellipse at center, rgba(6, 9, 14, 0.85) 0%, rgba(6, 9, 14, 0.5) 45%, transparent 75%);
    padding: 3rem 2rem;
    border-radius: 50%;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Icons */
.icon-xl {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.icon-lg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.icon-sm {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-main);
    border: transparent;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(198, 167, 86, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 167, 86, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(198, 167, 86, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(198, 167, 86, 0);
    }
}

.accent-pulse {
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =========================================
   PRELOADER
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translateX(-50%) translateY(-50%);
    z-index: -1;
    opacity: 0.15;
    object-fit: cover;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInLogo 1.5s ease;
}

.preloader-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(229, 195, 122, 0.15);
    margin-bottom: 24px;
    border: 1px solid rgba(229, 195, 122, 0.1);
    object-fit: cover;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-top: 1rem;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(6, 9, 14, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

/* =========================================
   1. HERO
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    /* Removed opaque background image so 3D Ring and Particles show through */
}

.hero-container {
    text-align: center;
    max-width: 1000px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    /* Soft dark cloud behind text so the Ring doesn't obscure it */
    background: radial-gradient(ellipse at center, rgba(6, 9, 14, 0.85) 0%, rgba(6, 9, 14, 0.5) 40%, transparent 70%);
    padding: 4rem 2rem;
    border-radius: 50%;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
    /* Allows mouse events to pass through to the hero for tracking */
}

#hero3DElement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    /* Put it behind the sections but above the particles */
    pointer-events: none;
    opacity: 1;
}

@media (max-width: 1200px) {
    #hero3DElement {
        right: -100px;
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    #hero3DElement {
        /* User strongly requested to keep the 3D element on mobile for the premium soul.
           We retain it, but the JS side already lowers geometry and pixel ratio. */
        opacity: 0.6;
    }

    .hero h1 {
        font-size: 3rem;
        letter-spacing: -0.02em;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .btn, .nav-links a {
        min-height: 44px; /* Enforce 44px minimum touch target for accessibility */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Disable Custom Cursor on Touch Devices via CSS for safety */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    * {
        /* Revert to standard interaction cursors if the custom one is hidden */
        cursor: auto !important;
    }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-inline: auto;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   2. QUÉ HACEMOS
   ========================================= */
.feature-card {
    background: linear-gradient(145deg, rgba(17, 26, 36, 0.8) 0%, rgba(17, 26, 36, 0.4) 100%);
    backdrop-filter: blur(10px);
    /* Blur the ring only when it passes directly behind the cards */
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(229, 195, 122, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(229, 195, 122, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: rgba(198, 167, 86, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(198, 167, 86, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* =========================================
   3. SERVICIOS
   ========================================= */
.service-card {
    background: linear-gradient(145deg, rgba(6, 9, 14, 0.8) 0%, rgba(10, 17, 24, 0.4) 100%);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    border-color: rgba(229, 195, 122, 0.5);
    background: linear-gradient(145deg, rgba(10, 17, 24, 0.9) 0%, rgba(17, 26, 36, 0.6) 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.check-icon {
    width: 18px;
    height: 18px;
    color: #10B981;
    flex-shrink: 0;
}

/* SHOWCASE DUAL LAYOUT */
.showcase-dual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-text-col {
    display: flex;
    flex-direction: column;
}

.showcase-ui-col {
    position: relative;
}

.ui-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background-color: var(--bg-main);
    max-width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.abstract-wrapper {
    max-width: 300px;
    margin: 0;
    opacity: 0.8;
}

.showcase-section {
    padding: 0 0 6rem;
    position: relative;
    z-index: 2;
}

.abstract-img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen;
}

/* =========================================
   4. CÓMO TRABAJAMOS
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
    z-index: 1;
}

.step-content {
    background: linear-gradient(145deg, rgba(11, 31, 58, 0.3) 0%, rgba(6, 9, 14, 0.7) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-grow: 1;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-step:hover .step-content {
    transform: translateX(10px);
    border-color: rgba(229, 195, 122, 0.2);
}

/* =========================================
   CATÁLOGO DE SOLUCIONES
   ========================================= */
.product-card {
    background: linear-gradient(145deg, rgba(11, 31, 58, 0.2) 0%, rgba(6, 9, 14, 0.6) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    border-color: rgba(229, 195, 122, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-image-wrapper {
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, rgba(6, 9, 14, 0) 0%, rgba(6, 9, 14, 1) 100%), rgba(198, 167, 86, 0.05);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.product-image-wrapper i {
    color: rgba(229, 195, 122, 0.5);
    transition: transform 0.5s ease, color 0.5s ease;
}

.product-card:hover .product-image-wrapper i {
    transform: scale(1.1);
    color: rgba(229, 195, 122, 1);
}

.product-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.product-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* =========================================
   6. SUSCRIPCIONES (PRICING)
   ========================================= */
.pricing-card {
    background: linear-gradient(145deg, rgba(11, 31, 58, 0.2) 0%, rgba(6, 9, 14, 0.6) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: rgba(229, 195, 122, 0.4);
    background: linear-gradient(145deg, rgba(11, 31, 58, 0.4) 0%, rgba(10, 17, 24, 0.8) 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
}

.pricing-card:hover {
    border-color: rgba(229, 195, 122, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-8px);
}

.pricing-card.featured:hover {
    transform: translateY(-16px);
}

.pricing-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-target {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--accent);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* =========================================
   7. CASOS DE USO
   ========================================= */
#casos-uso {
    position: relative;
    overflow: hidden;
}

#casos-uso::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/watermark_nodes.png');
    background-size: 500px;
    background-repeat: repeat;
    background-attachment: fixed;
    background-blend-mode: screen;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.case-card {
    background: linear-gradient(180deg, rgba(17, 26, 36, 0.6) 0%, rgba(6, 9, 14, 0.9) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.case-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(229, 195, 122, 0.15);
}

.badge {
    background: linear-gradient(90deg, rgba(11, 31, 58, 0.8) 0%, rgba(17, 26, 36, 0.8) 100%);
    color: var(--accent);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-content {
    padding: 2rem;
    flex-grow: 1;
}

.case-arrow {
    display: block;
    margin: 1.5rem auto;
    color: var(--text-muted);
    opacity: 0.5;
}

.case-result {
    padding: 1.5rem 2rem;
    background-color: rgba(198, 167, 86, 0.05);
    border-top: 1px solid rgba(198, 167, 86, 0.2);
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =========================================
   6. DATOS
   ========================================= */
.floating-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: var(--radius-lg);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

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

.trust-indicators {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

/* =========================================
   CONTACT FORM & FOOTER
   ========================================= */
.contact-form-wrapper {
    background: linear-gradient(145deg, rgba(11, 31, 58, 0.4) 0%, rgba(6, 9, 14, 0.8) 100%);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(229, 195, 122, 0.1);
}

select option {
    background-color: var(--bg-main);
    color: var(--text-main);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input {
    margin-top: 0.25rem;
}

.btn-block {
    width: 100%;
}

.error-msg {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form-success {
    background-color: #10B981; /* Solid Emerald Green */
    border: 1px solid #059669;
    color: #ffffff; /* Explicitly White text */
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.hidden {
    display: none;
}

.footer {
    background-color: var(--bg-main);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 400px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-2-col,
    .footer-grid,
    .showcase-dual-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* ==========================================================================
   COOKIE BANNER (GDPR) OVERLAY & LOCK
   ========================================================================== */
body.cookie-lock {
    overflow: hidden;
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 14, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.cookie-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* Redesign to Center the Banner if it's blocking */
.cookie-banner-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100vh);
    width: calc(100% - 2rem);
    max-width: 500px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.cookie-banner-container.show {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: all;
}

.cookie-banner {
    background: linear-gradient(145deg, rgba(11, 31, 58, 0.95) 0%, rgba(6, 9, 14, 0.98) 100%);
    border: 1px solid rgba(229, 195, 122, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(229, 195, 122, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.cookie-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cookie-header i {
    color: var(--accent);
    width: 40px;
    height: 40px;
    background: rgba(229, 195, 122, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.cookie-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.cookie-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cookie-body a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.cookie-body a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.cookie-btn {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--bg-main);
    box-shadow: 0 4px 15px rgba(229, 195, 122, 0.2);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 195, 122, 0.4);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

/* Cookie Toggles Overlay */
.cookie-options {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.cookie-options.show {
    display: flex;
}

.cookie-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-info h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 0 0 0.25rem 0;
}

.cookie-option-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Custom CSS Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-left: 1rem;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(20px);
    background-color: var(--bg-main);
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-btn-config {
    background: transparent;
    color: var(--text-main);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.cookie-btn-config:hover {
    border-color: var(--accent);
    color: var(--accent);
}
