/* Explain: Styles for various UI components including responsive hero section animation. */
/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    flex: none;
}

.brand-mark {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    flex: none;
}

.nav-desktop {
    display: none;
}

.nav-desktop a {
    padding: 9px 15px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--text-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-desktop a:hover {
    color: var(--primary-color);
    background: var(--surface-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-cta {
    display: none;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px 20px 22px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.nav-mobile.is-open {
    display: flex;
}

.nav-mobile a {
    padding: 13px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.nav-mobile a:hover {
    background: var(--surface-color);
}

@media (min-width: 640px) {
    .header-cta {
        display: inline-flex;
    }
}

@media (min-width: 940px) {
    .nav-desktop {
        display: flex;
        gap: 2px;
    }
    .nav-toggle {
        display: none;
    }
    .nav-mobile {
        display: none !important;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 24px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:focus-visible {
    outline: 3px solid rgba(59, 91, 219, 0.4);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: var(--accent-color);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: var(--surface-color);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.86rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 84vh;
    overflow: hidden;
    background: var(--dark-color);
}

.hero-media {
    position: absolute;
    inset: -6% 0;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 48%;
    animation: heroKenBurns 26s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.12) translate3d(-1.2%, -1%, 0);
    }
}

@media (max-width: 1023px) {
    .hero-media img {
        object-position: 50% 45%;
        animation-duration: 32s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media {
        transform: none;
    }

    .hero-media img {
        animation: none;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(11, 18, 45, 0.96) 0%, rgba(11, 18, 45, 0.84) 44%, rgba(11, 18, 45, 0.42) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 92px 0;
    max-width: 800px;
}

.hero-title {
    color: #fff;
    font-size: clamp(2.1rem, 5.6vw, 4rem);
    font-weight: 800;
}

.hero-sub {
    margin-top: 22px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2.1vw, 1.18rem);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 36px;
}

.hero-badges li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 500;
}

.hero-badges i {
    color: var(--accent-color);
}

/* ---------- Stats ---------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 72px;
}

@media (min-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat {
    text-align: center;
    padding: 26px 14px;
    border-radius: var(--radius);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

.stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- Features ---------- */
.feature-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 980px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature {
    height: 100%;
    padding: 30px 26px;
    border-radius: var(--radius);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.feature:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #fff;
    color: var(--primary-color);
    font-size: 1.25rem;
    border: 1px solid var(--border-color);
    margin-bottom: 18px;
}

.feature h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- Category cards ---------- */
.cat-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 980px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cat-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    min-height: 288px;
}

.cat-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.cat-card:hover img {
    transform: scale(1.07);
}

.cat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 18, 45, 0.05) 0%, rgba(11, 18, 45, 0.88) 100%);
}

.cat-body {
    position: relative;
    z-index: 2;
    min-height: 288px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.cat-body h3 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}

.cat-body p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.cat-arrow {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    transition: gap 0.25s ease;
}

.cat-card:hover .cat-arrow {
    gap: 14px;
}

/* ---------- Chips ---------- */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 42px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chip.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ---------- Catalog ---------- */
.catalog-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.catalog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.catalog-card.is-hidden {
    display: none;
}

.catalog-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-alt);
}

.catalog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.catalog-card:hover .catalog-media img {
    transform: scale(1.05);
}

.catalog-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.catalog-body h3 {
    font-size: 1.16rem;
    font-weight: 700;
}

.catalog-body p {
    color: var(--text-muted);
    font-size: 0.93rem;
}

.catalog-sizes {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.catalog-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.catalog-empty {
    text-align: center;
    padding: 56px 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ---------- Steps (dark) ---------- */
.flow-steps {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

.flow-step {
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.flow-step-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-color);
    line-height: 1;
}

.flow-step h3 {
    color: #fff;
    font-size: 1.08rem;
    margin-top: 10px;
}

.flow-step p {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

/* ---------- Testimonials ---------- */
.testi-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .testi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testi {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

.testi-stars {
    color: var(--accent-color);
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.testi p {
    flex: 1;
    font-size: 1rem;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.testi-author strong {
    display: block;
    font-size: 0.95rem;
}

.testi-author span {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* ---------- CTA band ---------- */
.cta-band {
    padding: 54px 30px;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.cta-band p {
    max-width: 560px;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 30px;
}

/* ---------- Page hero ---------- */
.page-hero {
    padding: 62px 0;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
    max-width: 860px;
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 800;
}

.page-hero p {
    max-width: 680px;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 1.06rem;
}

/* ---------- Frames ---------- */
.frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* ---------- Timeline ---------- */
.timeline {
    display: flex;
    flex-direction: column;
}

.tl-item {
    position: relative;
    padding: 0 0 34px 34px;
    border-left: 2px solid var(--border-color);
}

.tl-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--border-color);
}

.tl-year {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.12rem;
    color: var(--primary-color);
}

.tl-item h3 {
    margin-top: 4px;
    font-size: 1.06rem;
}

.tl-item p {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- Info list ---------- */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

.info-item i {
    width: 22px;
    margin-top: 4px;
    color: var(--primary-color);
    font-size: 1.12rem;
    text-align: center;
    flex: none;
}

.info-item strong {
    display: block;
    font-size: 0.95rem;
}

.info-item span,
.info-item a {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.info-item a:hover {
    color: var(--primary-color);
}

/* ---------- Forms ---------- */
.form-card {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid .span-2 {
        grid-column: 1 / -1;
    }
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.15);
}

.field textarea {
    min-height: 132px;
    resize: vertical;
}

.form-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quote-product {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
}

.quote-product[hidden] {
    display: none;
}

.quote-product-img {
    width: 76px;
    height: 76px;
    padding: 4px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    object-fit: contain;
    flex: none;
}

.quote-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.quote-product-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--primary-color);
}

.quote-product-info strong {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

.form-status {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
}

.form-status.is-success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-status.is-error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 0;
    padding: 64px 0 28px;
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1.3fr;
    }
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
}

.footer-brand .brand-mark {
    background: var(--accent-color);
}

.footer-title {
    margin-bottom: 16px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 13px;
    font-size: 0.95rem;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact i {
    width: 16px;
    margin-top: 5px;
    color: var(--accent-color);
    flex: none;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.whatsapp-float:hover {
    background: #1ebe5b;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 18px 34px -8px rgba(37, 211, 102, 0.7);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.5);
    outline-offset: 3px;
}

@media (min-width: 768px) {
    .whatsapp-float {
        right: 28px;
        bottom: 28px;
        width: 62px;
        height: 62px;
        font-size: 1.85rem;
    }
}

.wa-tip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    padding: 9px 15px;
    border-radius: 12px;
    background: #fff;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.wa-tip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 7px solid transparent;
    border-left-color: #fff;
}

.whatsapp-float:hover .wa-tip,
.whatsapp-float:focus-visible .wa-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 600px) {
    .wa-tip {
        display: none;
    }
}

/* ---------- Logo, imágenes y ajustes responsive ---------- */
.brand-logo {
    height: 38px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 14px;
}

.footer-logo-wrap img {
    height: 40px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}

.rubro-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.catalog-media {
    aspect-ratio: 1 / 1;
    padding: 10px;
    background: #fff;
}

.catalog-media img {
    object-fit: contain;
}

.catalog-card:hover .catalog-media img {
    transform: scale(1.04);
}

.hero-title,
.page-hero h1,
.cta-band h2 {
    overflow-wrap: break-word;
}

.hero-cta,
.hero-badges {
    position: relative;
    z-index: 3;
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    }
}

@media (max-width: 1023px) {
    .hero {
        min-height: 0;
    }
    .hero-content {
        max-width: 100%;
        padding: 60px 0 68px;
    }
    .hero-title {
        font-size: clamp(1.7rem, 7vw, 2.5rem);
        line-height: 1.15;
    }
    .hero-sub {
        margin-top: 16px;
        font-size: 1rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 26px;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .hero-badges {
        flex-direction: column;
        gap: 12px;
        margin-top: 26px;
    }
}

@media (max-width: 767px) {
    .header-cta {
        display: none;
    }
    .brand-logo {
        height: 32px;
        max-width: 150px;
    }
    .header-inner {
        min-height: 64px;
        gap: 10px;
    }
    .section-head {
        margin-bottom: 32px;
    }
    .stats-row {
        margin-bottom: 48px;
    }
    .page-hero {
        padding: 46px 0;
    }
    .cta-band {
        padding: 38px 20px;
    }
    .form-card {
        padding: 22px;
    }
}

@media (max-width: 479px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    .stat strong {
        font-size: 1.5rem;
    }
    .chip {
        padding: 9px 14px;
        font-size: 0.84rem;
    }
}

/* ---------- Compatibilidad: evita que estilos de la librería base pisen el diseño propio ---------- */
.hero {
    display: flex;
    align-items: center;
    place-items: initial;
    grid-auto-flow: row;
    grid-template-columns: none;
}

.hero > * {
    grid-column: auto;
    grid-row: auto;
}

.hero-content {
    display: block;
    width: 100%;
    gap: 0;
    align-items: initial;
    justify-content: initial;
}

.hero-overlay {
    opacity: 1;
    background: linear-gradient(100deg, rgba(9, 15, 40, 0.95) 0%, rgba(9, 15, 40, 0.85) 46%, rgba(9, 15, 40, 0.5) 78%, rgba(9, 15, 40, 0.28) 100%);
}

.btn {
    height: auto;
    min-height: 44px;
    flex-wrap: wrap;
    flex: 0 0 auto;
    white-space: normal;
    text-wrap: wrap;
}

.stat {
    display: block;
    width: 100%;
}

.flow-steps {
    display: grid;
    grid-auto-flow: row;
    overflow: visible;
}

.flow-step {
    display: block;
    place-items: initial;
    text-align: left;
    min-width: 0;
}

@media (max-width: 1023px) {
    .hero-content {
        max-width: 100%;
    }
    .hero-title,
    .hero-sub {
        overflow-wrap: anywhere;
    }
    .hero-cta .btn {
        width: 100%;
    }
}