/* ========================================
   FUENTES
   ======================================== */

@font-face {
    font-family: 'ClashDisplay';
    src: url('./ClashDisplay-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

/* ========================================
   VARIABLES Y TOKENS DE DISEÑO
   ======================================== */

:root {
    /* Colores - Paleta ODDSIGNAL */
    --color-bg-dark: #0B0F14;
    --color-bg-secondary: #1A2128;
    --color-bg-tertiary: #232B34;
    --color-gray-dim: #FFFFFF;
    --color-gray-active: #E7E7E7;
    --color-gray-credit: #5A6270;
    --color-gray-control: #2D3640;
    --color-accent: #c43216;
    --color-white: #FFFFFF;

    /* Tipografía */
    --font-family: 'ClashDisplay', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Espaciado */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Tamaños de fuente */
    --text-xs: 11px;
    --text-sm: 12.5px;
    --text-base: 14px;
    --text-lg: 18px;
    --text-xl: 24px;
    --text-2xl: 32px;
    --text-3xl: 48px;
    --text-4xl: 64px;

    /* Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET Y BASE
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-dark);
    background-image: url('./texturafondo.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--color-gray-active);
    line-height: 1.6;
    font-size: var(--text-base);
    font-weight: var(--font-weight-regular);
    overflow-x: hidden;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.home-page {
    background-image: none;
    background-color: #000;
}

/* Language Selector */
.language-selector-container {
    margin-left: var(--spacing-lg);
}

.language-selector {
    background-color: transparent;
    border: 1px solid rgba(231, 231, 231, 0.3);
    color: var(--color-gray-active);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 300ms ease;
}

.language-selector:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.language-selector option {
    background-color: var(--color-bg-dark);
    color: var(--color-gray-active);
}

/* ========================================
   NAVEGACIÓN
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 40px;
    transition: opacity var(--transition-fast);
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-logo img {
    height: 40px;
    width: auto;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-link {
    color: var(--color-gray-dim);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========================================
   HOME - FULL SCREEN HERO SECTION
   ======================================== */

.navbar-transparent {
    background: transparent;
    border-bottom: none;
    position: relative;
    z-index: 100;
    backdrop-filter: none;
}

.home-hero-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-glow-overlay {
    position: absolute;
    top: 0;
    right: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse 1000px 1000px at 80% 20%,
        rgba(255, 138, 61, 0.15) 0%,
        rgba(255, 138, 61, 0.05) 30%,
        transparent 70%);
    z-index: 2;
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
}

.hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(11, 15, 20, 0.15) 0%,
        rgba(11, 15, 20, 0.25) 50%,
        rgba(11, 15, 20, 0.15) 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-fullscreen-content {
    position: absolute;
    z-index: 10;
    top: 62%;
    left: 14%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    animation: fadeInContent 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-top: 0;
    justify-content: flex-start;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg-dark);
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(255, 138, 61, 0.6),
                0 0 40px rgba(255, 138, 61, 0.3);
    transition: all 300ms ease;
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-accent);
    box-shadow: 0 0 30px rgba(255, 138, 61, 0.8),
                0 0 60px rgba(255, 138, 61, 0.5),
                0 0 90px rgba(255, 138, 61, 0.3);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gray-active);
    border-color: rgba(231, 231, 231, 0.5);
    box-shadow: 0 0 15px rgba(231, 231, 231, 0.2);
    transition: all 300ms ease;
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 25px rgba(255, 138, 61, 0.6),
                0 0 50px rgba(255, 138, 61, 0.3);
    transform: scale(1.05);
}

/* Scroll Indicator - Hidden */
.scroll-indicator {
    display: none;
}

/* Animations */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

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

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

/* ========================================
   PRODUCTS - PAGE (NEW MINIMAL DESIGN)
   ======================================== */

.products-container-new {
    margin-top: 80px;
    min-height: 100vh;
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

/* Product Image Gallery - Main */
.product-image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
}

.gallery-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(255, 138, 61, 0.15),
                0 20px 40px rgba(0, 0, 0, 0.4);
    transition: opacity 300ms ease, transform 300ms ease;
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.showcase-image.active {
    opacity: 1;
    position: relative;
}

.showcase-image:hover {
    transform: scale(1.02);
}

/* Gallery Controls - Dots */
.gallery-controls {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(231, 231, 231, 0.3);
    border: 2px solid rgba(231, 231, 231, 0.2);
    cursor: pointer;
    transition: all 300ms ease;
    padding: 0;
}

.gallery-dot:hover {
    background: rgba(255, 138, 61, 0.4);
    border-color: var(--color-accent);
}

.gallery-dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    width: 16px;
    height: 16px;
}

/* Product Info - Compact */
.product-info-compact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Product Logo */
.product-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    margin-bottom: var(--spacing-lg);
}

.product-logo {
    height: auto;
    width: 100%;
    max-width: 400px;
    transition: transform var(--transition-base);
}

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

/* Mobile Product Image - Only visible on mobile */
.mobile-product-image {
    display: none;
    width: 100%;
    margin-bottom: var(--spacing-lg);
}

.mobile-product-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-badge-text {
    font-size: var(--text-base);
    color: #FFFFFF;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    margin: 0;
}

/* Features Section */
.features-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.section-heading {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-dim);
    letter-spacing: 0.1em;
    margin: 0;
    text-transform: uppercase;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.features-list li {
    color: var(--color-gray-active);
    font-size: var(--text-base);
    line-height: 1.6;
    padding-left: var(--spacing-lg);
    position: relative;
}

.features-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: var(--text-sm);
}

/* System Requirements */
.system-requirements-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.system-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.system-item {
    background: rgba(45, 54, 64, 0.1);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 3px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.system-label {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.system-value {
    font-size: var(--text-sm);
    color: var(--color-gray-active);
    font-weight: var(--font-weight-medium);
}

.system-note {
    font-size: var(--text-xs);
    color: var(--color-gray-dim);
    font-weight: var(--font-weight-regular);
}

/* Download Button */
.btn-download {
    align-self: flex-start;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.05em;
}

.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-accent);
    color: var(--color-bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    text-align: center;
    align-self: flex-start;
}

.btn:hover {
    background: transparent;
    color: var(--color-accent);
    box-shadow: 0 0 20px rgba(255, 138, 61, 0.3);
}

/* ========================================
   ABOUT - PAGE
   ======================================== */

.about-container {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about-content h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-lg);
}

.about-content p {
    font-size: var(--text-lg);
    line-height: 1.9;
    color: var(--color-gray-dim);
    margin-bottom: var(--spacing-md);
}

.about-content p strong {
    color: var(--color-accent);
    font-weight: var(--font-weight-semibold);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.value-card {
    background: rgba(45, 54, 64, 0.1);
    border: 1px solid rgba(45, 54, 64, 0.3);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
}

.value-card h3 {
    color: var(--color-accent);
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
}

.value-card p {
    color: var(--color-gray-dim);
    font-size: var(--text-sm);
    line-height: 1.8;
}

/* ========================================
   CONTACT - PAGE
   ======================================== */

.contact-container {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    text-align: center;
    max-width: 600px;
}

.contact-content h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.02em;
}

.contact-box {
    background: linear-gradient(135deg,
        rgba(45, 54, 64, 0.15) 0%,
        rgba(26, 33, 40, 0.1) 100%);
    border: 1px solid rgba(45, 54, 64, 0.3);
    padding: var(--spacing-xl);
    border-radius: 12px;
    margin-bottom: var(--spacing-xl);
}

.contact-email {
    font-size: var(--text-xl);
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity var(--transition-fast);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
}

.contact-email:hover {
    opacity: 0.8;
}

.contact-social {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.social-link {
    color: var(--color-gray-dim);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid rgba(45, 54, 64, 0.3);
    border-radius: 6px;
}

.social-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: rgba(11, 15, 20, 0.8);
    border-top: 1px solid rgba(45, 54, 64, 0.2);
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--color-gray-credit);
    font-size: var(--text-xs);
    margin-top: auto;
}

footer p {
    line-height: 1.8;
}

footer a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

footer a:hover {
    opacity: 0.8;
}

/* ========================================
   UTILITIES
   ======================================== */

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

.text-dim {
    color: var(--color-gray-dim);
}

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

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.hidden {
    display: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .navbar-menu {
        gap: var(--spacing-lg);
    }

    .hero-text h1 {
        font-size: var(--text-3xl);
    }

    .section-title {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 24px;
        --spacing-xl: 40px;
        --text-4xl: 40px;
        --text-3xl: 28px;
    }

    .navbar-container {
        padding: var(--spacing-md);
    }

    .navbar-menu {
        gap: var(--spacing-lg);
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: var(--text-2xl);
    }

    .hero-text p {
        font-size: var(--text-base);
    }

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

    .product-specs {
        grid-template-columns: 1fr;
    }

    .home-hero,
    .products-container,
    .about-container,
    .contact-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 16px;
        --spacing-xl: 24px;
        --text-4xl: 32px;
        --text-3xl: 24px;
        --text-2xl: 20px;
    }

    .navbar {
        position: relative;
    }

    .navbar-menu {
        width: 100%;
        gap: var(--spacing-md);
        padding-top: var(--spacing-md);
    }

    .nav-link {
        font-size: var(--text-xs);
    }

    .home-hero {
        margin-top: 0;
        min-height: auto;
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .hero-text h1 {
        font-size: var(--text-xl);
    }

    .hero-image {
        border-radius: 8px;
    }
}

/* ========================================
   BACKGROUND TEXTURES
   ======================================== */

/* ========================================
   ANIMAÇÕES
   ======================================== */

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

.fade-in {
    animation: fadeIn var(--transition-base) ease-out;
}

/* Mobile responsive - Different background for mobile */
@media (max-width: 768px) {
    .hero-bg-image {
        background-image: url('./fondotelofono.jpg') !important;
        background-attachment: scroll;
        background-position: center top;
    }

    /* Mobile hero content - position below logo */
    .hero-fullscreen-content {
        top: 90px;
        left: 38%;
        transform: translateX(-50%);
        align-items: center;
    }

    /* Mobile buttons - only FREE BETA visible */
    .hero-buttons {
        justify-content: center;
        gap: var(--spacing-md);
        flex-wrap: nowrap;
    }

    .btn-secondary {
        display: none;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--text-sm);
    }

    /* PRODUCTS - Mobile optimization */
    .products-container-new {
        background-image: none;
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }

    .product-showcase {
        flex-direction: column;
        padding: var(--spacing-lg);
        background: transparent;
    }

    .product-image-gallery {
        display: none !important;
    }

    .gallery-container img {
        width: 100%;
        height: auto;
        min-height: 500px;
        object-fit: cover;
    }

    .gallery-container img:nth-child(2) {
        display: none;
    }

    .gallery-controls {
        display: none;
    }

    .product-info-compact {
        width: 100%;
        padding: 0;
    }

    /* Move button to top on mobile */
    .product-info-compact .btn-download {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }

    .product-logo-container {
        height: auto;
        margin-bottom: var(--spacing-md);
    }

    .product-logo {
        max-width: 150px;
        height: auto;
    }

    /* Show mobile product image on mobile screens */
    .mobile-product-image {
        display: block;
    }

    .product-badge-text {
        font-size: var(--text-lg);
        margin-bottom: var(--spacing-lg);
    }

    .section-heading {
        font-size: var(--text-lg);
        margin-top: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }

    .features-list {
        font-size: var(--text-base);
        margin-bottom: var(--spacing-md);
    }

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

    .system-item {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .btn-download {
        width: 100%;
        text-align: center;
        margin-top: var(--spacing-lg);
    }
}

/* Print styles */
@media print {
    .navbar,
    footer {
        display: none;
    }
}
/* Desktop Product Image */
.product-image-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
}

.plugin-ui-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 8px;
}

/* Show desktop image on mobile as well */
@media (max-width: 768px) {
    .product-image-desktop {
        display: flex;
        width: 100%;
        margin-top: var(--spacing-lg);
    }

    .plugin-ui-image {
        max-width: 100%;
    }
}

/* Hide buttons on mobile HOME */
@media (max-width: 768px) {
    .hero-buttons {
        display: none;
    }

    .hero-buttons .btn-secondary {
        display: none;
    }

    .hero-buttons .btn-primary {
        display: none;
    }

    /* Make product image link clickable on mobile */
    .product-image-desktop {
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .product-image-desktop:active {
        transform: scale(0.98);
    }
}
