/* ===== Mueve Ciudad — estilos (réplica fiel del sitio original) ===== */
:root {
    --naranja: #e47827;
    --naranja-claro: #ee8122;
    --verde: #a4be3b;
    --teal: #0099a8;
    --teal-nav: #009aa7;
    --teal-claro: #60cdca;
    --gris: #efefef;
    --blanco: #ffffff;
    --texto: #333333;
    --texto-suave: #555555;
    --borde: #e0e0e0;
    --error: #dc2626;
    --exito: #16a34a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.5em;
    color: var(--texto);
    background-color: var(--blanco);
}

/* ===== Tipografía (réplica exacta) ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
}

h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 120%;
    color: var(--texto);
}

h2 {
    font-size: 32px;
    font-weight: 200;
    color: var(--texto);
}

h3 {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--teal);
}

h3.naranja {
    color: var(--naranja);
}

h3.verde {
    color: var(--verde);
}

h4 {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--naranja-claro);
}

p {
    color: var(--texto-suave);
    margin-bottom: 12px;
}

/* ===== Encabezado ===== */
header {
    text-align: center;
}

.logohead {
    padding: 25px;
    -webkit-box-reflect: below 0 -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(50%, transparent), to(rgba(250, 250, 250, 0.1)));
}

.logo {
    display: inline-block;
}

.logo img {
    display: block;
}

.nav-principal {
    padding: 25px 20px 30px;
}

.horizontal {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.horizontal li {
    display: inline-block;
}

.navega {
    display: inline-block;
    border: 1px solid #fff;
    border-radius: 25px;
    background: #fff;
    padding: 10px 22px;
    color: var(--texto);
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.navega:hover {
    border: 1px solid var(--naranja);
    box-shadow: #efefef 0 0 10px;
    text-decoration: none;
}

.navega:active {
    border: 1px solid var(--verde);
    box-shadow: #ccc 0 0 10px;
}

.navlogin {
    display: inline-block;
    border: 1px solid #efefef;
    border-radius: 25px;
    background: var(--teal-nav);
    padding: 10px 22px;
    color: #fff;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: background 0.2s ease;
}

.navlogin:hover {
    background: var(--teal-claro);
    text-decoration: none;
}

/* ===== Secciones alternadas ===== */
.containerA,
.containerB {
    width: 100%;
    padding: 50px;
}

.containerA {
    background-color: var(--blanco);
}

.containerB {
    background-color: var(--gris);
}

.ancho {
    max-width: 1100px;
    margin: 0 auto;
}

.ancho h3 {
    margin-bottom: 10px;
}

.ancho h1 {
    margin-bottom: 30px;
}

/* ===== Columnas ===== */
.columnas {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.col-texto {
    flex: 1 1 50%;
    min-width: 280px;
}

.col-texto h2 {
    margin: 20px 0 8px;
}

.col-imagen {
    flex: 1 1 40%;
    min-width: 240px;
    display: flex;
    justify-content: center;
}

.img-contenido {
    max-width: 100%;
    height: auto;
}

/* ===== Cómo funciona ===== */
.pasos {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.pasos-texto {
    flex: 1 1 50%;
    min-width: 280px;
}

.pasos-texto h2 {
    margin: 20px 0 8px;
}

.pasos-imagen {
    flex: 1 1 40%;
    min-width: 240px;
    display: flex;
    justify-content: center;
}

/* ===== Descarga ===== */
.descarga {
    text-align: center;
}

.dispositivos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
}

.dispositivos img {
    height: 380px;
    width: auto;
    max-width: 100%;
}

.tiendas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.tiendas a {
    display: inline-block;
}

.tiendas img {
    height: 42px;
    width: auto;
}

/* ===== Contacto ===== */
.ancho-contacto {
    max-width: 760px;
}

.tarjeta-contacto {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 40px;
}

.alerta {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alerta-exito {
    background: #f0fdf4;
    color: var(--exito);
    border: 1px solid #bbf7d0;
}

.alerta-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

.fila {
    display: flex;
    gap: 20px;
}

.campo {
    flex: 1;
    margin-bottom: 20px;
    position: relative;
}

.campo label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--texto);
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--borde);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--texto);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 153, 168, 0.15);
}

.campo textarea {
    resize: vertical;
}

.error-campo {
    display: block;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 1em;
}

.input-invalido {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* ===== Campo de fecha (texto + calendario) ===== */
.fecha-contenedor {
    position: relative;
    display: flex;
    align-items: center;
}

.fecha-contenedor input[type="text"] {
    padding-right: 44px;
}

.btn-calendario {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--teal);
    cursor: pointer;
    border-radius: 6px;
    padding: 0;
}

.btn-calendario:hover {
    background: var(--gris);
    color: var(--naranja);
}

.fecha-picker-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ===== Autocompletar correo ===== */
.autocompletar-correo {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 20;
    display: none;
    max-height: 160px;
    overflow-y: auto;
}

.autocompletar-correo .sugerencia {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--texto);
    font-size: 0.95rem;
}

.autocompletar-correo .sugerencia:hover {
    background: var(--gris);
    color: var(--teal);
}

.campo-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.boton {
    display: inline-block;
    background: var(--naranja);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 1rem;
    padding: 14px 36px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.boton:hover {
    background: #c96416;
}

.boton:active {
    transform: scale(0.98);
}

.contenedor-boton {
    text-align: center;
}

.campo.captcha {
    display: flex;
    justify-content: center;
}

.nota-legal {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--texto-suave);
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
}

/* ===== Pantalla de éxito ===== */
.exito {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 40px;
}

.exito h1 {
    margin-bottom: 30px;
}

.folio-etiqueta {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    color: var(--texto-suave);
    margin-bottom: 8px;
}

.folio-numero {
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--naranja);
    background: var(--gris);
    border: 1px solid var(--borde);
    display: inline-block;
    padding: 16px 28px;
    border-radius: 12px;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.mensaje-info {
    max-width: 620px;
    margin: 0 auto 30px;
    font-size: 1.05rem;
    color: var(--texto);
}

.redirigir {
    font-size: 0.95rem;
    color: var(--texto-suave);
}

.enlace-azul {
    color: #0066cc;
    text-decoration: underline;
}

.enlace-azul:hover {
    color: #004999;
}

/* ===== Pie de página (réplica exacta) ===== */
footer {
    width: 100%;
    padding: 50px;
    background-color: var(--blanco);
    border-bottom: 5px solid var(--naranja-claro);
}

.footer-columnas {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.col-footer {
    flex: 1 1 200px;
    max-width: 25%;
}

.logo-footer {
    max-width: 160px;
    height: auto;
    margin-bottom: 10px;
}

.col-footer p {
    color: var(--texto);
    font-weight: 300;
}

.col-footer h4 {
    margin-bottom: 20px;
}

.col-footer ul {
    list-style-type: none;
    font-size: 11px;
    padding-left: 0;
    margin-left: 0;
}

.col-footer ul li {
    margin-bottom: 6px;
}

.col-footer ul li a {
    color: var(--teal);
    text-transform: uppercase;
    text-decoration: none;
}

.col-footer ul li a:hover,
.col-footer ul li a:active {
    color: var(--naranja-claro);
    text-transform: uppercase;
    text-decoration: underline;
}

.copyright {
    max-width: 1100px;
    margin: 30px auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--texto-suave);
}

/* ===== Responsivo ===== */

/* Tabletas y pantallas medianas */
@media (max-width: 1024px) {
    .containerA,
    .containerB,
    footer {
        padding: 50px 30px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .dispositivos img {
        height: 300px;
    }
}

/* Móviles y tabletas pequeñas */
@media (max-width: 768px) {
    .containerA,
    .containerB,
    footer {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3,
    h4 {
        letter-spacing: 0.3em;
    }

    .columnas,
    .pasos {
        flex-direction: column;
        text-align: center;
    }

    .col-texto,
    .pasos-texto {
        min-width: 100%;
    }

    .fila {
        flex-direction: column;
        gap: 0;
    }

    .campo {
        margin-bottom: 16px;
    }

    .tarjeta-contacto {
        padding: 24px 18px;
    }

    .boton {
        width: 100%;
    }

    .dispositivos img {
        height: 240px;
    }

    .footer-columnas {
        flex-direction: column;
    }

    .col-footer {
        max-width: 100%;
    }

    .horizontal {
        gap: 8px;
    }

    .navega,
    .navlogin {
        padding: 8px 16px;
    }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
    h1 {
        font-size: 1.7rem;
    }

    .logo img {
        width: 120px;
        height: 120px;
    }

    .dispositivos img {
        height: 200px;
    }

    .tiendas img {
        height: 38px;
    }
}
