@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Space+Grotesk:wght@300;400;500;700&display=swap');

:root {
    --primary: #F16522;
    /* Berintrex Orange */
    --primary-alt: #FF854D;
    --primary-dark: #C44C13;
    --bg-black: #050505;
    --surface-low: #0A0A0A;
    --surface-med: #141414;
    --surface-high: #1E1E1E;
    --text-white: #FFFFFF;
    --text-dim: #A0A0A0;
    --text-dark: #666666;
    --border-glass: rgba(255, 255, 255, 0.08);
    --orange-glow: rgba(241, 101, 34, 0.4);
    --mesh-grad: radial-gradient(at 0% 0%, hsla(20, 100%, 10%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(20, 90%, 5%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(20, 80%, 8%, 1) 0, transparent 50%);
    --font-heading: 'Outfit', sans-serif;
    --font-data: 'Space Grotesk', sans-serif;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--mesh-grad);
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-high);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout Helpers */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section-padding {
    padding: 3rem 0;
}

.centered-max {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Navigation */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s var(--ease-out-expo);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-glass);
    /* User requested: "el menu de arriba se quedo fijo, quita eso. que se mueva normal."
       So I will make it absolute/relative so it scrolls away. */
    position: absolute;
}

/* Industry Grid */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.industry-card {
    background: var(--surface-low);
    padding: 2.5rem;
    border: 1px solid var(--border-glass);
    text-align: center;
    transition: all 0.5s var(--ease-out-expo);
}

.industry-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: var(--surface-med);
}

.industry-card svg {
    width: 50px;
    height: 50px;
    fill: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.industry-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    list-style: none;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1000001;
        /* Highest priority */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.99);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.6s var(--ease-out-expo);
        z-index: 1000000;
        border-left: none;
        display: none;
    }

    .nav-links.mobile-active {
        right: 0;
        display: flex !important;
    }

    .nav-links a {
        font-size: 1.2rem;
        letter-spacing: 0.15rem;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.1;
}

.text-orange {
    color: var(--primary);
}

.text-sub {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    display: block;
}

.hero-title {
    font-size: clamp(2.2rem, 8vw, 4.8rem);
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(1.6rem, 5vw, 3.2rem);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

/* Cards & Panels */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 1px;
    /* Sharp Industrial Look */
    padding: 4rem;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: rgba(var(--primary), 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.6s var(--ease-out-expo);
}

.glass-card:hover::before {
    width: 100%;
}

/* Technical Mapping Spectrum */
.hardness-spectrum {
    margin-top: 3rem;
    background: var(--surface-low);
    padding: 3rem;
    border-radius: 1px;
    border: 1px solid var(--border-glass);
    position: relative;
}

.spectrum-line {
    height: 4px;
    background: linear-gradient(90deg, #666 0%, var(--primary) 50%, #f12222 100%);
    width: 100%;
    border-radius: 10px;
    margin: 4rem 0;
    position: relative;
}

.spectrum-point {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.point-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-white);
    border: 3px solid var(--primary);
}

.point-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dim);
}

.point-product {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
}

.elite-grid.compact {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.8rem !important;
}

.elite-grid.compact .col-3,
.elite-grid.compact .col-4 {
    grid-column: span 1 !important;
}

.glass-card.compact {
    padding: 1rem 0.8rem !important;
}

.glass-card.compact h3 {
    font-size: 0.9rem !important;
    margin-bottom: 0.3rem !important;
}

.glass-card.compact .product-desc {
    font-size: 0.7rem !important;
    line-height: 1.2;
}

.glass-card.compact .product-tag {
    font-size: 0.6rem !important;
    margin-bottom: 0.4rem !important;
}

/* Technical Table & Charts */
.hardness-visual-container {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hardness-bar {
    height: 60px;
    background: var(--surface-med);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--ease-out-expo) 0.4s;
}

.hardness-bar:hover {
    background: var(--surface-high);
    transform: translateX(10px);
}

.hardness-label {
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    width: 250px;
}

.hardness-scale {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative;
}

.hardness-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--orange-glow);
}

.hardness-value {
    margin-left: 2rem;
    font-family: var(--font-data);
    font-weight: 700;
    color: var(--primary);
}

.brand-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.brand-item {
    background: var(--surface-med);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-glass);
    transition: all 0.5s var(--ease-out-expo);
}

.brand-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    background: var(--surface-high);
}

.brand-item h3 {
    font-size: 1.1rem;
    letter-spacing: 0.15rem;
    opacity: 0.8;
}

/* WhatsApp & Interactive Elements */
.btn-elite {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
}

.btn-elite:hover {
    background: var(--primary-alt);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--orange-glow);
}

/* Product Details */
.product-tag {
    font-family: var(--font-data);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.7rem;
    margin-bottom: 1rem;
}

.product-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    max-width: 90%;
}

/* Interactive Grid */
.elite-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.col-6 {
    grid-column: span 6;
}

.col-4 {
    grid-column: span 4;
}

.col-3 {
    grid-column: span 3;
}

.col-8 {
    grid-column: span 8;
}

/* Clickable Glass Cards */
.glass-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.glass-card-link:hover .glass-card {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
}

.glass-card-link:hover .glass-card::before {
    width: 100%;
}

.glass-card.compact {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .elite-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .elite-grid.compact {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }

    .col-6,
    .col-4,
    .col-3,
    .col-8 {
        grid-column: span 1 !important;
    }

    .nav-links {
        display: none;
    }
}

/* =========================================
   NEW FEATURES INTEGRATION (From Playground)
   Adapted to Industrial Dark Theme
   ========================================= */

/* 1. PROFESSIONAL CAROUSEL */
.header-hero {
    position: relative;
    height: 85vh;
    /* Taller for impact */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-black);
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slideshow::after {
    /* Hard Overlay for readability */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.3), var(--bg-black));
    pointer-events: none;
}

.slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fade 15s infinite;
    filter: saturate(1.2) contrast(1.1);
}

.slideshow img:nth-child(1) {
    animation-delay: 0s;
}

.slideshow img:nth-child(2) {
    animation-delay: 5s;
}

.slideshow img:nth-child(3) {
    animation-delay: 10s;
}

@media (max-width: 768px) {
    .header-hero {
        height: 40vh !important;
        min-height: 320px !important;
        padding-top: 60px !important;
    }

    .hero-content {
        padding: 0.5rem;
        transform: translateY(0) !important;
    }

    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-content p {
        font-size: 0.85rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-btns {
        gap: 0.6rem !important;
    }

    .hero-btns .btn-elite {
        padding: 0.75rem 1rem !important;
        font-size: 0.7rem !important;
        min-width: 120px !important;
    }
}

@keyframes fade {

    0%,
    30% {
        opacity: 0.6;
        transform: scale(1);
    }

    35%,
    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

/* 2. FLOATING QUOTE FORM (Glassmorphism) */
.open-contact-btn {
    position: fixed;
    right: 20px;
    bottom: 110px;
    /* Above WhatsApp */
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 15px var(--orange-glow);
    z-index: 1999;
    font-family: var(--font-heading);
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.open-contact-btn:hover {
    transform: scale(1.05);
    background: var(--primary-alt);
}

#contact-form {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    border-radius: 1px;
    /* Sharp corners */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    border-top: 3px solid var(--primary);
    display: none;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#contact-form h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: white;
    font-family: var(--font-data);
    outline: none;
    transition: border 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--primary);
}

#contact-form button {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    font-weight: 800;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.close-btn:hover {
    color: white;
}

/* 3. PORTFOLIO GRID (Modern Cards) */
.grid-portafolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 500px) {
    .grid-portafolio {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on very small screens */
        gap: 0.8rem;
    }

    .card-p {
        padding: 1.2rem 0.5rem;
    }

    .card-p h3 {
        font-size: 1rem;
    }

    .card-p p {
        font-size: 0.6rem;
    }
}

.card-p {
    background: var(--surface-low);
    border: 1px solid var(--border-glass);
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .glass-card.compact {
        aspect-ratio: 1 / 1.1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.8rem !important;
        text-align: center;
    }

    .glass-card.compact h3 {
        font-size: 0.85rem !important;
        margin: 0.4rem 0 !important;
    }

    .glass-card.compact .product-tag {
        font-size: 0.6rem !important;
        margin-bottom: 0.2rem !important;
    }

    .glass-card.compact .btn-elite {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.65rem !important;
        width: 100%;
        justify-content: center;
    }

    .glass-card.compact .product-desc {
        display: none;
        /* Hide desc on mobile for squareness */
    }
}

.card-p h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.card-p p {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    /* Navigation Adjustments */
    .header-wa {
        display: none !important;
    }

    /* Industry Grid */
    .industry-grid {
        grid-template-columns: 1fr 1fr;
        /* 2x2 layout */
        gap: 0.8rem;
    }

    .industry-card {
        padding: 1.2rem;
    }

    .industry-card h3 {
        font-size: 0.8rem;
        letter-spacing: 0.1rem;
    }

    /* Brand Showcase */
    .brand-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .brand-item {
        padding: 1rem;
    }

    .brand-item h3 {
        font-size: 0.8rem;
    }

    /* Contact Form on Mobile */
    #contact-form {
        width: 90% !important;
        right: 5% !important;
        bottom: 100px !important;
        padding: 1.5rem;
    }

    .open-contact-btn {
        bottom: 20px;
        right: 20px;
    }

    /* Shore Chart Precision - Ultra Compact */
    .shore-table-container {
        margin: 0 -1rem;
        padding: 0 1rem 0.5rem 1rem;
        overflow-x: auto;
        transform: scale(0.85);
        /* Shrink to fit */
        transform-origin: center top;
        margin-bottom: -1rem;
    }

    .hardness-label {
        width: 130px;
        font-size: 0.65rem;
    }

    .hardness-value {
        margin-left: 0.5rem;
        font-size: 0.75rem;
    }

    .shore-table-container::after {
        content: "← Desliza escala →";
        display: block;
        text-align: center;
        font-size: 0.6rem;
        font-weight: 800;
        color: var(--primary);
        margin-top: 0.5rem;
        background: rgba(241, 101, 34, 0.1);
        padding: 0.3rem;
        border-radius: 4px;
        text-transform: uppercase;
    }

    .glass-card {
        padding: 1.5rem !important;
    }

    /* Page Specific Overrides */
    .centered-max h1.section-title {
        font-size: 1.8rem !important;
    }

    .centered-max div[style*="font-size: 1.15rem"] {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .col-6 .glass-card {
        padding: 1.5rem !important;
    }

    .section-padding {
        padding: 4rem 0 !important;
    }
}