/* ================================================================
   CSS Variables
   ================================================================ */
:root {
    --dark-orange:      #ff8300;
    --dark-orange-hover:#e67600;
    --azul-contafree:   #4670f6;
    --dark-turquoise:   #5ee4f4;

    --text-dark:        #1a1a1a;
    --text-medium:      #555555;
    --text-muted:       #888888;
    --footer-bg:        #111111;

    --border-radius:    8px;
    --border-radius-lg: 12px;
    --transition:       0.25s ease;

    --container-max:    1200px;
    --container-pad:    1.5rem;
}

/* ================================================================
   Reset & Base
   ================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff;
}

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

ul, ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

address {
    font-style: normal;
}

/* ================================================================
   Layout Utilities
   ================================================================ */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.text-highlight {
    color: var(--dark-orange);
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition), opacity var(--transition), color var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--dark-orange);
    color: #ffffff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--dark-orange-hover);
}

.btn--whatsapp {
    padding: 0.875rem 1.75rem;
}

.btn-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ================================================================
   Navbar
   ================================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.navbar__logo img {
    height: 48px;
    width: auto;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar__links > li > a,
.navbar__dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    background: none;
    border: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.navbar__links > li > a:hover,
.navbar__links > li > a.active,
.navbar__dropdown-btn:hover,
.navbar__dropdown-btn.active {
    color: var(--dark-orange);
}

.arrow-icon {
    width: 10px;
    height: 6px;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.navbar__dropdown {
    position: relative;
}

.navbar__dropdown.open .arrow-icon {
    transform: rotate(180deg);
}

.navbar__submenu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: var(--border-radius);
    min-width: 240px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.navbar__dropdown.open .navbar__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar__submenu li a {
    display: block;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: color var(--transition), background-color var(--transition);
}

.navbar__submenu li a:hover {
    color: var(--dark-orange);
    background-color: #f8f8f8;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.navbar__toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.navbar__toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.open span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
    padding: 4rem 0 5rem;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__content {
    max-width: 480px;
}

.hero__content h1 {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.1;
    color: #333333;
    margin-bottom: 1.25rem;
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero__images {
    min-height: 420px;
}

.hero__collage {
    position: relative;
    height: 430px;
}

.hero__img {
    border-radius: var(--border-radius-lg);
    object-fit: cover;
}

.hero__img--back {
    position: absolute;
    right: 0;
    top: 0;
    width: 68%;
    height: 88%;
}

.hero__img--front {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 62%;
    height: 72%;
    z-index: 2;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

/* ================================================================
   Media / Trust Bar
   ================================================================ */
.media {
    padding: 4rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.media__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.media__label h2 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.media__logos {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.media__logo {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

.media__cta {
    text-align: center;
}

/* ================================================================
   Services
   ================================================================ */
.services {
    padding: 5rem 0;
}

.services__header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 3.5rem;
}

.services__header h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.services__header p {
    color: var(--text-medium);
    font-size: 1rem;
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.service-card__img-wrap {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    aspect-ratio: 16 / 10;
}

.service-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card__img-wrap:hover img {
    transform: scale(1.03);
}

.service-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-orange);
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.service-card__desc {
    color: var(--text-medium);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ================================================================
   Process
   ================================================================ */
.process {
    padding: 5rem 0;
    background: #fafafa;
}

.process__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.process__left h2 {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.process__media-wrap {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.process__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Steps / Timeline */
.steps {
    display: flex;
    flex-direction: column;
    padding-top: 0.25rem;
}

.step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.25rem;
    padding-bottom: 2.5rem;
    position: relative;
}

.step:last-child {
    padding-bottom: 0;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: #cccccc;
}

.step__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dark-orange);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step__body {
    padding-top: 0.6rem;
}

.step__body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.step__body ul li {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.step__body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-medium);
}

/* ================================================================
   Masterclass
   ================================================================ */
.masterclass {
    padding: 5rem 0;
}

.masterclass__header {
    text-align: center;
    margin-bottom: 3rem;
}

.masterclass__header h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.masterclass__subhead {
    font-size: 1.15rem;
    font-weight: 500;
}

.masterclass__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.masterclass-card__img-wrap {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    aspect-ratio: 16 / 10;
}

.masterclass-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.masterclass-card__img-wrap:hover img {
    transform: scale(1.03);
}

.masterclass-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-orange);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.masterclass-card__desc {
    color: var(--text-medium);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ================================================================
   CTA Banner
   ================================================================ */
.cta-banner {
    background-image: url('../assets/images/imagen de mas que contadores.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-banner__overlay {
    background: rgba(170, 82, 18, 0.80);
    padding: 6rem 0;
}

.cta-banner__content {
    text-align: center;
}

.cta-banner__content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.cta-banner__content p {
    font-size: 1.25rem;
    color: #ffffff;
}

/* ================================================================
   Footer
   ================================================================ */
.footer {
    background: var(--footer-bg);
    color: #ffffff;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.9fr;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #2a2a2a;
}

.footer__logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.75rem;
}

.footer__newsletter p {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input[type="email"] {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #444444;
    background: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333333;
    width: 100%;
}

.newsletter-form input[type="email"]::placeholder {
    color: #999999;
}

.newsletter-form input[type="email"]:focus {
    outline: 2px solid var(--dark-orange);
    outline-offset: 2px;
}

.btn--newsletter {
    background: transparent;
    border: 2px solid var(--dark-orange);
    color: #ffffff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    width: 100%;
    transition: background-color var(--transition), color var(--transition);
}

.btn--newsletter:hover,
.btn--newsletter:focus-visible {
    background-color: var(--dark-orange);
    color: #ffffff;
}

.footer__contact p {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.footer__contact p:last-child {
    margin-bottom: 0;
}

.footer__contact a {
    color: #cccccc;
    transition: color var(--transition);
}

.footer__contact a:hover {
    color: var(--dark-orange);
}

.footer__social-label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cccccc;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.social-links a:hover {
    color: var(--dark-orange);
}

.social-links svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.footer__bottom {
    padding: 1.5rem 0;
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer__privacy-link {
    color: var(--dark-orange);
    font-size: 0.875rem;
    text-decoration: underline;
    transition: opacity var(--transition);
}

.footer__privacy-link:hover {
    opacity: 0.8;
}

.footer__copy {
    color: var(--dark-orange);
    font-size: 0.875rem;
}

.footer__copy a {
    color: var(--dark-orange);
    text-decoration: underline;
}

/* ================================================================
   Responsive — Tablet (768px – 1023px)
   ================================================================ */
@media (max-width: 1023px) {
    .navbar__links > li > a,
    .navbar__dropdown-btn {
        padding: 0.5rem 0.65rem;
        font-size: 0.85rem;
    }

    .hero__content h1 {
        font-size: 2.8em;
    }

    .hero__collage {
        height: 360px;
    }

    .media__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .media__logos {
        justify-content: center;
    }

    .services__header h2,
    .masterclass__header h2 {
        font-size: 1.85rem;
    }

    .process__left h2 {
        font-size: 1.65rem;
    }

    .cta-banner__content h2 {
        font-size: 2.5rem;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

/* ================================================================
   Scroll Reveal
   ================================================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ================================================================
   Page Hero (nosotros y otras páginas internas)
   ================================================================ */
.page-hero {
    position: relative;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    background: rgba(0, 0, 0, 0.50);
    height: 100%;
    display: flex;
    align-items: center;
}

.page-hero__title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* ================================================================
   About (nosotros)
   ================================================================ */
.about {
    padding: 5rem 0 4rem;
}

.about__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.about__stat h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #333;
    margin: 0;
}

.about__desc p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.about__values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.value-item__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.value-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

/* ================================================================
   Team (nosotros)
   ================================================================ */
.team {
    padding: 4rem 0 5rem;
    background: #f9f9f9;
}

.team__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.team__header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2rem;
    align-items: start;
}

/* Stagger: every 2nd card gets a top offset to match Webflow layout */
.team-card--offset {
    margin-top: 3rem;
}

.team-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.team-card__img-wrap {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.team-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card__img {
    transform: scale(1.04);
}


/* ================================================================
   Split Section (servicios alternating image+text layouts)
   ================================================================ */
.split-section {
    padding: 5rem 0;
}

.split-section--alt {
    background: #fafafa;
}

.split-section--alt + .split-section {
    background: #ffffff;
}

.section-intro {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 4rem;
}

.section-intro h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-intro p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
}

.split-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-section__inner--gap {
    margin-bottom: 4rem;
}

.split-section__inner--gap:last-child {
    margin-bottom: 0;
}

.split-section__inner--reverse > *:first-child { order: 2; }
.split-section__inner--reverse > *:last-child  { order: 1; }

.split-section__img-wrap {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.split-section__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.split-section__img-wrap:hover .split-section__img {
    transform: scale(1.03);
}

.split-section__content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.split-section__h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.split-section__content p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.split-section__content p:last-child {
    margin-bottom: 0;
}

/* ================================================================
   Bullet Lists (reutilizable en servicios y nóminas)
   ================================================================ */
.bullet-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.bullet-list li {
    color: var(--dark-orange);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.bullet-list--dark li {
    color: var(--text-medium);
}

.bullet-list + p {
    margin-top: 1rem;
}

/* ================================================================
   btn--outline-white (CTA banner en páginas internas)
   ================================================================ */
.btn--outline-white {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    transition: background-color var(--transition), color var(--transition);
}

.btn--outline-white:hover,
.btn--outline-white:focus-visible {
    background-color: #ffffff;
    color: var(--dark-orange);
}

/* ================================================================
   Nóminas — Intro
   ================================================================ */
.nominas-intro {
    padding: 4rem 0 0;
    text-align: center;
}

.nominas-intro__text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dark);
    max-width: 820px;
    margin-inline: auto;
}

/* ================================================================
   Nóminas — Modules Overview
   ================================================================ */
.modules-overview {
    padding: 3rem 0 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.module-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.module-card__icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

.module-card__num {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

.module-card__title {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.module-card__link {
    color: var(--dark-orange);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: opacity var(--transition);
    margin-top: 0.25rem;
}

.module-card__link svg {
    transition: transform var(--transition);
}

.module-card__link:hover {
    opacity: 0.8;
}

.modules-divider {
    border: none;
    border-top: 2px solid var(--dark-orange);
    margin: 0;
}

/* ================================================================
   Nóminas — Module Detail Sections
   ================================================================ */
.nomina-module {
    padding: 5rem 0;
}

.nomina-module--alt {
    background: #fafafa;
}

.nomina-module__title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--dark-orange);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.nomina-process-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-dark);
    margin: 3rem 0 2rem;
    letter-spacing: 0.02em;
}

.nomina-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nomina-step {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nomina-step__num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-orange);
    line-height: 1;
}

.nomina-step p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.55;
    margin: 0;
}

.nomina-reports {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.nomina-reports__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

.nomina-reports__img {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

/* ================================================================
   Garantía de Servicio
   ================================================================ */
.garantia-section {
    background: #f9f9f9;
    padding: 4rem 0;
}

.garantia-inner {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.garantia__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-orange);
    margin-bottom: 1rem;
}

.garantia-inner p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.garantia-inner .bullet-list {
    text-align: left;
    display: inline-block;
    margin-inline: auto;
}

/* ================================================================
   Bullet Grid (módulos 3 y 4 nóminas)
   ================================================================ */
.bullet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2.5rem;
    margin-top: 2rem;
}

/* ================================================================
   Contact Section
   ================================================================ */
.contact-section {
    padding: 5rem 0;
}

.contact-section__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.contact-info__title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.contact-info__text {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-info__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-info__item a {
    color: var(--text-medium);
    transition: color var(--transition);
}

.contact-info__item a:hover {
    color: var(--dark-orange);
}

.contact-info__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--dark-orange);
    margin-top: 1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #dddddd;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    width: 100%;
    background: #ffffff;
    transition: border-color var(--transition), outline var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--dark-orange);
    outline-offset: 2px;
    border-color: transparent;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ================================================================
   Responsive — Tablet (≤ 1023px) — nosotros additions
   ================================================================ */
@media (max-width: 1023px) {
    /* ---- Split sections tablet ---- */
    .split-section__inner {
        gap: 2.5rem;
    }

    .section-intro h2 {
        font-size: 1.85rem;
    }

    /* ---- Nóminas tablet ---- */
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .nomina-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nomina-reports {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* ---- Contact tablet ---- */
    .contact-section__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* ---- Nosotros tablet ---- */
    .about__header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about__values {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

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

    .team-card--offset {
        margin-top: 0;
    }
}

/* ================================================================
   Responsive — Mobile (≤ 767px)
   ================================================================ */
@media (max-width: 767px) {
    :root {
        --container-pad: 1.25rem;
    }

    /* ---- Navbar ---- */
    .navbar__toggle {
        display: flex;
    }

    .navbar__links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0 1rem;
        border-bottom: 1px solid #e8e8e8;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        z-index: 999;
        gap: 0;
    }

    .navbar__links.open {
        display: flex;
    }

    .navbar__links > li > a,
    .navbar__dropdown-btn {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        justify-content: flex-start;
    }

    .navbar__submenu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8f8f8;
        padding: 0;
        display: none;
    }

    .navbar__dropdown.open .navbar__submenu {
        display: block;
    }

    .navbar__submenu li a {
        padding-left: 2.5rem;
        border-bottom: 1px solid #eeeeee;
    }

    /* ---- Hero ---- */
    .hero {
        padding: 2.5rem 0 3rem;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__content h1 {
        font-size: 2.5em;
    }

    .hero__images {
        min-height: auto;
    }

    .hero__collage {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero__img--back,
    .hero__img--front {
        position: static;
        width: 100%;
        height: 220px;
        box-shadow: none;
    }

    /* ---- Media ---- */
    .media {
        padding: 3rem 0;
    }

    .media__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .media__label h2 {
        font-size: 1.8rem;
    }

    .media__logos {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    /* ---- Services ---- */
    .services {
        padding: 3rem 0;
    }

    .services__header h2 {
        font-size: 1.8rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* ---- Process ---- */
    .process {
        padding: 3rem 0;
    }

    .process__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .process__left h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    /* ---- Masterclass ---- */
    .masterclass {
        padding: 3rem 0;
    }

    .masterclass__header h2 {
        font-size: 1.8rem;
    }

    .masterclass__subhead {
        font-size: 1.05rem;
    }

    .masterclass__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* ---- CTA Banner ---- */
    .cta-banner {
        background-attachment: scroll;
    }

    .cta-banner__overlay {
        padding: 4rem 0;
    }

    .cta-banner__content h2 {
        font-size: 2rem;
    }

    .cta-banner__content p {
        font-size: 1rem;
    }

    /* ---- Footer ---- */
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }

    .footer__logo {
        height: 70px;
    }

    .footer__bottom-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* ---- Nosotros mobile ---- */
    .page-hero {
        height: 220px;
    }

    .page-hero__title {
        font-size: 2rem;
    }

    .about {
        padding: 3rem 0;
    }

    .about__values {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* ---- Split sections mobile ---- */
    .split-section {
        padding: 3rem 0;
    }

    .section-intro {
        margin-bottom: 2.5rem;
    }

    .section-intro h2 {
        font-size: 1.8rem;
    }

    .split-section__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split-section__inner--reverse > *:first-child { order: unset; }
    .split-section__inner--reverse > *:last-child  { order: unset; }

    .split-section__inner--gap {
        margin-bottom: 2.5rem;
    }

    .split-section__content h2 {
        font-size: 1.6rem;
    }

    /* ---- Nóminas mobile ---- */
    .nominas-intro {
        padding: 3rem 0 0;
    }

    .nominas-intro__text {
        font-size: 1.05rem;
    }

    .modules-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .nomina-module {
        padding: 3rem 0;
    }

    .nomina-module__title {
        font-size: 1.5rem;
    }

    .nomina-steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .nomina-reports {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nomina-reports__list {
        grid-template-columns: 1fr;
    }

    .bullet-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* ---- Contact mobile ---- */
    .contact-section__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info__title {
        font-size: 1.6rem;
    }
}

/* Gracias page */
.gracias-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 5rem 0;
}

.gracias-section__inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.gracias-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: #2e7d32;
}

.gracias-icon svg { width: 36px; height: 36px; }

.gracias-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gracias-text {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.gracias-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--dark-orange);
    color: var(--dark-orange);
}

.btn--outline:hover {
    background: var(--dark-orange);
    color: #fff;
}

/* Form status messages */
.form-status { margin-top: 1rem; }
.form-success {
    color: #1a6e38;
    background: #e8f5e9;
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #2e7d32;
}
.form-error {
    color: #b71c1c;
    background: #ffebee;
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #c62828;
}
