/* =============================================
   AUDITORÍA VERITAS — Main Stylesheet
   PHP 8.1 | Design fiel al mockup original
   ============================================= */

:root {
    --teal-primary: #1a8fa0;
    --teal-dark: #1a7a8a;
    --teal-light: #e1f4f6;
    --teal-medium: #8acfda;
    --teal-hero-bg: #eaf7f9;
    --blue-dark: #1a3a4a;
    --text-dark: #2c3e50;
    --text-medium: #4a6070;
    --text-light: #7a9aaa;
    --white: #ffffff;
    --bg-light: #f5fbfc;
    --bg-section: #eaf7f9;
    --border-color: #c5e8ef;
    --shadow: 0 4px 20px rgba(26, 143, 160, 0.12);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --radius-sm: 6px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── CONTAINER ── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    background: var(--teal-primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    padding: 14px 32px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(26, 154, 173, 0.3);
}
.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 154, 173, 0.4);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--teal-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid var(--teal-primary);
    cursor: pointer;
    transition: all 0.25s;
}
.btn-outline:hover {
    background: var(--teal-primary);
    color: white;
}

/* ── TOP BAR ── */
.top-bar {
    background: var(--blue-dark);
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-contact {
    display: flex;
    gap: 24px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
}
.btn-client-login {
    background: var(--teal-primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 6px 18px;
    border-radius: 4px;
    transition: background 0.2s;
}
.btn-client-login:hover { background: var(--teal-dark); }

/* ── HEADER / NAV ── */
.site-header {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon { display: flex; align-items: center; }
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.logo-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}
.logo-name sup { font-size: 0.5em; }

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.main-nav ul {
    display: flex;
    gap: 24px;
}
.main-nav ul a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--text-medium);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}
.main-nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--teal-primary);
    transition: width 0.25s;
}
.main-nav ul a:hover,
.main-nav ul a.active { color: var(--teal-primary); }
.main-nav ul a:hover::after,
.main-nav ul a.active::after { width: 100%; }

.btn-presupuesto {
    background: var(--teal-primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 11px 22px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}
.btn-presupuesto:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── HERO SECTION ── */
.hero {
    background: var(--teal-hero-bg);
    padding: 70px 0 60px;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(26,154,173,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.18;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 34px;
    line-height: 1.5;
}
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image-placeholder {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3.2;
    background: linear-gradient(135deg, #c8eaf0 0%, #a8d8e2 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--teal-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.hero-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='22' r='10' fill='%231a9aad' opacity='0.15'/%3E%3Crect x='12' y='36' width='36' height='18' rx='4' fill='%231a9aad' opacity='0.1'/%3E%3C/svg%3E") center/80px repeat;
}
.placeholder-icon {
    font-size: 3.5rem;
    line-height: 1;
}
.placeholder-text {
    text-align: center;
    padding: 0 20px;
}

/* INVOICE / BAREMO badges on hero */
.hero-badge {
    position: absolute;
    background: white;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.06em;
}
.hero-badge.badge-invoice { top: 15%; right: -10px; }
.hero-badge.badge-baremo { top: 35%; right: -15px; }
.hero-badge.badge-veritas {
    bottom: 15%;
    left: 10%;
    color: var(--teal-primary);
    border: 2px solid var(--teal-primary);
}

/* ── SECTION GENERAL ── */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-light); }
.section-dark-bg { background: var(--bg-section); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--text-dark);
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    max-width: 620px;
    margin: 0 auto;
}
.section-divider {
    width: 50px; height: 4px;
    background: var(--teal-primary);
    border-radius: 2px;
    margin: 14px auto 0;
}

/* ── PROBLEMAS QUE SOLUCIONAMOS ── */
.problemas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.problema-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: transform 0.25s, box-shadow 0.25s;
}
.problema-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(26, 154, 173, 0.16);
}
.problema-icon {
    width: 64px; height: 64px;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.8rem;
}
.problema-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.problema-card p {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.55;
}

/* ── ENFOQUE AUDITORÍA ── */
.enfoque-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}
.enfoque-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 18px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: transform 0.25s, box-shadow 0.25s;
}
.enfoque-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26,154,173,0.16);
}
.enfoque-image-placeholder {
    width: 100%;
    aspect-ratio: 1.2/1;
    background: linear-gradient(135deg, #cceef4 0%, #a8d8e2 100%);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--teal-primary);
}
.enfoque-card h3 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}
.enfoque-card p {
    font-size: 0.78rem;
    color: var(--text-medium);
    line-height: 1.5;
}

/* ── SERVICIOS ── */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.servicio-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(26,154,173,0.16);
}
.servicio-image {
    width: 100%;
    aspect-ratio: 16/8;
    background: linear-gradient(135deg, #b8e6ee 0%, #8acfda 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    position: relative;
}
.servicio-image-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(26,58,74,0.6);
    color: white;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    text-align: center;
}
.servicio-body { padding: 22px; flex: 1; }
.servicio-body h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.servicio-body p {
    font-size: 0.84rem;
    color: var(--text-medium);
    line-height: 1.55;
}
.servicio-icon-wrap {
    width: 48px; height: 48px;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.4rem;
}

/* ── CLIENTES POTENCIALES ── */
.clientes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.cliente-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: transform 0.25s, box-shadow 0.25s;
}
.cliente-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26,154,173,0.15);
}
.cliente-icon {
    width: 64px; height: 64px;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.7rem;
}
.cliente-card h3 {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.cliente-card p {
    font-size: 0.82rem;
    color: var(--text-medium);
    line-height: 1.5;
}

/* ── PORTAL CLIENTES ── */
.portal-section {
    background: var(--bg-section);
}
.portal-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.portal-info h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.portal-info p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.6;
}
.portal-features { margin-bottom: 28px; }
.portal-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-medium);
}
.portal-feature-icon {
    width: 28px; height: 28px;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.portal-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(26,154,173,0.14);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.portal-mockup-header {
    background: var(--teal-primary);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.portal-mockup-header .brand-logo {
    display: flex; align-items: center; gap: 7px;
}
.portal-mockup-header .brand-logo span {
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
}
.portal-mockup-body { padding: 24px; }
.portal-login-form h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 18px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-dark);
    background: white;
    transition: border-color 0.2s;
    font-family: var(--font-body);
}
.form-control:focus {
    outline: none;
    border-color: var(--teal-primary);
}
.btn-login {
    width: 100%;
    background: var(--teal-primary);
    color: white;
    border: none;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}
.btn-login:hover { background: var(--teal-dark); }
.forgot-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--teal-primary);
}

/* My reports section in portal */
.portal-reports {
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
    margin-left: 10px;
}
.report-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.8rem;
    color: var(--text-medium);
}
.report-badge {
    background: var(--teal-light);
    color: var(--teal-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
}

/* ── TESTIMONIALS ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.testimonial-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    position: relative;
}
.testimonial-stars {
    color: #f0b429;
    font-size: 1rem;
    margin-bottom: 14px;
}
.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b8e6ee, #8acfda);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.testimonial-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}
.testimonial-role {
    font-size: 0.78rem;
    color: var(--text-light);
}
.quote-icon {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 3rem;
    color: var(--teal-medium);
    line-height: 1;
    font-family: Georgia, serif;
}

/* ── NOSOTROS/ABOUT CTA ── */
.about-section {
    background: var(--bg-section);
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #b8e6ee 0%, #8acfda 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.about-image-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(26,58,74,0.75);
    color: white;
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
}
.about-image-caption strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.about-content h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.about-content p {
    font-size: 0.93rem;
    color: var(--text-medium);
    line-height: 1.65;
    margin-bottom: 14px;
}

/* ── FINAL CTA ── */
.final-cta {
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%);
    padding: 70px 0;
    text-align: center;
}
.final-cta h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
}
.final-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin-bottom: 32px;
}
.btn-cta-white {
    display: inline-block;
    background: white;
    color: var(--teal-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    padding: 15px 36px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

/* ── FOOTER ── */
.site-footer {
    background: var(--blue-dark);
}
.footer-main { padding: 60px 0 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand .footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.84rem;
    line-height: 1.65;
    margin-top: 18px;
    margin-bottom: 22px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.social-icon {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover {
    border-color: var(--teal-primary);
    color: white;
    background: var(--teal-primary);
}
.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.84rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal-primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}
.footer-php {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4) !important;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem !important;
}

/* ── PAGE HERO (páginas interiores) ── */
.page-hero {
    background: var(--teal-hero-bg);
    padding: 52px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.page-hero p {
    color: var(--text-medium);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ── STATS BAR ── */
.stats-bar {
    background: var(--teal-primary);
    padding: 28px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-item { color: white; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    display: block;
}
.stat-label {
    font-size: 0.82rem;
    opacity: 0.85;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .enfoque-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .hero-title { font-size: 1.9rem; }
    .problemas-grid { grid-template-columns: repeat(2, 1fr); }
    .enfoque-grid { grid-template-columns: repeat(2, 1fr); }
    .servicios-grid { grid-template-columns: 1fr; }
    .clientes-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-inner { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .about-inner { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }

    /* Mobile nav */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 20px 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        gap: 0;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
    .main-nav ul li { border-bottom: 1px solid #eee; }
    .main-nav ul a { display: block; padding: 12px 0; }
    .btn-presupuesto { margin-top: 16px; width: 100%; text-align: center; }
    .hamburger { display: flex; }
    .site-header { position: sticky; top: 0; }
    .header-inner { flex-wrap: wrap; }
    .main-nav { width: 100%; }
    .top-bar-contact { display: none; }
}

@media (max-width: 480px) {
    .problemas-grid { grid-template-columns: 1fr; }
    .clientes-grid { grid-template-columns: 1fr; }
    .enfoque-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 1.4rem; }
    .final-cta h2 { font-size: 1.5rem; }
}
