:root {
    /* =========================
       PALETA
       ========================= */
    --color-primario: #2563eb;
    --color-primario-oscuro: #1d4ed8;

    --color-acento: #111827;
    --color-acento-oscuro: #0f172a;

    --color-texto: #111827;
    --color-texto-suave: #667085;
    --color-texto-muy-suave: #98a2b3;

    --color-fondo: #ffffff;
    --color-fondo-suave: #f8fafc;
    --color-fondo-azul: #f5f8ff;

    --color-borde: #eaecf0;
    --color-borde-hover: #d0d5dd;

    --color-verde: #16a34a;

    /* =========================
       TIPOGRAFÍA
       ========================= */
    --fuente: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* =========================
       FORMAS
       ========================= */
    --radio: 16px;
    --radio-sm: 10px;
    --radio-lg: 20px;

    /* =========================
       SOMBRAS
       ========================= */
    --sombra: 0 8px 30px rgba(16, 24, 40, 0.06);
    --sombra-hover: 0 12px 35px rgba(16, 24, 40, 0.09);

    /* =========================
       LAYOUT
       ========================= */
    --max-ancho: 1180px;
    --header-h: 68px;
}


/* =========================
   RESET
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--fuente);
    color: var(--color-texto);
    background: var(--color-fondo);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--color-primario);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================
   CONTENEDOR
   ========================= */

.container {
    width: 100%;
    max-width: var(--max-ancho);
    margin: 0 auto;
    padding: 0 1.25rem;
}


/* =========================
   TIPOGRAFÍA
   ========================= */

h1,
h2,
h3,
h4 {
    line-height: 1.15;
    color: var(--color-texto);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    font-weight: 750;
    margin: 0 0 1.25rem;
}

h2 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 720;
    margin: 0 0 1rem;
}

h3 {
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

h4 {
    font-size: 1rem;
    font-weight: 700;
}

p {
    margin-top: 0;
}

.muted {
    color: var(--color-texto-suave);
}


/* =========================
   BOTONES
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.25rem;

    border-radius: var(--radio-sm);
    border: 1px solid transparent;

    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.2;

    cursor: pointer;
    text-align: center;
    white-space: nowrap;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-acento);
    color: #fff;
    box-shadow: 0 2px 5px rgba(17, 24, 39, 0.12);
}

.btn-primary:hover {
    background: var(--color-acento-oscuro);
    color: #fff;
    box-shadow: 0 5px 14px rgba(17, 24, 39, 0.16);
}

.btn-secondary {
    background: var(--color-primario);
    color: #fff;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.15);
}

.btn-secondary:hover {
    background: var(--color-primario-oscuro);
    color: #fff;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.2);
}


/* =========================
   HEADER
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(234, 236, 240, 0.9);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    color: var(--color-texto);
    white-space: nowrap;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-azul {
    color: var(--color-primario-oscuro);
}


/* =========================
   NAVEGACIÓN
   ========================= */

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.75rem;

    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    position: relative;

    color: var(--color-texto-suave);
    font-size: 0.94rem;
    font-weight: 550;

    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--color-texto);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;

    height: 2px;
    border-radius: 2px;

    background: var(--color-primario);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.2s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.header-cta {
    white-space: nowrap;
}

.header-call {
    display: none;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 50%;
    background: var(--color-fondo-azul);
    color: var(--color-primario);
}

.nav-toggle {
    display: none;

    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 48px;
    height: 48px;
    padding: 0 10px;

    background: var(--color-fondo-suave);
    border: 1px solid var(--color-borde);
    border-radius: var(--radio-sm);

    cursor: pointer;
}

.nav-toggle span {
    display: block;

    height: 2px;
    width: 100%;

    background: var(--color-texto);
    border-radius: 2px;
}


/* =========================
   MENÚ MÓVIL
   ========================= */

.mobile-menu {
    display: none;
}

.mobile-cta-bar {
    display: none;
}


/* =========================
   BREADCRUMBS
   ========================= */

.breadcrumbs {
    font-size: 0.875rem;
    color: var(--color-texto-muy-suave);
    margin: 1.25rem 0;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;

    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    white-space: nowrap;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.4rem;
    color: #c5cad3;
}

.breadcrumbs a {
    color: var(--color-texto-suave);
}

.breadcrumbs a:hover {
    color: var(--color-texto);
}


/* =========================
   HERO
   ========================= */

.hero {
    position: relative;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(37, 99, 235, 0.07),
            transparent 32%
        ),
        var(--color-fondo-suave);

    padding: 5.5rem 0 6rem;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    width: 420px;
    height: 420px;

    right: -180px;
    top: -180px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.035);

    pointer-events: none;
}

.hero h1 {
    position: relative;
    max-width: 800px;
}

.hero p {
    max-width: 660px;

    color: var(--color-texto-suave);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.7;

    margin-bottom: 0;
}


/* =========================
   HEADER DE ZONA (H1 + IMAGEN)
   ========================= */

.hero-zona {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-zona__texto {
    min-width: 0;
}

.hero-zona__media {
    margin: 0;

    border: 1px solid var(--color-borde);
    border-radius: var(--radio);

    overflow: hidden;

    box-shadow: var(--sombra);

    aspect-ratio: 4 / 3;
}

.hero-zona__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================
   SECCIONES
   ========================= */

.section {
    padding: 4.5rem 0;
}

.section + .section {
    padding-top: 1.5rem;
}


/* =========================
   GRID
   ========================= */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


/* =========================
   CARDS
   ========================= */

.card {
    padding: 1.5rem;

    background: var(--color-fondo);
    border: 1px solid var(--color-borde);
    border-radius: var(--radio);

    box-shadow: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--color-borde-hover);
    box-shadow: var(--sombra);
}

.card h3 {
    margin-top: 0;
}

.card h3 a {
    color: var(--color-texto);
}


/* =========================
   PANEL
   ========================= */

.panel {
    background: var(--color-fondo-suave);
    border: 1px solid transparent;
    border-radius: var(--radio-lg);

    padding: 2.5rem;

    margin: 2.5rem 0;
}


/* =========================
   CHECKLIST
   ========================= */

.checklist {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.checklist li {
    position: relative;

    padding-left: 1.7rem;
    margin-bottom: 0.6rem;
}

.checklist li::before {
    content: "✓";

    position: absolute;
    left: 0;
    top: 0;

    color: var(--color-verde);
    font-weight: 750;
}

.checklist-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 2.5rem;
}


/* =========================
   SELECTOR
   ========================= */

.selector-intro {
    text-align: left;
}

.selector-intro h2 {
    margin-top: 0;
}

.necesidades {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;

    max-width: 880px;
}

.necesidad {
    position: relative;

    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1.15rem 1.25rem;

    background: #fff;
    border: 1px solid transparent;
    border-radius: 14px;

    color: var(--color-texto);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.necesidad:hover {
    background: var(--color-fondo-suave);
    border-color: var(--color-borde);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.05);

    text-decoration: none;
}

.necesidad .icono {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;
    background: var(--color-fondo-azul);

    color: var(--color-primario);

    font-size: 1.25rem;
}

.necesidad strong {
    display: block;
    margin-bottom: 0.15rem;
}

.necesidad small {
    display: block;
    color: var(--color-texto-suave);
    line-height: 1.45;
}

.selector-cta {
    margin-top: 1.5rem;
}

.selector-cta p {
    margin: 0 0 0.75rem;
}


/* =========================
   PILLS
   ========================= */

.beneficios-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    background: var(--color-fondo-suave);
    border: 1px solid var(--color-borde);
    border-radius: 999px;

    padding: 0.5rem 0.9rem;

    font-size: 0.9rem;
    color: var(--color-texto-suave);
}


/* =========================
   FAQ
   ========================= */

.faq-card {
    margin-bottom: 0.85rem;
}


/* =========================
   CTA
   ========================= */

.cta-banner {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;

    background:
        linear-gradient(
            135deg,
            #1d4ed8 0%,
            #2563eb 100%
        );

    color: #fff;

    border-radius: var(--radio-lg);

    padding: 2.5rem;

    margin: 2rem 0;

    overflow: hidden;
}

.cta-banner::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -120px;
    top: -150px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    pointer-events: none;
}

.cta-banner h2 {
    position: relative;
    z-index: 1;

    color: #fff;
    margin: 0 0 0.4rem;
}

.cta-banner p {
    position: relative;
    z-index: 1;

    margin: 0;
    color: #dbeafe;
}


 /* =========================================================
    FOOTER — VERSIÓN CLARA / MINIMALISTA
    ========================================================= */

.site-footer {
    background: #fff;
    color: var(--color-texto);

    margin-top: 5rem;
    padding: 4.5rem 0 0;

    border-top: 1px solid var(--color-borde);
}


/* =========================
   GRID PRINCIPAL
   ========================= */

.footer-grid {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.5fr)
        minmax(150px, 0.7fr)
        minmax(150px, 0.7fr)
        minmax(220px, 0.9fr);

    gap: 3rem;

    padding-bottom: 4rem;
}


/* =========================
   COLUMNA DE MARCA
   ========================= */

.footer-col:first-child {
    max-width: 390px;
}

.footer-col:first-child .footer-title {
    margin-bottom: 0.75rem;

    color: var(--color-texto);

    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.footer-col:first-child > p:not(.footer-title) {
    max-width: 350px;

    margin: 0;

    color: var(--color-texto-suave);

    font-size: 0.95rem;
    line-height: 1.65;
}


/* =========================
   TÍTULOS
   ========================= */

.footer-title {
    color: var(--color-texto);

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    margin: 0 0 1rem;
}


/* =========================
   LISTAS
   ========================= */

.site-footer ul {
    list-style: none;

    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 0.55rem;
}

.site-footer li a {
    color: var(--color-texto-suave);

    font-size: 0.9rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.site-footer li a:hover {
    color: var(--color-primario);
}


/* =========================
   CONTACTO
   ========================= */

.footer-col:last-child p {
    margin: 0 0 0.55rem;
}

.footer-col:last-child a {
    color: var(--color-texto-suave);

    font-size: 0.92rem;

    transition: color 0.2s ease;
}

.footer-col:last-child a:hover {
    color: var(--color-primario);
}


/* Teléfono */

.footer-col:last-child p:first-of-type a {
    display: inline-block;

    color: var(--color-texto);

    font-size: 1.15rem;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.footer-col:last-child p:first-of-type a:hover {
    color: var(--color-primario);
}


/* Dirección y horario */

.footer-col:last-child p:nth-of-type(3),
.footer-col:last-child p:nth-of-type(4) {
    color: var(--color-texto-suave);

    font-size: 0.85rem;
}


/* =========================
   BARRA INFERIOR
   ========================= */

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    padding: 1.35rem 0;

    border-top: 1px solid var(--color-borde);

    color: var(--color-texto-muy-suave);

    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
}


/* =========================
   PEQUEÑO ACENTO AZUL
   ========================= */

.site-footer a {
    text-decoration: none;
}


/* =========================
   MÓVIL
   ========================= */

@media (max-width: 900px) {

    .footer-grid {
        grid-template-columns:
            1.4fr
            1fr
            1fr;

        gap: 2.5rem;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
        max-width: 600px;
    }
}


@media (max-width: 768px) {

    .site-footer {
        margin-top: 3.5rem;
        padding-top: 3.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;

        gap: 2.5rem 2rem;

        padding-bottom: 3rem;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 0.3rem;
    }
}


@media (max-width: 480px) {

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 2rem;
    }

    .footer-col:first-child {
        grid-column: auto;
    }

    .footer-bottom {
        padding: 1.15rem 0;
    }
}


/* =========================
   DOS COLUMNAS
   ========================= */

.two-col {
    display: grid;

    gap: 3rem;

    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));
}


/* =========================
   PROSE
   ========================= */

.prose {
    max-width: 760px;
}

.prose p {
    color: var(--color-texto-suave);
}

.prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.prose ul,
.prose ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;

    border-left: 4px solid var(--color-primario);
    border-radius: 0 var(--radio-sm) var(--radio-sm) 0;

    background: var(--color-fondo-azul);

    color: var(--color-texto-suave);
}

.prose blockquote p {
    margin: 0;
}

.prose figure {
    margin: 2rem 0;
}

.prose figure img {
    width: 100%;
    height: auto;

    border: 1px solid var(--color-borde);
    border-radius: var(--radio);

    box-shadow: var(--sombra);
}

.prose figcaption {
    margin-top: 0.75rem;

    color: var(--color-texto-muy-suave);
    font-size: 0.875rem;
    text-align: center;
}

.prose img {
    max-width: 100%;
    height: auto;

    border-radius: var(--radio);
}


/* =========================
   FORMULARIOS
   ========================= */

form label {
    display: block;

    font-size: 0.9rem;
    font-weight: 650;

    margin-bottom: 0.45rem;
}

form input,
form textarea,
form select {
    width: 100%;

    padding: 0.8rem 0.9rem;

    border: 1px solid var(--color-borde);
    border-radius: var(--radio-sm);

    background: #fff;

    color: var(--color-texto);

    font: inherit;

    margin-bottom: 1.1rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

form input::placeholder,
form textarea::placeholder {
    color: #98a2b3;
}

form input:hover,
form textarea:hover,
form select:hover {
    border-color: var(--color-borde-hover);
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;

    border-color: var(--color-primario);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* =========================
   PRESUPUESTO
   ========================= */

.presupuesto-hero {
    padding: 3rem 2rem;
    margin: 2.5rem 0;

    background:
        radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.07), transparent 32%),
        var(--color-fondo-suave);

    border: 1px solid var(--color-borde);
    border-radius: var(--radio-lg);
}

.presupuesto-hero h1 {
    margin-top: 0;
}

.presupuesto-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: start;
}

.form-presupuesto {
    padding: 2rem;
}

.form-presupuesto .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
}

.form-presupuesto .form-grid .full {
    grid-column: 1 / -1;
}

.form-presupuesto input[type="file"] {
    padding: 0.6rem;
}

.pasos {
    margin: 0;
    padding-left: 1.25rem;
}

.pasos li {
    margin-bottom: 0.75rem;
}

.aviso {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;

    border: 1px solid transparent;
    border-radius: var(--radio-sm);
}

.aviso-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.aviso-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.campo-error {
    margin: -0.6rem 0 0.9rem;
    color: #b91c1c;
    font-size: 0.85rem;
}

.file-hint {
    display: block;
    margin: -0.6rem 0 1.1rem;
    color: var(--color-texto-muy-suave);
    font-size: 0.85rem;
}


/* =========================
   SKIP LINK
   ========================= */

.skip-link {
    position: absolute;

    top: -40px;
    left: 1rem;

    background: var(--color-primario);
    color: #fff;

    padding: 0.6rem 1rem;

    border-radius: var(--radio-sm);

    z-index: 100;
}

.skip-link:focus {
    top: 1rem;
}


/* =========================
   FOCUS ACCESSIBILITY
   ========================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}


/* =========================
   REDUCIR ANIMACIONES
   ========================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   TABLET / MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    /* =========================
       HEADER
       ========================= */

    .site-header {
        position: fixed;

        top: 0;
        left: 0;
        right: 0;

        z-index: 100;
    }

    .header-inner {
        min-height: var(--header-h);
    }

    .main-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .header-call {
        display: flex;
    }

    .header-inner .header-call {
        margin-left: auto;
    }


    /* =========================
       BODY
       ========================= */

    body {
        padding-top: var(--header-h);
        padding-bottom: 72px;
    }


    /* =========================
       MENÚ MÓVIL
       ========================= */

    .mobile-menu {
        display: block;

        position: fixed;

        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 72px;

        background: rgba(255, 255, 255, 0.98);

        padding: 1.5rem 1.25rem 2.5rem;

        overflow-y: auto;

        z-index: 90;

        transform: translateX(-100%);

        transition:
            transform 0.25s ease;

        box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    }

    .mobile-menu.open {
        transform: translateX(0);
    }

    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu li {
        border-bottom: 1px solid var(--color-borde);
    }

    .mobile-menu a {
        display: block;

        padding: 1.2rem 0.5rem;

        color: var(--color-texto);

        font-size: 1.2rem;
        font-weight: 650;
    }

    .mobile-menu .mobile-cta {
        display: flex;
        align-items: center;
        justify-content: center;

        min-height: 52px;

        margin-top: 1.5rem;

        color: #fff;
    }


    /* =========================
       BARRA CTA MÓVIL
       ========================= */

    .mobile-cta-bar {
        display: grid;

        grid-template-columns: 1fr 1.4fr;

        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 110;

        background: rgba(255, 255, 255, 0.96);

        border-top: 1px solid var(--color-borde);

        box-shadow:
            0 -8px 24px rgba(16, 24, 40, 0.08);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .mobile-cta-bar a {
        display: flex;
        align-items: center;
        justify-content: center;

        gap: 0.5rem;

        min-height: 64px;

        font-weight: 700;
        font-size: 1rem;

        text-decoration: none;
    }

    .mobile-cta-call {
        background: var(--color-fondo-suave);
        color: var(--color-texto);
    }

    .mobile-cta-budget {
        background: var(--color-acento);
        color: #fff;
    }


    /* =========================
       BREADCRUMBS
       ========================= */

    .breadcrumbs {
        margin: 1rem 0;
    }

    .breadcrumbs ol {
        flex-wrap: nowrap;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;

        padding-bottom: 0.35rem;

        scrollbar-width: thin;
    }


    /* =========================
       HERO
       ========================= */

    .hero {
        padding: 3.5rem 0 4rem;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.4rem);
        letter-spacing: -0.04em;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero-zona {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .presupuesto-grid {
        grid-template-columns: 1fr;
    }

    .form-presupuesto .form-grid {
        grid-template-columns: 1fr;
    }


    /* =========================
       SECCIONES
       ========================= */

    .section {
        padding: 3.5rem 0;
    }

    .section + .section {
        padding-top: 1rem;
    }


    /* =========================
       GRID
       ========================= */

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }


    /* =========================
       PANEL
       ========================= */

    .panel {
        padding: 1.5rem;

        margin: 1.5rem 0;

        border-radius: 14px;
    }


    /* =========================
       NECESIDADES
       ========================= */

    .necesidades {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .necesidad {
        padding: 1rem;
    }


    /* =========================
       CHECKLIST
       ========================= */

    .checklist-2col {
        grid-template-columns: 1fr;
    }


    /* =========================
       CTA
       ========================= */

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;

        padding: 2rem 1.5rem;

        border-radius: 16px;
    }
}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h2 {
        font-size: 1.85rem;
    }

    .hero {
        padding: 3rem 0 3.5rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .btn {
        min-height: 48px;
    }

    .card {
        padding: 1.25rem;
    }

    .cta-banner {
        padding: 1.5rem;
    }
}
/* Ocultamos el input feo por defecto */
.input-oculto {
    display: none;
}

/* Estilizamos el label para que parezca un botón */
.btn-custom-file {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 5px;
    transition: background-color 0.2s;
}

.btn-custom-file:hover {
    background-color: #0056b3;
}

.file-chosen-text {
    margin-left: 10px;
    font-size: 0.9em;
    color: #666;
}

.file-hint {
    display: block;
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}
/* Contenedor de las previsualizaciones (Flexbox para la cuadrícula) */
.preview-contenedor {
    display: flex;
    flex-wrap: wrap; /* Permite que bajen a la siguiente línea */
    gap: 12px;       /* Espacio entre imágenes */
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Estilo para cada imagen individual */
.preview-imagen {
    width: 90px;            /* Tamaño fijo de la miniatura */
    height: 90px;           /* Tamaño fijo de la miniatura */
    object-fit: cover;      /* IMPORTANTE: Recorta la imagen para llenar el cuadrado sin deformarla */
    border-radius: 6px;     /* Bordes redondeados */
    border: 1px solid #ced4da;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Pequeña sombra */
    transition: transform 0.2s ease; /* Efecto suave */
}

/* Efecto al pasar el ratón por encima (opcional) */
.preview-imagen:hover {
    transform: scale(1.05); /* Se agranda un poquito */
}
/* Envoltorio para cada imagen y su botón */
.preview-wrapper {
    position: relative;
    display: inline-block;
}

/* El botón de la "X" para borrar */
.btn-eliminar-preview {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #dc3545; /* Rojo de alerta */
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
    padding: 0;
}

.btn-eliminar-preview:hover {
    background-color: #c82333; /* Rojo más oscuro al pasar el ratón */
}
/* Transiciones suaves para los bordes de los inputs */
.form-grid input:not([type="file"]), 
.form-grid select, 
.form-grid textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ced4da; /* Tu color de borde por defecto */
}

/* Estado de error: Borde rojo y pequeña sombra brillante */
.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

/* Estado válido: Borde verde sutil */
.input-valido {
    border-color: #198754 !important;
}

/* Mensaje de error inyectado por JS */
.error-js {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    animation: fadeInDown 0.3s ease forwards;
    opacity: 0;
    transform: translateY(-5px);
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Opcional: Agitar el botón si hay error al intentar enviar */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.shake-animation {
    animation: shake 0.4s ease-in-out;
}