﻿:root {
    --azul-fondo: #6b7d8d;
    --azul-card: rgba(240, 242, 245, 0.92);
    --azul-card-full: rgba(240, 242, 245, 1);
    --azul-panel: rgba(245, 247, 250, 0.95);
    --dorado: #b8963e;
    --dorado-brillante: #c9a84c;
    --texto: #2d3436;
    --muted: #636e72;
    --sombra-dorada: rgba(184, 150, 62, 0.15);
    --borde: rgba(184, 150, 62, 0.2);
    --transicion: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    overflow-x: hidden;
}

body::after {
    content: "";
    background-image: url('Imagenes/logo/Logo_final.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 46vw;
    opacity: 0.15;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 101;
    background: linear-gradient(90deg, #7a8d9c, #c9a84c, #7a8d9c);
    text-align: center;
    padding: 8px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-bar a:hover {
    color: #fff7d2;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    position: sticky;
    top: 37px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(184, 150, 62, 0.15);
}

.header-logo {
    height: 80px;
    width: auto;
    opacity: 0.86;
    border-radius: 10%;
    transition: opacity var(--transicion);
}

.header-logo:hover {
    opacity: 1;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #2d3436;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    transition: background var(--transicion), color var(--transicion), border-color var(--transicion), transform var(--transicion);
}

nav a:not(.whatsapp-link):hover,
nav a:not(.whatsapp-link):focus-visible,
.nav-link-active {
    background: rgba(212, 175, 55, 0.08);
    color: var(--dorado-brillante);
    border-color: rgba(212, 175, 55, 0.34);
    outline: none;
}

.whatsapp-link {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-link:hover,
.whatsapp-link:focus-visible {
    background: #128c7e;
    transform: translateY(-1px);
    outline: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dorado);
    border-radius: 2px;
}

.hero,
.company-intro,
.solutions-overview,
.marcas-slider,
.products-grid,
.galeria-sensores,
.cotizacion-final,
footer {
    position: relative;
    z-index: 10;
}

.hero {
    padding: 88px 8% 56px;
    text-align: right;
    animation: heroEntrada 0.8s ease both;
}

.hero-kicker {
    margin: 0 0 12px;
    color: var(--dorado-brillante);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-content {
    max-width: 780px;
    margin-left: auto;
}

.hero-content h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.02;
    margin: 0 0 20px;
}

.hero-copy {
    max-width: 620px;
    margin: 0 0 28px auto;
    color: #555;
    font-size: 1.03rem;
    line-height: 1.7;
}

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

.hero-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-soluciones,
.btn-secondary,
.btn-ver-mas,
.btn-whatsapp-grande {
    transition: background var(--transicion), color var(--transicion), box-shadow var(--transicion), transform var(--transicion);
}

.btn-soluciones,
.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 8px;
}

.btn-soluciones {
    border: 2px solid var(--dorado);
    color: var(--dorado);
}

.btn-soluciones:hover,
.btn-soluciones:focus-visible {
    background: var(--dorado);
    color: #1a2530;
    box-shadow: 0 0 20px var(--sombra-dorada);
    outline: none;
}

.btn-secondary {
    border: 2px solid rgba(0, 0, 0, 0.12);
    color: #2d3436;
    background: rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--dorado-brillante);
    outline: none;
}

.company-intro {
    padding: 24px 8% 10px;
    display: flex;
    justify-content: center;
}

.intro-container,
.overview-card,
.cotizacion-container,
.product-card {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.intro-container {
    max-width: 980px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    padding: 36px 40px;
    border-radius: 24px;
    border: 1px solid var(--borde);
    text-align: center;
    line-height: 1.75;
}

.intro-highlights {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.highlight-pill {
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(212, 175, 55, 0.06);
    color: var(--dorado-brillante);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
}

.solutions-overview {
    padding: 54px 8% 10px;
}

.section-heading {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dorado-brillante);
    font-size: 0.8rem;
    font-weight: 700;
}

.section-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.section-heading p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

.overview-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.overview-card {
    background: var(--azul-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--borde);
    border-radius: 20px;
    padding: 28px;
}

.overview-card h3 {
    margin-top: 0;
    color: var(--dorado-brillante);
}

.overview-list {
    margin: 0;
    padding-left: 18px;
    color: #555;
    line-height: 1.8;
}

.marcas-slider {
    padding: 42px 0;
    text-align: center;
}

.slider-title,
.galeria-title {
    color: var(--dorado-brillante);
    font-size: 1.8rem;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 20px 0;
    border-top: none;
    border-bottom: none;
}

.slider-container:hover .slider-track {
    animation-play-state: paused;
}

.slider-track {
    display: flex;
    animation: scrollLateral 25s linear infinite;
    will-change: transform;
    touch-action: pan-y;
    cursor: grab;
}

.slide {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.slide img {
    height: 55px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    transition: transform var(--transicion), filter var(--transicion);
    filter: brightness(0.92);
}

.slide img:hover {
    transform: scale(1.1);
    filter: brightness(1);
}

.products-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 50px 8%;
    max-width: 1280px;
    margin: 0 auto;
    scroll-margin-top: 110px;
}

.product-card {
    background: var(--azul-card);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 18px;
    width: 300px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212, 175, 55, 0.18);
    transition: all 0.4s ease;
    overflow: hidden;
    max-height: 145px;
}

.product-card.clickable {
    cursor: pointer;
}

.product-card.clickable:hover {
    border-color: rgba(212, 175, 55, 0.48);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.product-card.clickable:focus-visible {
    outline: 2px solid var(--dorado);
    outline-offset: 3px;
}

.card-main-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.product-card h3 {
    margin: 0;
    font-size: 1.04rem;
    color: var(--dorado-brillante);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.product-card p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.gold-icon {
    font-size: 2rem;
    color: var(--dorado);
    flex-shrink: 0;
}

.arrow-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.sub-products {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 18px 0 0 45px;
    display: none;
    border-left: 2px solid var(--dorado);
}

.sub-products li {
    font-size: 0.92rem;
    color: #fff;
    margin-bottom: 8px;
    opacity: 0.92;
}

.product-card.card-open {
    max-height: 620px;
    background: var(--azul-card-full);
    border-color: var(--dorado);
}

.product-card.card-open .sub-products {
    display: block;
    animation: fadeIn 0.4s ease;
}

.product-card.card-open .arrow-icon {
    transform: rotate(180deg);
}

.galeria-sensores {
    padding: 58px 8%;
    text-align: center;
}

.galeria-intro {
    max-width: 760px;
    margin: 0 auto 28px;
    color: var(--muted);
    line-height: 1.7;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.sensor-item {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, background 0.4s ease;
    animation: reveal 0.6s ease backwards;
}

.sensor-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: inset 0 0 0 1px rgba(74, 90, 106, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.sensor-item:hover {
    border-color: var(--dorado);
    box-shadow: 0 0 20px var(--sombra-dorada);
    transform: translateY(-5px);
    background: rgba(58, 75, 92, 0.9);
}

.sensor-item:hover img {
    transform: scale(1.04);
    box-shadow: inset 0 0 0 1px rgba(74, 90, 106, 0.08), 0 10px 24px rgba(0, 0, 0, 0.12);
}

.sensor-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    background: rgba(22, 31, 40, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 10px;
    padding: 10px 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sensor-overlay span {
    color: var(--dorado-brillante);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.sensor-item:hover .sensor-overlay {
    opacity: 1;
    transform: translateY(0);
}

.sensor-item:nth-child(1) { animation-delay: 0.05s; }
.sensor-item:nth-child(2) { animation-delay: 0.1s; }
.sensor-item:nth-child(3) { animation-delay: 0.15s; }
.sensor-item:nth-child(4) { animation-delay: 0.2s; }
.sensor-item:nth-child(5) { animation-delay: 0.25s; }

.btn-ver-mas {
    margin-top: 30px;
    padding: 12px 32px;
    background: transparent;
    color: var(--dorado);
    border: 2px solid var(--dorado);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-ver-mas:hover,
.btn-ver-mas:focus-visible {
    background: var(--dorado);
    color: var(--azul-fondo);
    box-shadow: 0 0 15px var(--sombra-dorada);
    outline: none;
}

.btn-ver-mas-active {
    background: rgba(212, 175, 55, 0.22);
}

.cotizacion-final {
    padding: 20px 8% 60px;
    display: flex;
    justify-content: center;
}

.cotizacion-container {
    max-width: 1200px;
    width: 100%;
    background: var(--azul-card);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 26px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    overflow: hidden;
}

.resumen-intencion {
    padding: 46px;
    background: rgba(212, 175, 55, 0.04);
    border-right: 1px solid rgba(212, 175, 55, 0.12);
}

.resumen-intencion h2 {
    color: var(--dorado-brillante);
    font-size: 2rem;
    margin: 0 0 18px;
}

.resumen-intencion p,
.quote-benefits {
    line-height: 1.75;
}

.quote-benefits {
    margin: 22px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.formulario-whatsapp {
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.formulario-whatsapp h3 {
    margin-top: 0;
    color: var(--dorado-brillante);
    font-size: 1.14rem;
    font-weight: 600;
    line-height: 1.55;
}

.formulario-whatsapp label {
    display: block;
    font-size: 0.82rem;
    color: var(--dorado);
    margin-bottom: 5px;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.selector-box {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#categoria-select,
#subcategoria-select,
#nombre-contacto,
#empresa-contacto,
#aplicacion-contacto {
    width: 100%;
    padding: 12px;
    background: #f5f7fa;
    color: #2d3436;
    border: 1px solid rgba(184, 150, 62, 0.35);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transicion), box-shadow var(--transicion);
}

#categoria-select,
#subcategoria-select {
    cursor: pointer;
}

#aplicacion-contacto {
    min-height: 108px;
    resize: vertical;
}

#categoria-select:focus,
#subcategoria-select:focus,
#nombre-contacto:focus,
#empresa-contacto:focus,
#aplicacion-contacto:focus {
    border-color: var(--dorado);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

#subcategoria-select:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    background: #eef0f2;
}

.btn-whatsapp-grande {
    margin-top: 18px;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp-grande:hover,
.btn-whatsapp-grande:focus-visible {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.28);
    outline: none;
}

footer {
    padding: 36px 8% 44px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px 36px;
    text-align: center;
}

.footer-brand {
    margin: 0;
    font-weight: 600;
    color: var(--dorado-brillante);
}

.footer-tagline {
    margin: 0;
    opacity: 0.62;
    font-size: 0.86rem;
}

.footer-contact {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-contact:hover {
    opacity: 0.85;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    border: 2px solid var(--dorado);
    animation: pulseGold 2.5s infinite;
}

.whatsapp-float i {
    font-size: 28px;
}

.float-text {
    font-size: 15px;
    font-weight: 700;
    margin-left: 10px;
    white-space: nowrap;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: scale(1.05);
    background-color: #128c7e;
    box-shadow: 0 6px 20px var(--sombra-dorada);
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--dorado);
    outline-offset: 3px;
}

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

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

@keyframes reveal {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scrollLateral {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulseGold {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7), 0 4px 15px rgba(0, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 14px rgba(212, 175, 55, 0), 0 4px 15px rgba(0, 0, 0, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), 0 4px 15px rgba(0, 0, 0, 0.4); }
}

@media (max-width: 980px) {
    .overview-grid,
    .cotizacion-container {
        grid-template-columns: 1fr;
    }

    .resumen-intencion {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    }
}

@media (max-width: 768px) {
    body::after {
        background-size: 82vw;
    }

    header {
        flex-wrap: wrap;
        gap: 0;
    }

    .hamburger {
        display: flex;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    nav.nav-open {
        max-height: 340px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0 15px;
        gap: 6px;
    }

    .hero {
        padding-top: 70px;
        text-align: left;
    }

    .hero-content,
    .hero-copy {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .products-grid {
        padding-top: 40px;
    }

    .product-card {
        width: 100%;
    }

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .slide {
        width: 150px;
    }

    .slider-track {
        animation-duration: 12s;
    }

    .resumen-intencion,
    .formulario-whatsapp,
    .intro-container {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .top-bar a {
        font-size: 0.84rem;
    }

    .float-text {
        display: none;
    }

    .whatsapp-float {
        padding: 14px;
        right: 18px;
        bottom: 18px;
        border-radius: 50%;
    }
}

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

