:root {
    --bg-dark: #011b22;
    --bg-medium: #052f38;
    --accent-green: #a5ff56;
    --accent-blue: #5bdbff;
    --text-primary: #f5f8fb;
    --text-secondary: rgba(245, 248, 251, 0.72);
    --text-tertiary: rgba(245, 248, 251, 0.55);
    --card-bg: rgba(6, 53, 62, 0.84);
    --card-border: rgba(165, 255, 86, 0.16);
    --shadow-lg: 0 32px 65px rgba(0, 0, 0, 0.38);
    --section-overlay: rgba(1, 29, 36, 0.92);
    --page-max-width: 1180px;
    --page-gutter: clamp(24px, 7vw, 96px);
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: radial-gradient(circle at 12% 10%, rgba(91, 219, 255, 0.18), transparent 60%),
                linear-gradient(160deg, #02151b 0%, var(--bg-medium) 55%, #021f27 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color-scheme: dark;
}

main {
    display: flex;
    flex-direction: column;
    gap: clamp(60px, 12vw, 120px);
}

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

button,
a,
input,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* NAVIGATION */
.logoymenu {
    padding: 24px var(--page-gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menuicon {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 14px;
    cursor: pointer;
    display: none;
    transition: background 0.3s ease;
}

.menuicon:hover {
    background: rgba(255, 255, 255, 0.22);
}

.menuicon img {
    width: 32px;
    height: 32px;
}

#navbar {
    padding: 12px var(--page-gutter) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#navbar ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

#navbar li button {
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 18px;
    transition: color 0.3s ease;
}

#navbar li button:hover,
#navbar li button:focus-within {
    color: var(--accent-green);
}

.logo img {
    width: 150px;
}

@media (max-width: 980px) {
    .menuicon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #navbar {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 16px;
    }

    #navbarelements {
        display: none;
        margin-top: 18px;
        text-align: center;
    }

    #navbar ul {
        flex-direction: column;
        gap: 18px;
    }
}

/* PRODUCT PAGE */
.product-page {
    padding-bottom: clamp(80px, 18vw, 140px);
}

.product-hero {
    padding: clamp(80px, 22vh, 140px) 0 32px;
}

.hero-grid {
    display: grid;
    gap: clamp(40px, 8vw, 72px);
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    width: min(var(--page-max-width), calc(100% - 2 * var(--page-gutter)));
    margin: 0 auto;
    align-items: start;
}

.breadcrumb {
    width: min(var(--page-max-width), calc(100% - 2 * var(--page-gutter)));
    margin: 0 auto 36px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-tertiary);
}

.breadcrumb span:last-child {
    color: var(--text-primary);
}

.gallery {
    display: grid;
    gap: 20px;
}

.gallery-main {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.02);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.28) 100%);
    pointer-events: none;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 12px;
}

.thumb {
    border: 0;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    transition: border-color 0.3s ease;
}

.thumb.is-active,
.thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.thumb.is-active::after,
.thumb:hover::after {
    border-color: var(--accent-green);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 520px;
}

.tag {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.hero-copy h1 {
    font-size: clamp(42px, 4vw, 60px);
    line-height: 1.1;
    text-wrap: balance;
}

.hero-intro {
    font-size: 18px;
    color: var(--text-secondary);
    text-wrap: pretty;
}

.hero-highlights {
    list-style: none;
    display: grid;
    gap: 13px;
    color: var(--text-secondary);
}

.hero-highlights li {
    padding-left: 22px;
    position: relative;
}

.hero-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.hero-cta .primary,
.hero-cta .secondary {
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 14px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-cta .primary {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    color: #032026;
}

.hero-cta .secondary {
    border: 1px solid rgba(165, 255, 86, 0.4);
    color: var(--text-primary);
}

.hero-cta a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

/* SPEC SUMMARY */
.product-specs {
    width: min(var(--page-max-width), calc(100% - 2 * var(--page-gutter)));
    margin: 0 auto;
    padding: 34px clamp(24px, 6vw, 40px);
    border-radius: 26px;
    background: var(--section-overlay);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    box-shadow: var(--shadow-lg);
}

.spec-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.spec-value {
    font-size: 18px;
    font-weight: 600;
}

/* FEATURE LIST */
.feature-list {
    width: min(var(--page-max-width), calc(100% - 2 * var(--page-gutter)));
    margin: 0 auto;
}

.feature-list h2 {
    font-size: clamp(32px, 3.3vw, 44px);
    margin-bottom: 28px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(18px, 3vw, 26px);
}

.feature-card {
    padding: 26px;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 220px;
}

.feature-pill {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(165, 255, 86, 0.18);
    color: var(--accent-green);
}

.feature-card h3 {
    font-size: 20px;
    line-height: 1.3;
    text-wrap: balance;
}

.feature-card p {
    color: var(--text-secondary);
    text-wrap: pretty;
}

/* DUAL LAYOUT */
.dual-layout {
    width: min(var(--page-max-width), calc(100% - 2 * var(--page-gutter)));
    margin: 0 auto;
    padding: clamp(44px, 8vw, 70px);
    border-radius: 32px;
    background: radial-gradient(circle at 18% 18%, rgba(165, 255, 86, 0.16), transparent 65%),
                rgba(1, 28, 34, 0.95);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
    gap: clamp(32px, 6vw, 56px);
    align-items: center;
}

.dual-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-blue);
}

.dual-text h2 {
    font-size: clamp(32px, 3.4vw, 46px);
    text-wrap: balance;
}

.steps {
    display: grid;
    gap: 18px;
    color: var(--text-secondary);
}

.steps h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.note {
    font-size: 15px;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-blue);
    padding-left: 18px;
}

.dual-media img {
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* HOW-TO GRID */
.how-to {
    width: min(var(--page-max-width), calc(100% - 2 * var(--page-gutter)));
    margin: 0 auto;
}

.how-to h2 {
    font-size: clamp(32px, 3.2vw, 44px);
    margin-bottom: 28px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.how-grid article {
    padding: 28px;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid rgba(91, 219, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 170px;
}

.how-grid h3 {
    font-size: 20px;
}

.how-grid p {
    color: var(--text-secondary);
    text-wrap: pretty;
}

/* MEDIA GRID */
.media-grid {
    width: min(var(--page-max-width), calc(100% - 2 * var(--page-gutter)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.media-item {
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: block;
    min-height: 180px;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item.wide {
    grid-column: span 2;
}

.media-item.tall {
    grid-row: span 2;
}

/* CTA */
.cta-section {
    padding: 40px 0 0;
}

.cta-wrapper {
    width: min(var(--page-max-width), calc(100% - 2 * var(--page-gutter)));
    margin: 0 auto;
    border-radius: 36px;
    padding: clamp(48px, 10vw, 72px) clamp(32px, 8vw, 64px);
    background: radial-gradient(circle at 20% 22%, rgba(165, 255, 86, 0.22), transparent 58%),
                rgba(1, 24, 30, 0.96);
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.cta-wrapper h2 {
    font-size: clamp(34px, 3.5vw, 48px);
    text-wrap: balance;
}

.cta-wrapper p {
    color: var(--text-secondary);
    font-size: 18px;
}

.cta-wrapper .hero-cta {
    justify-content: center;
}

/* CONTACT AND FOOTER */
.contacto {
    margin-top: clamp(60px, 14vw, 120px);
    padding: 110px 0;
    background: rgba(1, 20, 26, 0.95);
    border-top: 1px solid rgba(91, 219, 255, 0.18);
}

.contactoelements {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
    max-width: min(var(--page-max-width), calc(100% - 2 * var(--page-gutter)));
    margin: 0 auto;
    padding: 0 clamp(24px, 6vw, 40px);
}

.contacto_container h1 {
    font-size: 38px;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.contacto_container h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
}

.phonesection,
.ubicationsection,
.emailsection {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.phoneimage {
    max-width: 280px;
}

footer {
    background: #011118;
    padding: 30px var(--page-gutter);
}

footer nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

footer ul {
    list-style: none;
    display: flex;
    gap: 22px;
    align-items: center;
}

footer a {
    font-size: 14px;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-green);
}

.section2 img {
    width: 26px;
    height: 26px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: none;
    }

    .dual-layout {
        grid-template-columns: 1fr;
    }

    .dual-media {
        order: -1;
    }

    .media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    main {
        gap: clamp(48px, 10vw, 80px);
    }

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

    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-wrapper {
        padding: clamp(40px, 10vw, 56px) clamp(24px, 6vw, 40px);
    }
}

@media (max-width: 640px) {
    .breadcrumb {
        margin-bottom: 24px;
        font-size: 12px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    }

    .feature-card {
        padding: 22px;
    }

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

    .media-item.wide,
    .media-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .contactoelements {
        flex-direction: column;
        text-align: center;
    }

    .phonesection,
    .ubicationsection,
    .emailsection {
        justify-content: center;
    }

    footer nav {
        flex-direction: column;
        text-align: center;
    }

    footer ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
