* {
    box-sizing: border-box;
}

:root {
    --blue-dark: #08386f;
    --blue: #0574df;
    --blue-2: #0b8ef3;
    --cyan: #03c7d9;
    --green: #10b981;
    --text: #0b376a;
    --muted: #57708f;
    --line: #dce8f3;
    --soft: #eff8ff;
    --soft-2: #f7fbff;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

body,
button,
input,
textarea,
select {
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

/* =========================
   CABECERA
========================= */

.public-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.98);
    box-shadow: 0 2px 10px rgba(13,57,103,.06);
}

.nav-shell {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 245px;
}

.public-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand-symbol {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #0757aa, #0ac8d6);
    color: #fff;
    font-weight: 900;
    font-size: 22px;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong,
.brand-copy small {
    display: block;
}

.brand-copy strong {
    font-size: 16px;
    line-height: 1.05;
    color: #0d427c;
}

.brand-copy small {
    margin-top: 4px;
    font-size: 7px;
    letter-spacing: .13em;
    color: #7b8ea7;
}

.public-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.public-nav a {
    position: relative;
    padding: 27px 0 23px;
    text-decoration: none;
    font-size: 13px;
    color: #304d70;
}

.public-nav a.active,
.public-nav a:hover {
    color: #006ad9;
}

.public-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #0788ef;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-link {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 21px;
    color: #006bd8;
    border-right: 1px solid #e0e8f2;
}

.contact-pill {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 13px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #0879ea, #09bdcb);
    box-shadow: 0 8px 20px rgba(4,127,210,.18);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 11px;
    background: #eef7ff;
    color: #07549e;
    font-size: 20px;
}

/* =========================
   HERO
========================= */

.hero-reference {
    position: relative;
    overflow: hidden;
    background: #063667;
}

.hero-reference-slide {
    min-height: 390px;
    display: none;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-reference-slide.active {
    display: flex;
}

.hero-no-image {
    background:
        radial-gradient(circle at 75% 20%, rgba(0,209,224,.22), transparent 28%),
        linear-gradient(135deg, #042c56, #075ca9);
}

.hero-reference-content {
    color: #fff;
    padding-top: 54px;
    padding-bottom: 54px;
}

.reference-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: .16em;
    font-weight: 800;
    color: #20dbe7;
}

.hero-reference-content h1 {
    max-width: 620px;
    margin: 0 0 14px;
    font-size: clamp(39px, 5vw, 58px);
    line-height: .98;
    letter-spacing: -.035em;
}

.hero-reference-content h1 span {
    color: #11d3dd;
}

.hero-reference-content p {
    max-width: 610px;
    margin: 0 0 24px;
    color: rgba(255,255,255,.9);
    font-size: 15px;
    line-height: 1.55;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-blue,
.btn-white {
    min-height: 45px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 13px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.btn-blue {
    color: #fff;
    background: #0878ea;
}

.btn-white {
    background: #fff;
    color: #0d4f90;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(5,48,91,.76);
    color: #fff;
    font-size: 26px;
    z-index: 5;
    cursor: pointer;
}

.hero-arrow-left {
    left: 18px;
}

.hero-arrow-right {
    right: 18px;
}

.hero-reference-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}

.hero-reference-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer;
}

.hero-reference-dots button.active {
    background: #fff;
    transform: scale(1.15);
}

/* =========================
   NOSOTROS
========================= */

.reference-about {
    padding: 25px 0 27px;
    background:
        linear-gradient(135deg, rgba(233,246,255,.95), transparent 35%),
        #fff;
}

.reference-about-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 52px;
    align-items: center;
}

.reference-about-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 13px;
    display: block;
    box-shadow: 0 10px 28px rgba(21,71,119,.12);
}

.about-fallback {
    height: 250px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #fff;
    background: linear-gradient(135deg, #0b5fae, #0bc3d0);
}

.about-fallback span {
    font-size: 74px;
    font-weight: 900;
}

.reference-section-label {
    display: block;
    margin-bottom: 7px;
    color: #0095d7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
}

.reference-about-copy h2,
.reference-heading-row h2,
.testimonial-intro h2,
.reference-cta-box h2 {
    margin: 0;
    color: #0b3a70;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.05;
    letter-spacing: -.025em;
}

.about-text {
    margin-top: 10px;
    color: #55708e;
    font-size: 14px;
    line-height: 1.55;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 19px;
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #0b85ed;
    font-size: 22px;
    background: #eef8ff;
}

.about-stat strong,
.about-stat span {
    display: block;
}

.about-stat strong {
    color: #073b76;
    font-size: 21px;
    line-height: 1;
}

.about-stat span {
    margin-top: 4px;
    font-size: 10px;
    color: #5f7894;
}

/* =========================
   SECCIONES GENERALES
========================= */

.reference-section {
    padding: 24px 0 28px;
}

.reference-soft {
    background:
        linear-gradient(90deg, rgba(235,247,255,.9), rgba(244,250,255,.96));
}

.reference-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 15px;
}

.reference-more {
    color: #0074df;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.reference-subtext {
    color: #7085a1;
    font-size: 12px;
}

/* =========================
   SISTEMAS
========================= */

.reference-system-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.reference-system-card {
    min-width: 0;
    padding: 14px 12px 12px;
    border-radius: 13px;
    text-align: center;
    background: #fff;
    border: 1px solid #dfeaf4;
    box-shadow: 0 6px 15px rgba(27,74,120,.05);
}

.system-icon-box {
    width: 48px;
    height: 48px;
    margin: 0 auto 9px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #087cf0, #05bdc6);
    box-shadow: 0 8px 18px rgba(0,117,218,.2);
}

.system-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.system-icon-box span {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.reference-system-card h3 {
    margin: 0 0 3px;
    color: #0b3b73;
    font-size: 16px;
}

.reference-system-card p {
    min-height: 40px;
    margin: 0;
    color: #607996;
    font-size: 11px;
    line-height: 1.35;
}

.system-button {
    min-height: 34px;
    margin-top: 10px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    text-decoration: none;
    background: linear-gradient(135deg, #087bdf, #08afc5);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

/* =========================
   PRODUCTOS
========================= */

.product-carousel-shell {
    position: relative;
    padding: 0 12px;
}

.reference-product-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 5);
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.reference-product-track::-webkit-scrollbar {
    display: none;
}

.reference-product-card {
    min-width: 0;
    padding: 11px 10px 12px;
    text-align: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dfe8f2;
    scroll-snap-align: start;
}

.reference-product-image {
    height: 118px;
    display: grid;
    place-items: center;
    text-decoration: none;
    overflow: hidden;
}

.reference-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.product-empty {
    color: #90a0b2;
    font-size: 12px;
}

.reference-product-card h3 {
    margin: 5px 0 3px;
    min-height: 32px;
    color: #0a3d76;
    font-size: 12px;
    line-height: 1.25;
}

.reference-price {
    display: block;
    margin-bottom: 8px;
    color: #006fe0;
    font-size: 13px;
}

.reference-detail {
    min-height: 30px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #0788ef;
    color: #0672d4;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.carousel-arrow,
.client-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 1px solid #d5e2ef;
    background: #fff;
    color: #0877dd;
    font-size: 24px;
    box-shadow: 0 5px 14px rgba(25,77,127,.08);
    cursor: pointer;
}

.carousel-left {
    left: -30px;
}

.carousel-right {
    right: -30px;
}

/* =========================
   TESTIMONIOS
========================= */

.reference-testimonials {
    padding: 22px 0 26px;
    background:
        linear-gradient(90deg, #eef8ff, #f7fbff);
}

.reference-testimonials-grid {
    display: grid;
    grid-template-columns: .38fr 1.62fr;
    gap: 34px;
    align-items: center;
}

.testimonial-intro h2 {
    font-size: 30px;
}

.testimonial-intro p {
    margin: 8px 0 0;
    color: #617a97;
    font-size: 12px;
}

.testimonial-slider-shell {
    position: relative;
    min-width: 0;
}

.testimonial-window {
    overflow: hidden;
    border-radius: 13px;
}

.testimonial-inner {
    display: flex;
    transition: transform .35s ease;
}

.reference-testimonial-card {
    min-width: 100%;
    padding: 18px 25px 17px 72px;
    position: relative;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #e2eaf2;
    box-shadow: 0 7px 20px rgba(28,79,130,.07);
}

.quote-symbol {
    position: absolute;
    left: 21px;
    top: 7px;
    color: #00b6c7;
    font-size: 62px;
    font-weight: 900;
    line-height: 1;
}

.reference-testimonial-card > p {
    min-height: 44px;
    margin: 0 0 10px;
    color: #506b89;
    font-size: 12px;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 11px;
}

.testimonial-person img,
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-avatar {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #0783eb, #08bbc8);
}

.testimonial-stars {
    color: #ffb700;
    font-size: 11px;
    letter-spacing: 1px;
}

.testimonial-person strong,
.testimonial-person small {
    display: block;
}

.testimonial-person strong {
    margin-top: 2px;
    color: #0b3f79;
    font-size: 12px;
}

.testimonial-person small {
    color: #71859b;
    font-size: 10px;
}

.testimonial-arrow {
    position: absolute;
    top: 48%;
    z-index: 6;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid #d9e5f0;
    border-radius: 50%;
    background: #fff;
    color: #0781e6;
    font-size: 23px;
    cursor: pointer;
}

.testimonial-prev {
    left: -43px;
}

.testimonial-next {
    right: -43px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 7px;
}

.testimonial-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #bcd1e5;
}

.testimonial-dots button.active {
    background: #0a83e8;
}

/* =========================
   EQUIPO
========================= */

.reference-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.reference-team-card {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 112px;
    border-radius: 13px;
    overflow: hidden;
    border: 1px solid #dde7f1;
    background: #fff;
}

.team-photo-circle {
    width: 42%;
    height: 112px;
    background:
        radial-gradient(circle at center, #f2f7fc 0 52%, #dfeaf4 53% 100%);
    overflow: hidden;
}

.team-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-copy {
    flex: 1;
    padding: 13px 14px;
}

.team-card-copy h3 {
    margin: 0 0 3px;
    color: #0c417b;
    font-size: 13px;
}

.team-card-copy p {
    margin: 0;
    color: #71859c;
    font-size: 10px;
}

.team-links {
    display: flex;
    gap: 7px;
    margin-top: 10px;
}

.team-links a {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #075ca9;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
}

/* =========================
   CLIENTES
========================= */

.reference-clients {
    position: relative;
    padding: 11px 0 19px;
    border-top: 1px solid #edf2f7;
}

.clients-reference-shell {
    position: relative;
    margin-top: 7px;
    padding: 0 18px;
}

.clients-reference-window {
    overflow: hidden;
}

.clients-reference-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: clientLoop 30s linear infinite;
    will-change: transform;
}

.reference-client-logo {
    width: 150px;
    height: 72px;
    display: grid;
    place-items: center;
    padding: 9px 14px;
    opacity: .78;
    transform: scale(.94);
    transition:
        transform .2s ease,
        opacity .2s ease;
}

.reference-client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reference-client-logo.is-center {
    opacity: 1;
    transform: scale(1.08);
}

@keyframes clientLoop {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.client-prev {
    left: -20px;
}

.client-next {
    right: -20px;
}

/* =========================
   CTA
========================= */

.reference-cta {
    padding: 15px 0 17px;
}

.reference-cta-box {
    min-height: 145px;
    padding: 26px 32px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(3,53,102,.96), rgba(4,57,108,.78)),
        radial-gradient(circle at right, rgba(0,201,219,.22), transparent 30%),
        #073867;
    box-shadow: 0 11px 28px rgba(14,59,104,.12);
}

.reference-cta-copy {
    max-width: 560px;
}

.reference-cta-copy > span {
    display: block;
    margin-bottom: 5px;
    color: #17d7e4;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.reference-cta-box h2 {
    color: #fff;
    font-size: 29px;
}

.reference-cta-box p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 12px;
}

.reference-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-whatsapp,
.cta-email {
    min-height: 42px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.cta-whatsapp {
    background: #14bf57;
    color: #fff;
}

.cta-email {
    color: #fff;
    border: 1px solid rgba(255,255,255,.72);
}

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

.reference-footer {
    background: #fff;
}

.reference-footer-top {
    min-height: 70px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid #dfe8f1;
}

.footer-public-brand {
    min-width: 0;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: #385875;
    text-decoration: none;
    font-size: 11px;
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.footer-socials a {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #0877dc;
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
}

.reference-footer-bottom {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #667f9b;
    font-size: 10px;
}

.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    z-index: 90;
    border: 0;
    border-radius: 50%;
    background: #087de5;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,109,211,.22);
    cursor: pointer;
}

/* =========================
   CATÁLOGO / DETALLE
   Se conservan para productos.php y producto.php
========================= */

.catalog-nav {
    position: relative;
    background: #fff;
    border-bottom: 1px solid #e0e8f1;
}

.nav-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0b3c74;
    font-weight: 800;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand-mark-public {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #0879e6, #0abccb);
}

.btn-outline,
.btn-primary-public {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border-radius: 11px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.btn-outline {
    color: #0b5ba8;
    border: 1px solid #bed2e5;
    background: #fff;
}

.btn-primary-public {
    color: #fff;
    background: linear-gradient(135deg, #0878e4, #08b9c8);
}

.catalog-hero {
    padding: 58px 0;
    color: #fff;
    background:
        radial-gradient(circle at right, rgba(6,204,219,.25), transparent 30%),
        linear-gradient(135deg, #073765, #0877cb);
}

.catalog-hero h1 {
    margin: 6px 0 7px;
    font-size: 42px;
}

.catalog-hero p {
    max-width: 640px;
    color: rgba(255,255,255,.86);
}

.section {
    padding: 55px 0;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.category-filter a {
    min-height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d6e2ed;
    border-radius: 999px;
    text-decoration: none;
    color: #4d6884;
    font-size: 12px;
    font-weight: 700;
}

.category-filter a.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #0877df, #09bac7);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
}

.product-card {
    overflow: hidden;
    border: 1px solid #dfe8f1;
    border-radius: 14px;
    background: #fff;
}

.product-image {
    height: 210px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8fbfd;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #8ca0b4;
}

.product-body {
    padding: 15px;
}

.product-category {
    color: #09a9bd;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.product-body h3 {
    margin: 6px 0 7px;
    font-size: 16px;
    color: #0b3e76;
}

.product-body h3 a {
    text-decoration: none;
}

.product-body p {
    margin: 0;
    color: #667f98;
    font-size: 12px;
}

.product-footer {
    margin-top: 13px;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e7eef5;
}

.product-footer strong {
    color: #0873d7;
}

.product-footer a {
    color: #0873d7;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.empty-public {
    padding: 50px 20px;
    text-align: center;
    border-radius: 15px;
    background: #f5faff;
}

.site-footer {
    margin-top: 35px;
    background: #07345f;
    color: #bcd0e3;
}

.footer-bottom {
    padding: 18px 0;
    font-size: 11px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    gap: 50px;
    align-items: start;
}

.product-main-image {
    min-height: 470px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dfe8f1;
    border-radius: 18px;
    background: #f8fbfd;
}

.product-main-image img {
    width: 100%;
    height: 470px;
    object-fit: contain;
    padding: 20px;
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 9px;
}

.product-thumbs button {
    height: 72px;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #dbe5ef;
    background: #fff;
}

.product-thumbs button.active {
    border-color: #0878df;
}

.product-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-copy h1 {
    margin: 4px 0 6px;
    color: #0a3a71;
    font-size: 40px;
}

.product-reference {
    color: #758aa0;
    font-size: 12px;
}

.product-detail-price {
    margin: 18px 0 14px;
    color: #0872d5;
    font-size: 28px;
    font-weight: 900;
}

.product-lead,
.product-full-description {
    color: #5d7692;
}

.product-full-description {
    margin: 17px 0 22px;
    padding-top: 16px;
    border-top: 1px solid #e2eaf2;
}

/* =========================
   ANIMACIÓN SCROLL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .55s ease,
        transform .55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1050px) {
    .public-brand {
        min-width: 200px;
    }

    .public-nav {
        gap: 15px;
    }

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

    .reference-product-track {
        grid-auto-columns: calc((100% - 20px) / 3);
    }

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

@media (max-width: 820px) {
    .mobile-toggle {
        display: grid;
        place-items: center;
    }

    .public-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 18px;
        right: 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 16px 40px rgba(13,61,108,.15);
    }

    .public-nav.open {
        display: flex;
    }

    .public-nav a {
        padding: 11px 12px;
    }

    .public-nav a.active::after {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .reference-about-grid,
    .reference-testimonials-grid,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .reference-about-image img {
        height: 300px;
    }

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

    .reference-team-grid {
        grid-template-columns: 1fr;
    }

    .reference-cta-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .reference-footer-top {
        padding: 18px 0;
        grid-template-columns: 1fr;
    }

    .footer-nav,
    .footer-socials {
        justify-content: flex-start;
    }

    .reference-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .testimonial-prev {
        left: -10px;
    }

    .testimonial-next {
        right: -10px;
    }

    .carousel-left {
        left: -5px;
    }

    .carousel-right {
        right: -5px;
    }

    .client-prev {
        left: -5px;
    }

    .client-next {
        right: -5px;
    }

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

@media (max-width: 580px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .nav-shell {
        min-height: 64px;
    }

    .public-brand img {
        width: 40px;
        height: 40px;
    }

    .brand-copy strong {
        font-size: 13px;
    }

    .brand-copy small {
        font-size: 6px;
    }

    .hero-reference-slide {
        min-height: 465px;
    }

    .hero-reference-content h1 {
        font-size: 39px;
    }

    .reference-about,
    .reference-section,
    .reference-testimonials {
        padding-top: 28px;
        padding-bottom: 30px;
    }

    .reference-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .reference-product-track {
        grid-auto-columns: 78%;
    }

    .testimonial-intro h2 {
        font-size: 28px;
    }

    .reference-testimonial-card {
        padding-left: 56px;
    }

    .quote-symbol {
        left: 14px;
        font-size: 52px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

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

    .product-main-image,
    .product-main-image img {
        min-height: 340px;
        height: 340px;
    }

    .product-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .reference-cta-actions {
        width: 100%;
    }

    .cta-whatsapp,
    .cta-email {
        width: 100%;
        justify-content: center;
    }
}


/* ===== LOGO CORPORATIVO DYLIS SYSTEMS SRL ===== */
.public-brand {
    min-width: 225px;
}

.public-brand img.corporate-logo {
    width: 215px !important;
    height: 48px !important;
    max-width: 215px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.footer-public-brand img.corporate-logo {
    width: 210px !important;
    height: 48px !important;
}

@media (max-width: 1050px) {
    .public-brand {
        min-width: 185px;
    }

    .public-brand img.corporate-logo {
        width: 185px !important;
        max-width: 185px;
    }
}

@media (max-width: 580px) {
    .public-brand {
        min-width: 0;
    }

    .public-brand img.corporate-logo {
        width: 165px !important;
        height: 40px !important;
        max-width: 165px;
    }
}
