:root {
    --color-bg-main: #020812;
    --color-bg-hero: radial-gradient(circle at top left, #06305a 0, #020812 55%);
    --color-bg-section-light: #f3f7ff;
    --color-bg-section-dark: radial-gradient(circle at top left, #071425 0, #020812 60%);
    --color-primary: #00c6ff;
    --color-primary-soft: #00a9e0;
    --color-secondary: #27d980;
    --color-accent: #ffc857;
    --color-text-main: #f5f7ff;
    --color-text-muted: #a9b4cf;
    --color-text-dark: #122033;
    --header-height: 82px;
    --container-width: 1200px;
    --radius-lg: 20px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background: var(--color-bg-main);
    color: var(--color-text-main);
}

/* Layout helpers */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background: var(--color-bg-section-light);
    color: var(--color-text-dark);
}

.section-dark {
    background: var(--color-bg-section-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    margin: 0 0 10px;
}

.section-description {
    max-width: 650px;
    margin: 0 auto;
    font-size: 0.97rem;
    color: #5b6479;
}

.section-description-light {
    color: var(--color-text-muted);
}

/* HEADER */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(2, 8, 18, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at 0% 0%, #22d3ee, #22c55e);
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.5);
}

.header-cta-whatsapp i {
    font-size: 1rem;
}

.logo img {
    height: 120px; /* más grande */
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Botón WhatsApp en header */

.btn-outline-whatsapp {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 10px 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e5fdf2;
    text-decoration: none;
    background: linear-gradient(
            120deg,
            rgba(48, 209, 88, 0.16),
            rgba(39, 217, 128, 0.04)
        ),
        rgba(2, 8, 18, 0.8);
    box-shadow: 0 0 0 1px rgba(48, 209, 88, 0.25);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-outline-whatsapp .icon {
    font-size: 1rem;
}

.btn-outline-whatsapp:hover {
    background: linear-gradient(120deg, #22c55e, #4ade80);
    color: #031014;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.35);
}

/* Hamburguesa (desktop hidden) */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px 0;
    background: #fff;
}

/* HERO */

.hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
    background: var(--color-bg-hero);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 198, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
    margin-bottom: 18px;
}

.hero-title {
    font-size: 2.9rem;
    line-height: 1.1;
    margin: 0 0 18px;
}

.hero-title span {
    font-weight: 700;
}

.hero-highlight {
    background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 0 0 26px;
    font-size: 0.98rem;
    color: var(--color-text-muted);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.btn-primary,
.btn-secondary,
.btn-full {
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
    color: #020617;
    box-shadow: 0 18px 40px rgba(0, 198, 255, 0.4);
}

.btn-primary:hover {
    filter: brightness(1.07);
}

.btn-secondary {
    background: transparent;
    color: #e2e8ff;
    border: 1px solid rgba(148, 163, 184, 0.8);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-full {
    width: 100%;
}

/* Métricas */

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 10px;
}

.metric-value {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
}

.metric-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* Hero media */

.hero-media {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at top left, #083049, #020617);
    box-shadow: var(--shadow-soft);
}

.hero-card img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    opacity: 0.98;
}

.hero-pill {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.98));
    color: #020617;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.9);
    max-width: 380px;
}

.hero-pill-top {
    top: 18px;
    left: 22px;
}

.hero-pill-bottom {
    bottom: 20px;
    left: 26px;
}

.hero-pill .pill-badge {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #020617;
}

.hero-pill-top .pill-badge {
    background: radial-gradient(circle at 0% 0%, #22d3ee, #0ea5e9);
}

.hero-pill-bottom .pill-badge {
    background: radial-gradient(circle at 0% 0%, #22c55e, #16a34a);
}

.hero-pill .pill-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-pill .pill-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
}

.hero-pill .pill-text {
    font-size: 0.8rem;
    color: #1f2937;
}

/* Cards de líneas */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.section-light .product-card {
    background: #ffffff;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.product-card-image {
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 14px 10px;
}

.product-card-image img {
    width: 100%;
    max-height: 200px;
    display: block;
    object-fit: contain;  /* ya no recorta, solo ajusta */
    border-radius: 18px;
}

.product-card-body {
    padding: 18px 18px 20px;
}

.product-card-body h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.product-card-body p {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: #4b5563;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-primary-soft);
    text-decoration: none;
}

.product-link .arrow {
    transition: transform 0.18s ease;
}

.product-link:hover .arrow {
    transform: translateX(3px);
}

/* MARCAS */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.brand-card {
    background: #f7fafc; /* claro para contrastar logos */
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.brand-card img {
    max-width: 120px;
    max-height: 56px;
    object-fit: contain;
    filter: saturate(1.1);
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    background: #ffffff;
}

.brands-note {
    margin-top: 24px;
    font-size: 0.8rem;
    text-align: center;
    color: var(--color-text-muted);
}

/* Cotización / contacto */

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: flex-start;
}

.bullets {
    list-style: none;
    padding-left: 0;
    margin: 20px 0 24px;
}

.bullets li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.bullets li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-secondary);
}

.contact-info-block h3 {
    margin-bottom: 10px;
}

.contact-info-block p {
    margin: 0 0 4px;
    font-size: 0.9rem;
}

.contact-info-block a {
    color: var(--color-primary-soft);
    text-decoration: none;
}

.contact-info-block .icon {
    margin-right: 6px;
}

/* Formulario */

.quote-form {
    background: #ffffff;
    border-radius: 22px;
    padding: 20px 22px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 0.83rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2933;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 12px;
    border: 1px solid #cbd5f0;
    padding: 9px 11px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(0, 198, 255, 0.45);
}

.form-note {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 6px 0 14px;
}

/* FOOTER */

.site-footer {
    background: #020814;
    color: var(--color-text-muted);
    padding-top: 34px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1.4fr 1.4fr;
    gap: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-logo {
    max-width: 120px;
    margin-bottom: 10px;
}

.footer-block h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.footer-block p {
    margin: 0 0 4px;
    font-size: 0.86rem;
}

.footer-block a {
    color: var(--color-primary-soft);
    text-decoration: none;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin: 0 0 10px;
}

.footer-links li {
    margin-bottom: 4px;
}

.footer-links a {
    font-size: 0.86rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.footer-social a i {
    font-size: 1.05rem;
    color: #e5f3ff;
}

.footer-social a:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, 0.9);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.6);
}

.footer-bottom {
    padding: 10px 0 14px;
    background: #010612;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.footer-bottom-inner a {
    color: var(--color-primary-soft);
    text-decoration: none;
}

/* WhatsApp float */

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: radial-gradient(circle at 0% 0%, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.7);
    z-index: 60;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 1.8rem;
    color: #f9fafb;
}

.contact-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

.contact-link:hover {
    color: var(--color-accent);
    text-decoration-style: solid;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-contact-item i {
    font-size: 1rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.footer-contact-link {
    color: inherit;
    text-decoration: none;
}

.footer-contact-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin: 4px 0;
}

.cotizacion-alerta {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.cotizacion-alerta--success {
  background: #0f766e1a;
  color: #22c55e;
  border: 1px solid #22c55e33;
}

.cotizacion-alerta--error {
  background: #7f1d1d1a;
  color: #f97373;
  border: 1px solid #f9737333;
}

/* Responsive */

@media (max-width: 992px) {
    :root {
        --header-height: 76px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-media {
        order: -1;
        justify-content: center;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .two-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .header-inner {
        gap: 16px;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        padding: 14px 24px 18px;
        flex-direction: column;
        background: #020817;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle {
        display: inline-block;
    }

    .btn-outline-whatsapp {
        display: none;
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .hero-card img {
        max-height: 320px;
    }
}