* {
    box-sizing: border-box;
}

:root {
    --header-height: 71px;
    --brand-blue: #007CC3;
    --brand-navy: #002447;
    --brand-orange: #FF8A00;
    --bs-body-color: var(--brand-navy);
    --bs-heading-color: inherit;
    --bs-emphasis-color: var(--brand-navy);
    --bs-link-color: var(--brand-navy);
    --bs-link-hover-color: var(--brand-navy);
    --bs-font-sans-serif: 'Archivo', sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    color: var(--brand-navy);
    margin: 0;
    font-family: var(--bs-body-font-family);
    line-height: 1.5;
}

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

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
}



.site-header,
.site-footer {
    background-color: var(--brand-blue);
    color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.site-menu {
    --bs-offcanvas-width: calc(100vw * 2 / 3);
    background-color: var(--brand-blue);
    color: #fff;
}

.site-menu .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.site-menu .offcanvas-title {
    font-size: 1rem;
}

.site-menu .nav-link {
    padding-block: 0.75rem;
    color: inherit;
}

.site-menu .nav-link:hover {
    text-decoration: underline;
}

.footer-brand {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    gap: 1rem;
}

.site-footer .footer-copyright {
    margin: 0;
    font-size: 0.5rem;
}

.main-nav {
    min-height: var(--header-height);
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand a {
    display: inline-block;
}

.brand-logo,
.footer-logo {
    width: 88px;
    height: 32px;
    object-fit: contain;
    object-position: left center;
}

.menu-button {
    min-height: 44px;
    padding: 0 0.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

.site-header a:focus-visible,
.menu-button:focus-visible,
.site-footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.footer-container {
    max-width: 1200px;
    margin-inline: auto;
    min-height: 90px;
    padding: 0.6875rem 0.6875rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.7fr);
    gap: 0.75rem;
    align-items: start;
    font-size: 0.625rem;
    line-height: 1.4;
}

.footer-logo {
    max-width: 100%;
}

.site-footer h2 {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.site-footer p {
    margin: 0 0 0.375rem;
}

.footer-contact a {
    overflow-wrap: anywhere;
}

.footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 0.25rem;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .main-nav {
        padding-inline: 2rem;
    }

    .footer-container {
        padding: 1.5rem 2rem;
        gap: 2rem;
        font-size: 0.875rem;
    }

    .site-footer h2 {
        font-size: 1rem;
    }
}

/* Responsive spacing and readable content widths, guided by the wireframe. */
:root {
    --page-gutter: clamp(1rem, 6vw, 3rem);
    --space-md: clamp(1rem, 3vw, 1.5rem);
    --space-lg: clamp(2rem, 6vw, 3.5rem);
    --section-space: clamp(4rem, 12dvh, 8rem);
}

/* Sections follow the live viewport and grow when content needs more room. */
.home-scroll {
    min-height: calc(100dvh - var(--header-height));
}

.hero {
    min-height: calc(100dvh - var(--header-height));
}

.hero-container {
    min-height: calc(100dvh - var(--header-height));
    width: 100%;
    max-width: 60rem;
    margin-inline: auto;
    padding-top: clamp(3rem, 12dvh, 6rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1,
.hero p,
.hero .hero-cta {
    width: 76%;
    max-width: 36rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 11vw + 0.5rem, 5rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.hero p {
    margin: 0.75rem 0 0;
    font-size: clamp(1.125rem, 2vw + 0.65rem, 1.5rem);
    line-height: 1.3;
}

.primary-cta {
    display: block;
    min-height: max(44px, 2.75rem);
    padding-block: 0.75rem;
    text-align: right;
    font-size: 1rem;
    line-height: 1.3;
    text-decoration: underline;
}

.hero .hero-cta {
    margin: 2rem 0 0;
}

.hero-image {
    margin-top: auto;
    padding-top: 7rem;
    width: 100%;
    flex-shrink: 0;
}

.brand-impact {
    overflow-x: clip;
    display: flex;
    padding: var(--section-space) var(--page-gutter) var(--space-lg);
}

.brand-impact-container {
    max-width: 42rem;
    width: 100%;
    flex: 1;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}

.brand-impact-stat h2 {
    margin: 0 0 1rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.brand-impact-stat > img {
    width: 50%;
    height: auto;
    margin: 0 auto var(--space-md);
}

.brand-impact-stat p {
    margin: 0 0 1rem;
    font-size: clamp(0.9375rem, 1.5vw + 0.6rem, 1.125rem);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.company-facts {
    margin-top: 1.5rem;
}

.company-facts h3,
.trusted-companies h3 {
    margin: 0 0 1rem;
    font-size: clamp(0.875rem, 1.5vw + 0.5rem, 1rem);
    font-weight: 800;
}

.facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-lg);
    row-gap: var(--space-lg);
    padding-inline: 0.625rem;
}

.facts-grid p {
    margin: 0;
    max-width: 16ch;
    font-size: 1rem;
    line-height: 1.3;
}

.facts-grid strong {
    font-weight: 400;
}

.trusted-companies {
    margin-top: 3.75rem;
}

.company-logos {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
}

.company-logos img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.study-source {
    max-width: 11.875rem;
    align-self: flex-end;
    margin: auto 0 0;
    padding-top: 3rem;
    font-size: 0.75rem;
    line-height: 1.3;
}

.study-source a {
    text-decoration: underline;
}

.personalization-techniques {
    background-color: #f2f2f2;
    padding: var(--section-space) var(--page-gutter);
}

.personalization-techniques > h2 {
    max-width: 24ch;
    margin: 0 auto 2.5rem;
    font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
}

.process-cards-container {
    max-width: 48rem;
    margin-inline: auto;
    display: grid;
    gap: var(--space-lg);
}

.process-card {
    display: grid;
    grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
    gap: var(--space-md);
    align-items: center;
    min-height: 5.75rem;
}

.process-card:nth-child(even) {
    grid-template-columns: minmax(0, 66fr) minmax(0, 34fr);
}

.process-card:nth-child(even) img {
    order: 2;
}

.process-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.process-title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.125rem, 2vw + 0.65rem, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
}

.process-title a {
    text-decoration: underline;
}

.process-card p {
    margin: 0;
    font-size: clamp(0.875rem, 1.5vw + 0.5rem, 1rem);
    line-height: 1.25;
}

.closing-sale {
    min-height: calc(100dvh - var(--header-height) - 90px);
    padding: clamp(5rem, 22dvh, 12rem) var(--page-gutter) var(--section-space);
}

.closing-sale > * {
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
}

.closing-sale h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
}

.closing-sale p {
    font-size: clamp(1.125rem, 2vw + 0.65rem, 1.5rem);
    line-height: 1.3;
}

.closing-sale .primary-cta {
    margin-top: 4rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Nosotros: Bootstrap handles containers, flex, spacing and placeholder ratios. */
.nosotros-scroll {
    min-height: calc(100dvh - var(--header-height));
    padding-block: var(--section-space);
}

.story-content {
    width: 100%;
    max-width: 48rem;
    padding-inline: var(--page-gutter);
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
    line-height: 1.6;
}

.nosotros-intro h1 {
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    line-height: 1.3;
    letter-spacing: 0.04em;
}

.story-intro,
.nosotros-scroll h2 {
    font-size: clamp(1.375rem, 1rem + 1.5vw, 2rem);
    line-height: 1.35;
}

.story-logo {
    width: clamp(10rem, 45%, 15rem);
}

.story-photo {
    flex-shrink: 0;
    font-size: 0.875rem;
}

@media (max-width: 767.98px) {
    .story-photo {
        width: 100vw !important;
        margin-inline: calc(50% - 50vw);
    }
}

/* Align the last image below the header when the page reaches its end. */
.today-history {
    min-height: calc(100dvh - var(--story-header-height, var(--header-height)) - var(--story-footer-height, 90px));
    padding-top: 80px;
    padding-bottom: clamp(1.5rem, 4dvh, 3rem);
    display: flex;
    align-items: flex-start;
}

/* Nosotros colors from the current Figma reference. */
.nosotros-scroll {
    color: var(--brand-navy);
}

.irma-history {
    background-color: var(--brand-blue);
    color: #fff;
}

.masbord-history {
    background-color: var(--brand-navy);
    color: #fff;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #fff;
    --bs-btn-bg: #2FD064;
    --bs-btn-border-color: #2FD064;
    --bs-btn-hover-bg: #25b955;
    --bs-btn-hover-border-color: #25b955;
    --bs-btn-active-bg: #20a34b;
    --bs-btn-active-border-color: #20a34b;
    --bs-btn-disabled-bg: #2FD064;
    --bs-btn-disabled-border-color: #2FD064;
}


/* Keep carousel controls usable while image paths are still placeholders. */
#nosotros-carousel .carousel-item img {
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

#nosotros-carousel .carousel-control-prev,
#nosotros-carousel .carousel-control-next {
    min-width: 44px;
}

/* Bordados: mobile composition with Bootstrap grids and responsive spacing. */
.bordados-page {
    color: var(--brand-navy);
    line-height: 1.5;
}

.bordados-page .container {
    max-width: 72rem;
}

.bordados-scroll,
.bordado-usos {
    padding-block: var(--section-space);
}

.bordados-hero {
    min-height: calc(100dvh - var(--header-height));
    padding-top: 0;
}

.hero-bordados-content > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-bordados-content > h1,
.hero-bordados-content > p,
.hero-bordados-content > #icon-grid {
    width: calc(100% - 2 * var(--page-gutter));
    margin-inline: auto;
}

.bordados-hero H1{
    font-size:0.875rem ;
}

#bordados-title{
    margin-block: var(--space-md) 1rem;
    font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    line-height: 1.25;
    font-weight: 600;
}

.bordados-page h2 {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    line-height: 1.3;
}

.bordados-page p {
    font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.125rem);
}

.bordados-page .feature-icon {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.bordados-page #icon-grid p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.bordados-maquinas {
    background-color: var(--brand-navy);
    color: #fff;
    padding-block: var(--space-md);
}

.bordados-maquinas > img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    max-height: 28rem;
}

.bordados-maquinas > p {
    max-width: 60rem;
    margin: var(--space-md) auto 0;
    padding-inline: var(--page-gutter);
}

.bordado-usos .container,
.prendas-content {
    padding-inline: var(--page-gutter);
}

.circle-carousel {
    width: clamp(10rem, 56%, 16rem);
    margin-inline: auto;
}

.circle-carousel .carousel-inner {
    border-radius: 50%;
}

.circle-carousel .carousel-item img {
    aspect-ratio: 1;
    object-fit: cover;
}

.circle-carousel .carousel-control-prev,
.circle-carousel .carousel-control-next {
    min-width: 44px;
}

.bordado-usos p {
    max-width: 42ch;
    margin-inline: auto;
}

.bordados-prendas {
    background-color: #f2f2f2;
}

.prendas-content ul {
    columns: 3;
    column-gap: var(--space-md);
    padding-left: 1.25rem;
    margin-block: 1rem var(--space-lg);
    font-size: clamp(0.875rem, 0.75rem + 0.4vw, 1rem);
}

.prendas-content li {
    break-inside: avoid;
    margin-bottom: 0.2rem;
}

.bordados-prendas > img {
    width: 100%;
    max-height: 32rem;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.bordados-action {
    padding-inline: var(--page-gutter);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bordados-action .card {
    width: 100%;
    max-width: 32rem;
    color: inherit;
    border-color: var(--brand-navy);
}

.bordados-action .card-header {
    padding: 1.5rem;
    background-color: #d9d9d9;
}

.bordados-action .card-body {
    padding: var(--space-lg) 1.5rem;
}

@media (max-width: 359.98px) {
    .prendas-content ul { columns: 2; }
}

/* Shared printing and custom-uniform layouts, using Bootstrap for grids. */
.service-page {
    color: var(--brand-navy);
    line-height: 1.5;
}

.service-page .container {
    max-width: 72rem;
}

.service-hero {
    min-height: calc(100dvh - var(--header-height));
    padding-bottom: var(--space-lg);
}

.service-hero > .container > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.service-hero > .container > :is(h1, p, #icon-grid) {
    width: calc(100% - 2 * var(--page-gutter));
    margin-inline: auto;
}

.service-page h1 {
    margin-block: var(--space-md) 1rem;
    font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    font-weight: 600;
    line-height: 1.25;
}

.service-page h2,
.service-page .service-cta .display-5 {
    font-size: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    line-height: 1.3;
}

.service-page p,
.service-page li {
    font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.125rem);
}

.service-page .feature-icon {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.service-page #icon-grid p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.service-process {
    padding-block: var(--space-md);
}

.serigrafia-page .service-process {
    background-color: var(--brand-navy);
    color: #fff;
}

.dtf-page .service-process {
    background-color: var(--brand-navy);
    color: #fff;
}

.sublimado-page .service-process {
    background-color: var(--brand-orange);
    color: var(--brand-navy);
}

.uniformes-page .service-process {
    background-color: var(--brand-orange);
    color: var(--brand-navy);
}

.service-process > :is(h2, p, ol) {
    width: calc(100% - 2 * var(--page-gutter));
    max-width: 60rem;
    margin: var(--space-md) auto;
}

.service-process ol {
    padding-left: 1.5rem;
}

.service-process li + li {
    margin-top: 0.5rem;
}

.service-process > img,
.service-photo-pair img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.service-process > img {
    max-height: 30rem;
}

.service-photo-pair {
    margin-block: var(--space-md);
}

.service-cta {
    padding-block: var(--section-space);
}

.service-cta .carousel {
    max-width: 48rem;
}

.service-cta .carousel-item img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.service-cta .carousel-control-prev,
.service-cta .carousel-control-next {
    min-width: 44px;
}

.service-cta .lead {
    max-width: 48ch;
    margin-inline: auto;
}

.uniformes-page .service-hero p + p {
    margin-top: var(--space-lg);
}

.uniformes-page .service-hero > .container > .btn {
    display: table;
    margin: var(--space-lg) var(--page-gutter) 0 auto;
}

.uniformes-prendas .container {
    max-width: 60rem;
}

.uniformes-prendas .btn {
    display: table;
    margin-left: auto;
}

/* Historical promotional images share the viewport equally. */
.irma-history {
    overflow-x: clip;
}

.irma-photo-pair {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    flex-shrink: 0;
}

.irma-photo-pair img {
    width: 100%;
    height: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

/* Shared WhatsApp action; stays below Bootstrap's menu and backdrop. */
.whatsapp-float,
.whatsapp-float:hover,
.whatsapp-float:focus {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1030;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 56px;
    padding: 0.875rem 1.25rem;
    border-radius: 999px;
    background-color: #2FD064;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 3px 12px #00244733;
}

.whatsapp-float:hover { background-color: #25b955; }
.whatsapp-cta:focus-visible {
    outline: 3px solid var(--brand-navy);
    outline-offset: 4px;
}

.site-footer {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}

.nosotrosbtn{
    padding-top: 1rem;
}
/* Secondary action using the site's standard light gray. */
.btn-page-gray {
    --bs-btn-color: var(--brand-navy);
    --bs-btn-bg: #d6d6d6;
    --bs-btn-border-color: #d6d6d6;
    --bs-btn-hover-color: var(--brand-navy);
    --bs-btn-hover-bg: #e5e5e5;
    --bs-btn-hover-border-color: #e5e5e5;
    --bs-btn-active-color: var(--brand-navy);
    --bs-btn-active-bg: #d9d9d9;
    --bs-btn-active-border-color: #d9d9d9;
}