/* Metric Supply — tema claro, minimalista */

:root {
    --ink: #0a0a0a;
    --bg: #fafaf9;
    --surface: #ffffff;
    --surface-elevated: #f5f5f4;
    --surface-muted: #f0efed;
    --border: #e7e5e4;
    --text: #171717;
    --text-muted: #525252;
    --text-subtle: #737373;
    --accent: #171717;
    --img-bright: brightness(1.14) contrast(1.06) saturate(1.08);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --container: 1140px;
    --space: 1.5rem;
    --radius: 6px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Imágenes más claras sobre fondo claro */
.media-frame img,
.service-card__image img {
    filter: var(--img-bright);
    transition: filter 0.35s ease, transform 0.45s ease;
}

.media-frame:hover img,
.service-card:hover .service-card__image img {
    filter: brightness(1.2) contrast(1.08) saturate(1.12);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 72px;
    gap: 1rem;
}

.logo {
    justify-self: center;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: none;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.nav--left {
    justify-self: start;
}

.nav--right {
    justify-self: end;
}

.nav a {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    justify-self: end;
}

.nav-toggle span {
    display: block;
    height: 1px;
    background: var(--text);
}

/* Hero */
.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.hero__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero__inner {
    max-width: 42rem;
}

.media-frame {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.media-frame--flat {
    box-shadow: none;
}

.hero__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-subtle);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero__text {
    color: var(--text-muted);
    font-size: 1.0625rem;
    max-width: 36rem;
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
    background: var(--accent);
    color: #ffffff;
}

.btn--primary:hover {
    background: #404040;
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--text-muted);
    background: var(--surface);
}

.btn--block {
    width: 100%;
}

/* Secciones */
.section {
    padding: 5rem 0;
}

.section__title {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-subtle);
    margin-bottom: 1rem;
}

.section__lead {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text);
    max-width: 28rem;
}

.section__header {
    margin-bottom: 2.5rem;
}

.section__header--center {
    text-align: center;
}

.section__header--center .section__subtitle {
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.section__subtitle {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Nosotros */
.about {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.about__grid {
    display: grid;
    gap: 3rem;
}

.about__media img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.about__content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.stats strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.stats span {
    font-size: 0.8125rem;
    color: var(--text-subtle);
}

/* Servicios */
.services {
    background: var(--bg);
}

.services__grid {
    display: grid;
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-card__image {
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--surface-muted);
}

.service-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.service-card:hover .service-card__image img {
    transform: scale(1.03);
}

.service-card__body {
    padding: 1.5rem 1.75rem 2rem;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Carruseles — Clientes y Marcas */
.showcase {
    border-top: 1px solid var(--border);
}

.showcase--clients {
    background: var(--surface-elevated);
}

.showcase--brands {
    background: var(--surface);
}

.carousel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 120px;
    padding: 1.25rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.showcase--brands .carousel-card {
    background: var(--surface-elevated);
}

.carousel-card:hover {
    border-color: #d6d3d1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.carousel-card img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    filter: none;
}

.carousel-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--surface-muted);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-subtle);
}

.carousel-card__name {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
}

/* Clientes y marcas — nombre sobre el logo (bottom) */
.carousel-card--showcase {
    min-height: 160px;
    padding: 0.75rem;
    justify-content: center;
    gap: 0;
}

.carousel-card--showcase .carousel-card__logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: calc(var(--radius) - 2px);
    background: var(--surface-muted);
}

.carousel-card--showcase .carousel-card__logo img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.carousel-card--showcase .carousel-card__name--overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: center;
    color: #ffffff;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(4px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-card--showcase .carousel-card__placeholder {
    width: 72px;
    height: 72px;
    font-size: 1rem;
}

/* Owl Carousel — estilo minimalista */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    transition: background 0.2s, border-color 0.2s;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: var(--surface-elevated) !important;
    border-color: var(--text-muted) !important;
}

.owl-carousel .owl-nav button.owl-prev {
    left: -0.5rem;
}

.owl-carousel .owl-nav button.owl-next {
    right: -0.5rem;
}

.owl-carousel .owl-item {
    padding: 0.25rem 0;
}

.showcase .owl-carousel {
    position: relative;
    padding: 0 2.5rem;
}

/* Contacto */
.contact {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.contact__grid {
    display: grid;
    gap: 4rem;
}

.contact__list {
    list-style: none;
    margin-top: 2.5rem;
}

.contact__list li {
    margin-bottom: 1.5rem;
}

.contact__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-subtle);
    margin-bottom: 0.35rem;
}

.contact__list a {
    color: var(--text);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.contact__list a:hover {
    border-color: var(--text-muted);
}

.form-notice {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    background: var(--surface-elevated);
    border-radius: var(--radius);
}

.contact__form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__offices {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.contact__offices-title {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-subtle);
    margin-bottom: 1.25rem;
}

.contact__offices-media {
    margin: 0 auto;
    max-width: 50%;
}

.contact__offices-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Footer */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    background: var(--surface-elevated);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer__logo img {
    height: 24px;
    width: auto;
    opacity: 0.9;
}

.footer__copy {
    font-size: 0.8125rem;
    color: var(--text-subtle);
}

.footer__lang {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

.footer__lang-label {
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.6875rem;
    font-weight: 500;
}

.footer__lang-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.footer__lang-link:hover,
.footer__lang-link.is-active {
    color: var(--text);
}

.footer__lang-link.is-active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__lang-sep {
    color: var(--border);
}

/* WhatsApp */
.btn--whatsapp {
    margin-top: 2rem;
    background: #25d366;
    color: #ffffff;
    border: none;
}

.btn--whatsapp:hover {
    background: #1da851;
}

.contact__wa {
    display: inline-flex;
}

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.whatsapp-float:hover {
    background: #1da851;
    transform: scale(1.06);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float__icon {
    width: 28px;
    height: 28px;
}

/* Responsive */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav {
        display: flex;
    }

    .hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .about__grid {
        grid-template-columns: 0.85fr 1.15fr;
        grid-template-rows: auto auto;
        gap: 2rem 4rem;
        align-items: start;
    }

    .about__media {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .about__intro {
        grid-column: 2;
        grid-row: 1;
    }

    .about__content {
        grid-column: 2;
        grid-row: 2;
    }

    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact__grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: start;
    }

    .footer__inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        text-align: left;
        gap: 1.5rem;
    }

    .footer__lang {
        justify-content: center;
    }

    .footer__copy {
        text-align: right;
    }
}

/* Menú móvil */
@media (max-width: 767px) {
    .header__inner {
        grid-template-columns: 1fr auto auto;
        padding: 0.5rem 0;
    }

    .nav--left,
    .nav--right {
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 var(--space) 0.5rem;
        background: var(--surface);
    }

    .nav--left {
        grid-row: 2;
        border-top: 1px solid var(--border);
        padding-top: 0.5rem;
    }

    .nav--right {
        grid-row: 3;
        padding-bottom: 1rem;
    }

    .nav-toggle {
        display: flex;
        grid-column: 3;
        grid-row: 1;
        align-self: center;
    }

    .logo {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .header.menu-open .nav--left,
    .header.menu-open .nav--right {
        display: flex;
    }

    .header.menu-open .nav a {
        display: block;
        padding: 0.875rem 0;
        border-bottom: 1px solid var(--border);
    }

    .header.menu-open .nav--right a:last-child {
        border-bottom: none;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .showcase .owl-carousel {
        padding: 0 1.75rem;
    }

    .owl-carousel .owl-nav button.owl-prev {
        left: 0;
    }

    .owl-carousel .owl-nav button.owl-next {
        right: 0;
    }

    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 52px;
    }
}
