:root {
    --primary: #b01c2e;
    --secondary: #5b5b5b;
    --accent: #e0a800;
    --bg-light: #f5f5f5;
    --bg-dark: #2c3e50;
    --surface: #ffffff;
    --text: #4d4d4d;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 12px 34px rgba(26, 32, 44, 0.12);
    --shadow-header: 0 8px 26px rgba(17, 24, 39, 0.1);
    --container: 1200px;
    --header-offset: 138px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.8rem;
    line-height: 1.2;
    color: var(--secondary);
    font-family: 'Montserrat', sans-serif;
}

p {
    margin: 0 0 1rem;
}

.container {
    width: min(var(--container), calc(100% - 2.5rem));
    margin-inline: auto;
}

.site-main {
    padding-top: 122px;
}

.section {
    padding: 5.5rem 0;
}

.site-main section[id] {
    scroll-margin-top: var(--header-offset);
}

.section-light {
    background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
}

.section-white {
    background: #ffffff;
}

.section-dark {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.88);
}

.section-generic {
    min-height: 55vh;
}

.kicker {
    margin-bottom: 0.75rem;
    display: inline-flex;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(176, 28, 46, 0.1);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(91, 91, 91, 0.11);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

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

.brand-block {
    flex: 0 0 auto;
    min-width: 240px;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-logo-img {
    width: auto;
    height: clamp(66px, 7vw, 96px);
    max-width: min(430px, 36vw);
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(44, 62, 80, 0.14));
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    width: auto;
    max-height: 92px;
    min-height: 68px;
}

.site-brand-text {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--secondary);
}

.site-brand-text strong {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.site-brand-text small {
    font-size: 0.86rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.menu-list {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    list-style: none;
}

.menu-list a {
    padding: 0.35rem 0.1rem;
    font-size: 0.92rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary);
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.menu-list a:hover,
.menu-list .current-menu-item a,
.menu-list a.is-active {
    color: var(--primary);
    border-color: var(--primary);
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.header-cta {
    background: var(--primary);
    color: #ffffff;
    min-height: 45px;
    padding: 0.7rem 1.25rem;
    box-shadow: 0 8px 20px rgba(176, 28, 46, 0.32);
}

.header-cta:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(91, 91, 91, 0.3);
    background: #fff;
    border-radius: 10px;
    width: 48px;
    height: 48px;
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-toggle-line {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--secondary);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 6.4rem;
    background: radial-gradient(circle at 90% 10%, rgba(224, 168, 0, 0.18), transparent 40%), linear-gradient(135deg, #ffffff 0%, #f2f2f2 100%);
}

.hero-bg-shape {
    position: absolute;
    top: -110px;
    right: -140px;
    width: min(39vw, 430px);
    aspect-ratio: 1;
    border-radius: 26% 74% 55% 45% / 44% 48% 52% 56%;
    background: rgba(176, 28, 46, 0.1);
}

.hero-grid {
    position: relative;
    display: grid;
    gap: 2.4rem;
    align-items: center;
    grid-template-columns: 1.2fr 0.8fr;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    margin-bottom: 1.2rem;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-lead {
    max-width: 62ch;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.hero-actions {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.btn {
    border: 0;
    padding: 0.95rem 1.5rem;
    min-height: 50px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(176, 28, 46, 0.26);
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background: #fff;
}

.hero-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(91, 91, 91, 0.12);
}

.hero-card h2 {
    color: var(--primary);
    font-size: 1.2rem;
}

.hero-card ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-card li {
    padding: 0.65rem 0;
    border-bottom: 1px solid #ececec;
}

.hero-card li:last-child {
    border-bottom: 0;
}

.hero-card strong {
    color: var(--bg-dark);
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.info-panels {
    display: grid;
    gap: 1rem;
}

.panel {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: var(--radius-md);
    padding: 1.3rem;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.panel-accent {
    border-top: 5px solid var(--accent);
}

.section-head {
    margin-bottom: 2rem;
    max-width: 680px;
}

.section-head-desc {
    margin: 0.5rem 0 0;
    font-size: 1.05rem;
    color: var(--secondary);
}

.section-head-light h2,
.section-head-light .kicker {
    color: #fff;
}

.service-grid,
.case-grid {
    display: grid;
    gap: 1rem;
}

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

.service-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: var(--radius-md);
    padding: 1.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(176, 28, 46, 0.4);
    box-shadow: var(--shadow-soft);
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
}

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

.case-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1.4rem;
}

.case-card h3 {
    color: var(--accent);
}

/* === Página Clientes === */

.clientes-hero {
    background: linear-gradient(135deg, #1a1f2e 0%, #2c3e50 100%);
    color: #fff;
}

.clientes-hero .section-head h1,
.clientes-hero .section-head p,
.clientes-hero .kicker {
    color: #fff;
}

.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 0.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-plus {
    font-size: 1.8rem;
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* Cases grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.case-pro-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-pro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.case-pro-icon {
    width: 48px;
    height: 48px;
    background: #fff5f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.case-pro-icon svg {
    width: 24px;
    height: 24px;
}

.case-pro-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(176,28,46,0.08);
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
    width: fit-content;
}

.case-pro-card h3 {
    font-size: 1.1rem;
    color: #1a1f2e;
    margin: 0;
}

.case-pro-card p {
    font-size: 0.93rem;
    color: var(--secondary);
    margin: 0;
    flex: 1;
}

.case-pro-result {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.result-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a7a4a;
    background: #e8f5ee;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
}

/* Trust section */
.trust-section {
    background: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #d4303f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.trust-icon svg {
    width: 22px;
    height: 22px;
}

.trust-item h3 {
    font-size: 1rem;
    color: #1a1f2e;
    margin: 0;
}

.trust-item p {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0;
}

/* CTA clientes */
.cta-clientes {
    background: linear-gradient(135deg, var(--primary) 0%, #8b1522 100%);
}

.cta-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-inner h2 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
}

.cta-inner p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin: 0;
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    background: #fff;
    color: var(--primary);
}

.btn-lg:hover {
    background: rgba(255,255,255,0.9);
    color: var(--primary);
}

.contact-section {
    background: linear-gradient(160deg, #ffffff 0%, #f4f6f9 100%);
}

.contact-wrapper {
    display: block;
}

.contact-cards {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-form-wrap {
    margin-top: 2rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.contact-form-wrap .section-head {
    margin-bottom: 1.4rem;
}

.consultation-form {
    display: grid;
    gap: 1.1rem;
}

.form-notice {
    margin: 0 0 1rem;
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
    border: 1px solid transparent;
    font-weight: 600;
}

.form-notice-success {
    color: #0f5132;
    background: #d1e7dd;
    border-color: #badbcc;
}

.form-notice-error {
    color: #842029;
    background: #f8d7da;
    border-color: #f5c2c7;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #d8dde5;
    border-radius: 12px;
    min-height: 48px;
    padding: 0.75rem 0.85rem;
    font: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(176, 28, 46, 0.75);
    box-shadow: 0 0 0 4px rgba(176, 28, 46, 0.15);
}

.form-actions {
    display: flex;
    justify-content: flex-start;
}

.contact-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #e8e8e8;
    padding: 1.1rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    box-shadow: 0 9px 20px rgba(17, 24, 39, 0.06);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(176, 28, 46, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
}

.contact-card h3 {
    margin-bottom: 0.3rem;
    font-size: 1.02rem;
}

.contact-card p,
.contact-card small {
    margin: 0;
}

.contact-card small {
    font-size: 0.88rem;
    color: #6d6d6d;
}

.contact-card a {
    color: var(--primary);
    font-weight: 700;
}

.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.83);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
}

.footer-logo-link {
    margin-bottom: 1rem;
    display: inline-flex;
}

.footer-brand .custom-logo {
    max-height: 84px;
    filter: brightness(0) invert(1);
}

.site-brand-text-footer strong,
.site-brand-text-footer small {
    color: #fff;
}

.site-footer h3 {
    color: var(--accent);
    font-size: 1.02rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-menu,
.footer-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.footer-menu a,
.footer-contact-list a,
.legal-links a {
    color: rgba(255, 255, 255, 0.83);
}

.footer-menu a:hover,
.footer-contact-list a:hover,
.legal-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 2rem;
    padding: 1.2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.legal-links {
    display: flex;
    gap: 1rem;
}

.entry-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    border: 1px solid #ececec;
    box-shadow: var(--shadow-soft);
}

.entry-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* =========================================================
   PÁGINA EQUIPO
   ========================================================= */

.equipo-hero {
    background: linear-gradient(160deg, #ffffff 0%, #f4f6f9 100%);
}

.equipo-hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: center;
}

.equipo-hero-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.equipo-hero-desc {
    font-size: 1.05rem;
    color: var(--secondary);
    max-width: 56ch;
    margin: 0;
}

.equipo-hero-stats {
    background: #fff;
    border: 1px solid rgba(91, 91, 91, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.equipo-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.equipo-stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.equipo-stat-plus,
.equipo-stat-pct {
    font-size: 1.4rem;
}

.equipo-stat-label {
    font-size: 0.8rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.equipo-stat-divider {
    width: 40px;
    height: 1px;
    background: #e0e0e0;
}

/* Grid de miembros */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: var(--radius-md);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(176, 28, 46, 0.3);
    box-shadow: var(--shadow-soft);
}

.team-photo-wrap {
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.team-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

.team-avatar {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, var(--primary) 0%, #d4303f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar span {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
}

.team-card-body {
    padding: 1.4rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.team-name {
    font-size: 1.05rem;
    color: var(--secondary);
    margin: 0;
}

.team-role {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.team-desc {
    font-size: 0.87rem;
    color: #6d6d6d;
    margin: 0.5rem 0 0;
    line-height: 1.55;
}

/* Valores del equipo */
.equipo-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.equipo-value-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.equipo-value-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary) 0%, #d4303f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.equipo-value-icon svg {
    width: 22px;
    height: 22px;
}

.equipo-value-item h3 {
    font-size: 1rem;
    color: #1a1f2e;
    margin-bottom: 0.35rem;
}

.equipo-value-item p {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0;
}

/* CTA equipo */
.cta-equipo {
    background: linear-gradient(135deg, var(--primary) 0%, #8b1522 100%);
}

@media (max-width: 1100px) {
    .header-inner {
        min-height: 108px;
    }

    .custom-logo {
        max-height: 78px;
        min-height: 0;
    }

    .site-logo-img {
        height: clamp(62px, 7.5vw, 84px);
        max-width: min(380px, 44vw);
    }

    .primary-nav {
        gap: 0.7rem;
    }

    .menu-list {
        gap: 0.8rem;
    }

    .menu-list a {
        font-size: 0.84rem;
    }

    .hero-grid,
    .split-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .equipo-hero-inner {
        grid-template-columns: 1fr;
    }

    .equipo-hero-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .equipo-stat-divider {
        width: 1px;
        height: 50px;
    }

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

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

    .form-field-full {
        grid-column: auto;
    }
}

@media (max-width: 860px) {
    :root {
        --header-offset: 114px;
    }

    .site-main {
        padding-top: 100px;
    }

    .header-inner {
        min-height: 100px;
    }

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

    .custom-logo {
        max-height: 70px;
    }

    .site-logo-img {
        height: clamp(52px, 9vw, 72px);
        max-width: min(320px, 58vw);
    }

    .menu-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #ececec;
        border-bottom: 1px solid #ececec;
        box-shadow: var(--shadow-soft);
        padding: 1rem 1.25rem 1.25rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

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

    .menu-list {
        width: 100%;
        display: grid;
        gap: 0.3rem;
    }

    .menu-list a {
        display: block;
        padding: 0.65rem 0.2rem;
    }

    .header-cta {
        width: 100%;
    }

    .service-grid,
    .case-grid,
    .contact-cards,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .team-grid,
    .equipo-values-grid {
        grid-template-columns: 1fr;
    }

    .equipo-hero-stats {
        flex-direction: row;
    }

    .stats-bar {
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .contact-form-wrap {
        padding: 1.2rem;
    }

    .form-actions .btn {
        width: 100%;
    }

    .section {
        padding: 4.2rem 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    :root {
        --header-offset: 98px;
    }

    .container {
        width: min(var(--container), calc(100% - 1.4rem));
    }

    .site-main {
        padding-top: 88px;
    }

    .header-inner {
        min-height: 88px;
    }

    .custom-logo {
        max-height: 60px;
    }

    .site-logo-img {
        height: clamp(46px, 11vw, 62px);
        max-width: 64vw;
    }

    .site-brand-text strong {
        font-size: 1.15rem;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .btn,
    .header-cta {
        width: 100%;
    }
}
