:root {
    --amarillo: #f4c400;
    --amarillo-oscuro: #e0b200;
    --morado: #3b2466;
    --morado-oscuro: #2a184b;
    --gris-oscuro: #121212;
    --gris-medio: #2b2b2b;
    --gris-claro: #f2f2f2;
    --blanco: #ffffff;
}

html {
    scroll-behavior: smooth;
}

.card__cta {
    -webkit-text-fill-color: #1a1a1a !important;
    color: #1a1a1a !important;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* evita que cualquier desbordamiento horizontal “empuje” la vista */
}

#equipos,
#servicios,
#sobre-nosotros,
#contacto,
#cotizacion {
    scroll-margin-top: 117px; /* header + logo que sobresale */
}

#equipos {
    position: relative;
    z-index: 2;
    color: #222; /* texto oscuro */
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;    color: var(--blanco);
    line-height: 1.5;
}

/* HEADER */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 32px; /* más delgado, estilo Lovable */
    background: rgba(9, 0, 25, 0.38); /* más transparente */
    backdrop-filter: blur(14px);      /* más efecto vidrio */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contenedor del logo */
.top-bar__logo {
    display: flex;
    align-items: center;
    height: 96px; /* altura fija del header */
    position: relative;
}

/* Logo más grande y con bordes suaves */
.top-bar__logo img {
    height: 140px;                 /* tamaño grande */
    position: absolute;
    top: -6px;
    bottom: -26px;                 /* sobresale del header */
    left: 0;
    z-index: 60;

    border: 2px solid rgba(234, 234, 234); /* línea gris simple */
    border-radius: 14px;           /* esquinas suaves */
    background: none;              /* sin fondo extra */
    padding: 0;                    /* sin espacio que engrose el borde */
    object-fit: contain;

    box-shadow: 0 4px 14px rgba(0,0,0,0.25); /* sombra suave opcional */
}

.top-bar__brand {
    position: relative;
    margin-left: 150px; /* mueve el texto a la derecha del logo */
    z-index: 70;        /* asegura que quede encima del logo */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.top-bar__nav {
    display: flex;
    align-items: center;
    gap: 56px; /* más separación entre elementos */
    flex: 1;
    justify-content: center;
    padding: 4px 0; /* muy delgado, estilo Lovable */
}


.top-bar__nav a {
    text-decoration: none; /* sin subrayado */
    color: var(--blanco);
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.top-bar__nav a:hover {
    opacity: 1;
    color: var(--amarillo);
}

/* BOTÓN HAMBURGUESA BASE */
.top-bar__hamburger {
    background: transparent !important;
    border: none;
    display: none; /* AHORA sí funciona */
    padding: 12px;
    cursor: pointer;
    margin-left: auto;
    z-index: 1000;

    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 3px;
}

/* LÍNEAS DEL HAMBURGUESA */
.hamb-line {
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    display: block;
    margin: 0;
    transition: transform .25s ease, opacity .25s ease;
}

/* ANIMACIÓN A X */
.top-bar__hamburger.is-active .hamb-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.top-bar__hamburger.is-active .hamb-line:nth-child(2) {
    opacity: 0;
}

.top-bar__hamburger.is-active .hamb-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* MENÚ MÓVIL BASE */
.mobile-nav {
    position: fixed;
    right: 0;
    width: 85%;
    background: #111;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-left: 1px solid rgba(255,255,255,0.08);
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 999;
}

/* ENLACES DEL MENÚ */
.mobile-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
}

/* CTA DENTRO DEL MENÚ */
.mobile-nav__cta {
    margin-top: auto;
    background: var(--amarillo);
    color: #1a1a1a !important;
    padding: 14px 22px;
    border-radius: 8px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* OVERLAY BASE */
.mobile-overlay {
    position: fixed;
    top: 117px;
    left: 0;
    width: 15%;
    height: calc(100vh - 117px);
    background: rgba(0,0,0,0.45);

    /* SIN transición */
    opacity: 0;
    pointer-events: none;

    z-index: 998;
}

/* ESTADOS */
.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-overlay.is-active {
    opacity: 1;          /* aparece de golpe */
    pointer-events: auto;
}

.brand-title {
    font-size: 1.45rem; /* más grande, estilo Lovable */
    font-weight: 700;
    letter-spacing: 0.5px; /* más elegante */
    color: var(--blanco);
}

.brand-line1,
.brand-line2 {
    font-stretch: condensed; /* si el navegador lo soporta */
    transform: scaleX(0.78); /* truco universal para hacerla más alta que ancha */
    transform-origin: left center;
}

.brand-line1 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1.5px; /* más aire entre letras */
    color: var(--amarillo);
}

.brand-line2 {
    font-size: 1.85rem; /* más grande que la línea superior */
    font-weight: 900;
    letter-spacing: 1.2px;
    color: var(--blanco);
    margin-top: -4px; /* compacta visualmente */
}


/* Símbolo ® igual de grande y amarillo */
.brand-r {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--amarillo);
    margin-left: 2px;
}

/* Línea inferior: DE JUÁREZ (más grande y blanca) */
.brand-line2 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--blanco);
    display: block;
    margin-top: -2px; /* pequeño ajuste visual */
}

.brand-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--amarillo);
    letter-spacing: 0.3px;
}

.top-bar__phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.top-bar__phone .phone {
    font-weight: 600;
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

/* BOTÓN PRINCIPAL DEL HEADER (ESTILO LOVABLE) */
.btn--header-primary {
    background: var(--amarillo);
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px; /* espacio entre texto y flecha */
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn--header-primary:hover {
    background: var(--amarillo-oscuro);
    transform: translateY(-1px);
}

.btn-arrow {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

.hero__content {
    position: relative;
    margin-top: 37vh;   /* misma altura para todos los slides */
    max-width: 980px;
    padding: 0 24px;
    text-align: left;
    z-index: 5;
}

.hero__content--primary h1 {
    all: unset;
    font-size: 2.65rem;          /* tamaño idéntico */
    line-height: 1.12;           /* compacto */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;      /* tracking estilo Lovable */
    color: #ffffff;
    margin-bottom: 14px;         /* separación exacta */
}

.hero__content--primary p {
    font-size: 1.05rem;
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.92); /* opacidad idéntica */
    margin-bottom: 26px;             /* separación exacta */
}

/* BOTONES DEL HERO (ESTILO LOVABLE) */
.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero__slide.hero__slide--active {
    opacity: 1;
    pointer-events: auto;
}

.hero__slide.active {
    opacity: 1;
    z-index: 2;
}

.btn--hero-primary:hover {
    background: var(--amarillo-oscuro);
    color: #1a1a1a;
    transform: translateY(-1px);
}

/* BOTÓN SECUNDARIO (CONOCER SERVICIOS) */

.btn--hero-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--amarillo);
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--amarillo);
    color: #000;
    box-shadow: 0 8px 20px rgba(244, 196, 0, 0.35);
}

.btn--primary:hover {
    background: var(--amarillo-oscuro);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--blanco);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
    border-color: var(--amarillo);
    color: var(--amarillo);
}

.btn--outline {
    background: transparent;
    color: var(--amarillo);
    border: 1px solid var(--amarillo);
}

.btn--outline:hover {
    background: var(--amarillo);
    color: #000;
}

.btn--small {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn--full {
    width: 100%;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh; /* ocupa toda la pantalla */
    min-height: 620px; /* evita que se vea muy pequeño en laptops */
    padding: 0; /* sin padding para que la imagen sea full */
    padding-top: 96px; /* altura del header */
    display: flex;
    align-items: center; /* centra verticalmente el contenido */
    background: rgb(9, 0, 25); /* tu morado corporativo detrás */
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.90) 0%,   /* más oscuro a la izquierda */
        rgba(0, 0, 0, 0.80) 20%,  /* transición suave */
        rgba(0, 0, 0, 0.60) 40%,  /* más claro */
        rgba(0, 0, 0, 0.30) 70%,  /* casi transparente */
        rgba(0, 0, 0, 0.10) 100%  /* prácticamente sin overlay */
    );
    backdrop-filter: blur(0px);
    pointer-events: none;
    z-index: 2;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hero__slide--active {
    opacity: 1;
    pointer-events: auto;
}

.hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* HERO CONTROLS */
.hero__controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 5;
}

.hero__arrow {
    background: rgba(0, 0, 0, 0.4);
    color: var(--blanco);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.hero__arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-1px);
}

.hero__dots {
    display: flex;
    gap: 8px;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.hero__dot--active {
    background: var(--amarillo);
    transform: scale(1.2);
}

/* TAG */
.hero__tag {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.hero__tag-line {
    width: 68px;
    height: 3px;
    background: var(--amarillo);
}

.hero__tag-text {
    font-size: 1rem;
    font-weight: 800;
    color: var(--amarillo);
    text-transform: uppercase;
    font-stretch: condensed;
    transform: scaleX(0.82);
    letter-spacing: 0.08em;
}/* TÍTULO LOVABLE */
.hero__title {
    display: inline-block;
    transform: scaleX(0.82);
    transform-origin: left center;
    font-weight: 900;
    margin-bottom: 10px;
}

.hero__title-white,
.hero__title-yellow {
    display: block;
    line-height: 0.9;
    font-stretch: condensed;
    letter-spacing: 0.065em;
}

.hero__title-white {
    color: #ffffff;
    font-size: 4.2rem;
}

.hero__title-yellow {
    color: var(--amarillo);
    font-size: 4.8rem;
}

/* SUBTÍTULO */
.hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 26px;
}

.hero__actions {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

/* Botón principal */
.btn--hero-primary {
    background: var(--amarillo);
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 14px 30px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn--hero-primary:hover {
    background: var(--amarillo-oscuro);
    transform: translateY(-1px);
}

/* Botón secundario */
.btn--hero-secondary {
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn--hero-secondary:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: var(--amarillo);
    transform: translateY(-1px);
}

/* SECCIONES */
.section {
    padding: 60px 32px;
}

/* CONTENEDOR DEL HEADER DE SECCIÓN */
.section-header {
    margin-bottom: 54px; /* aire superior e inferior */
}

/* TAG SUPERIOR (línea + texto amarillo) */
.section-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.section-tag-line {
    width: 68px;
    height: 3px;
    background: var(--amarillo);
}

.section-tag-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--amarillo);
    text-transform: uppercase;
    font-stretch: condensed;
    transform: scaleX(0.82);
    letter-spacing: 0.08em;
}

/* TAG para secciones claras */
.section-tag--light .section-tag-line {
    background: #d1a300; /* amarillo más oscuro para contraste */
}

.section-tag--light .section-tag-text {
    color: #d1a300;
}

/* TÍTULO GRANDE (H2) — estilo Lovable */
.section-title {
    font-size: 3.4rem;            /* más grande */
    font-weight: 900;             /* más pesado */
    line-height: 0.9;             /* más compacto */
    font-stretch: condensed;      /* más alto que ancho */
    transform: scaleX(0.82);      /* truco Lovable */
    color: #1a1a1a;               /* más oscuro */
    letter-spacing: 0.04em;       /* más aire entre letras */
    margin-bottom: 18px;
}

/* SUBTÍTULO DESCRIPTIVO — más grande y más contrastado */
.section-subtitle {
    font-size: 1.32rem;           /* más grande */
    line-height: 1.48;
    color: rgba(0, 0, 0, 0.78);   /* gris oscuro con opacidad Lovable */
    max-width: 780px;
    font-weight: 400;
}

/* Título grande en secciones oscuras */
.section-title--dark {
    color: #ffffff; /* blanco puro */
}

/* Subtítulo en secciones oscuras */
.section-subtitle--dark {
    color: rgba(255, 255, 255, 0.85); /* gris claro */
}

.section--light {
    background: var(--gris-claro);
    color: #222;
}

.section--dark {
    background: var(--gris-medio);
}

.section__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px; /* opcional, para que no pegue a los bordes */
}

/* SPLIT LAYOUT */
.section__inner--split {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

/* COLUMNAS */
.sobre-col--texto {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sobre-col--imagen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

/* CONTENEDOR DE IMAGEN */
.sobre-nosotros-img-wrap {
    width: 100%;
    max-width: 480px;
    height: 620px;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* IMAGEN */
.sobre-nosotros-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section__inner--form,
.section__inner--contact {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: flex-start;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.section__subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.85);
}

.section--light .section__subtitle {
    color: #555;
}

/* GRID */
.grid {
    display: grid;
    gap: 20px;
}

.grid--ventajas {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--equipos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* CARDS */
/* TARJETA RECTANGULAR */
.card--equipo {
    display: grid;
    grid-template-columns: minmax(150px, 0.4fr) 1fr; /* 40% imagen, 60% texto */
    align-items: stretch;               /* ambas columnas misma altura */
    background: #fff;
    border-radius: 18px;
    padding: 17px;
    gap: 32px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border .2s ease;
    cursor: pointer;
    border: 2px solid rgb(234, 234, 234); /* borde gris tenue */
    border-radius: 14px;                        /* igual que el logo */
}

/* HOVER — borde exterior amarillo */
.card--equipo:hover {
    border-color: #f2c200; /* se ilumina en amarillo */
    box-shadow: 0 0 22px rgba(242, 194, 0, 0.45); /* glow amarillo */
    transition: border-color .35s ease, box-shadow .35s ease;
}

.card--equipo:hover .card__img img {
    transform: scale(1.15); /* agrandamiento suave */
}

/* TEXTO SIEMPRE ENCIMA */
.card__info {
    position: relative;
    z-index: 3;;
}

/* CONTENEDOR DE LA IMAGEN — controla la altura */
.card__img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;          /* ocupa toda la altura de su columna */
    border-right: 1px solid rgb(234, 234, 234); /* línea tenue gris */
    padding-right: 17px; /* separa la línea del texto */
}

.card__img img {
    width: 100%;
    height: 100%;          /* se ajusta a la altura disponible */
    object-fit: contain;   /* no se deforma */
    transition: transform .95s ease;
}

/* TÍTULO VISIBLE Y CON ÍCONO */
.card__title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222; /* más oscuro para que se vea */
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 0px;
    margin-left: -28px;
    position: relative;
    z-index: 1;
}

.card__link-otros {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.95rem;
    color: #3b2466; /* morado corporativo */
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: color .25s ease, transform .25s ease;
    position: relative;
    z-index: 3;
}

.card__link-otros:hover {
    color: var(--amarillo);
    transform: translateY(-1px);
}

/* PÁRRAFO EN GRIS MÁS CLARO */
.card__desc {
    font-size: 1rem;
    margin-bottom: 14px;
    color: #666; /* gris suave */
    line-height: 1.45;
}

/* VIÑETAS ATRACTIVAS CON SVG */
.card__list {
    margin-bottom: 18px;
    padding-left: 0;
    list-style: none;
}

.card__list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.card__list li::before {
    content: "✔"; /* puedes cambiar por un SVG si quieres */
    color: #f2c200;
    font-weight: 700;
    font-size: 1rem;
}

/* CTA */
.card__cta {
    background: #f2c200;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
    position: relative;
    z-index: 1;
}

.card__cta:hover {
    background: #d9ac00;
}

/* MODAL DE OTROS EQUIPOS */
.otros-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: none;           /* oculto al inicio */
    z-index: 9999;
    overflow: auto;          /* si el modal completo se pasa de alto, que scrollee el overlay */
}

.otros-modal__content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;

    display: flex;
    flex-direction: column;
    overflow: hidden;        /* el scroll real va en .otros-modal__scroll */
    margin: 10px auto 0;
}

/* HEADER — panel superior fijo */
.otros-modal__header {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    background: #fff;
    padding: 10px 16px;
    border-bottom: 1px solid #ddd;
    box-shadow: none;
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Alineación superior de la tacha en vista default */
.otros-modal__header .otros-modal__close {
    align-self: flex-start;
    margin-top: -7px;
    margin-left: 3px;
}

/* Ajustamos la X */
.otros-modal__close {
    position: static;
    font-size: 1.6rem;
    cursor: pointer;
    color: #444;
}

.otros-modal__close:hover {
    color: var(--amarillo);
}

.otros-modal__title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: #222;
}

.otros-modal__limpiar {
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 12px;
    text-decoration: underline;
}

/* ÁREA QUE HACE SCROLL */
.otros-modal__scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 28px;
}

/* GRID DE EQUIPOS */
.otros-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 900px;
    margin: 0 auto;
    gap: 18px;
}

.otros-item {
    text-align: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    background: #fafafa;
}

.otros-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.otros-item.selected {
    border: 2px solid var(--amarillo);
    box-shadow: 0 0 18px rgba(244,196,0,0.35);
}

.otros-item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 8px;
}

.otros-item span {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.3px;
}

/* FOOTER — panel inferior fijo */
.otros-modal__footer {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px 16px;
    text-align: center;
    z-index: 50;
    border-top: 1px solid #eee;
}

/* Ocultar footer cuando no hay selección */
.otros-modal__footer.hidden {
    display: none !important;
}

#otros-cotizar {
    width: 100%;
    padding: 14px 22px;
    font-size: 1rem;
    border-radius: 10px;
}

.otros-contador {
    text-align: center;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 8px;
}

/* GRID ESPECIAL PARA SERVICIOS */
.servicios-grid-top {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(4, 1fr);
}

.servicios-grid-bottom {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, 1fr); 
    margin-top: 48px; /* separación real entre grids */
}

/* TARJETAS DE SERVICIOS */
.servicio-card {
    background: #1f1f1f;
    padding: 24px 26px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background-color 0.35s ease;
}

/* HOVER */
.servicio-card:hover {
    transform: translateY(-3px);
    background-color:rgb(178, 132, 0);
}

/* TÍTULO AMARILLO */
.servicio-title {
    color: var(--amarillo);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    font-stretch: condensed;
    transform: scaleX(0.88);
}

.servicio-card:hover .servicio-title,
.servicio-card:hover .servicio-desc,
.servicio-card:hover .servicio-list li{
    color: #1a1a1a;
}

/* DESCRIPCIÓN */
.servicio-desc {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.48;
}

/* LISTAS */
.servicio-list {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.servicio-list li {
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* TARJETAS ANCHAS (las dos grandes de abajo) */
.servicio-card--wide {
    grid-column: span 1;
}

.servicio-icon-wrap {
    margin-bottom: 14px;
}

.servicio-icon-box {
    width: 54px;
    height: 54px;
    background: var(--amarillo);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.servicio-icon {
    width: 38px;
    height: 38px;
    stroke: #1a1a1a;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.servicio-card:hover .servicio-icon{
    stroke: var(--amarillo);
}

.servicio-card:hover .servicio-icon-box {
    background: #1a1a1a;
}

.servicios-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-cotizar-servicio {
    background: var(--amarillo);
    color: #1a1a1a;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

.btn-cotizar-servicio:hover {
    background: #d9ae00b4;
}

/* VIÑETAS VENTAJAS */
.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en pantallas grandes */
    gap: 28px;
}

.ventaja-card {
    background: #1f1f1f;
    padding: 24px 26px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ventaja-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.45);
    background-color:rgb(178, 132, 0);
}

.ventaja-title {
    color: var(--amarillo);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    font-stretch: condensed;
    transform: scaleX(0.88);
}
.ventaja-card:hover .ventaja-title,
.ventaja-card:hover .ventaja-desc {
    color: #1a1a1a;
}

.ventaja-desc {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.48;
}

.ventaja-icon-box {
    width: 54px;
    height: 54px;
    background: var(--amarillo);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.ventaja-icon {
    width: 32px;
    height: 32px;
    stroke: #1a1a1a;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.ventaja-card:hover .ventaja-icon {
    stroke: var(--amarillo);
}

.ventaja-card:hover .ventaja-icon-box {
    background: #1a1a1a;
}

/* VIÑETAS SOBRE NOSOTROS */
.list--nosotros li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
}

.list--nosotros li::before {
    content: "✔";
    color: var(--amarillo);
    font-weight: 700;
    font-size: 1rem;
}

/* BLOQUE DE EXPERIENCIA SUPERPUESTO (fuera del contenedor) */
.nosotros-experiencia {
    position: relative;
    margin-top: -40px; /* mitad dentro / mitad fuera */
    background: #1f1f1f;
    padding: 12px 18px; /* compacto */
    border-radius: 12px;
    border: 2px solid var(--amarillo);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);

    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 20+ alineado a la izquierda */
    gap: 2px;


    opacity: 0;
    transform: translateY(18px); /* empieza abajo */
}

/* TIPOGRAFÍA COMPACTA Y SIN BOLD */
.nosotros-experiencia-num {
    font-size: 2rem;
    font-weight: 900; /* este sí queda bold */
    color: var(--amarillo);
    line-height: 1;
}

.nosotros-experiencia-text {
    font-size: 0.9rem;
    font-weight: 400; /* sin bold */
    color: #fff;
    line-height: 1.2;
}

.nosotros-experiencia.animate {
    animation: experienciaFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.25s;
}

.section__image--nosotros {
    max-width: 520px;
    margin: 0 auto;
    margin-top: 24px;
}

/* IMAGEN RECORTADA */
.section__image--nosotros img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

.section--dark .card {
    background: #1f1f1f;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.section--dark .card h3 {
    color: var(--amarillo);
}

.section--dark .card p {
    color: rgba(255, 255, 255, 0.8);
}

/* SOBRE NOSOTROS */
.section__text p {
    margin-bottom: 12px;
}

.section__image img {
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    object-fit: cover;
}

/* LISTAS */
.list {
    list-style: none;
    margin-top: 12px;
}

.list li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.list--contact li {
    margin-bottom: 8px;
}

/* FORMULARIO */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Variantes */
.alert--success {
    background-color: #d4f7d4;
    border-left: 5px solid #2ecc71;
    color: #1e7e46;
}

.alert--error {
    background-color: #ffe0e0;
    border-left: 5px solid #e74c3c;
    color: #a83232;
}

.alert--horario {
    background-color: #d8e8ff;
    border-left: 5px solid #3b7cff;
    color: #1a3d8f;
}

.alert--info {
    background-color: #1e88e5; /* azul fuerte */
    color: white;
    border-left: 5px solid #1565c0;
}

.alert--warning {
    background-color: #ffeb3b; /* amarillo fuerte */
    color: #4a4300; /* texto oscuro */
    border-left: 5px solid #c7a600;
}


/* Tachita universal */
.alert-close {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    color: inherit;
    opacity: 0.8;
    background: transparent;
    border: none;
}

.alert-close:hover {
    opacity: 1;
}

/* Estado inicial: oculto y desplazado */
.alert--animated {
    opacity: 0;
    transform: translateY(16px);
}

.alert--animated.show {
    animation: alertaFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.20s; /* delay perceptible */
}

.alert-info-servicio {
    transition: background-color .4s ease, opacity .4s ease;
}

.form {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 22px 24px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.form__group {
    margin-bottom: 14px;
}

.form__group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #444;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__group input:focus,
.form__group textarea:focus {
    border-color: var(--amarillo);
    box-shadow: 0 0 0 2px rgba(244, 196, 0, 0.25);
}

/* FLECHA PERSONALIZADA */
.form__group select {
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 9L13 1' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

/* HOVER */
.form__group select:hover {
    border-color: #bdbdbd;
}

/* FOCUS */
.form__group select:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.25);
    outline: none;
}

/* ERROR */
.form__group select.error {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.25);
}

.form__error {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

/* SELECT MODERNO LOVABLE */
.form__input select,
.form__input,
select.form__input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    color: #333;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form__input.error {
    border: 2px solid #ff4d4d !important;
    background-color: #fff5f5;
}

/* Fila de 2 columnas */
.form__row-2col {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 18px;
}

/* Columna normal */
.form__col {
    display: flex;
    flex-direction: column;
}

/* Botón alineado abajo */
.form__col--submit {
    display: flex;
    align-items: flex-end;
}

/* Botón más compacto para esta fila */
.btn--submit-inline {
    padding: 14px 22px;
    height: 48px;
}

/* Fila de 2 columnas con proporción 35% / 65% */
.form__row-2col-uneven {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 18px;
    align-items: end;
}

/* Columna pequeña (teléfono) */
.form__col--small {
    display: flex;
    flex-direction: column;
}

/* Columna grande (empresa) */
.form__col--large {
    display: flex;
    flex-direction: column;
}

/* CONTACTO */
.contact-banner {
    background: linear-gradient(135deg, var(--morado), var(--morado-oscuro));
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.contact-banner p {
    margin-bottom: 12px;
}

/* CONTACTO — BLOQUES CON ÍCONOS */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 20px;
}

.contact-item {
    background: #1f1f1f;
    padding: 24px 26px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background-color 0.35s ease, transform 0.2s ease;
}

.contact-item:hover {
    background-color: rgb(178, 132, 0);
    transform: translateY(-3px);
}

.contact-icon-box {
    width: 54px;
    height: 54px;
    background: var(--amarillo);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.contact-icon {
    width: 32px;
    height: 32px;
    stroke: #1a1a1a;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.contact-item:hover .contact-icon-box {
    background: #1a1a1a;
}

.contact-item:hover .contact-icon {
    stroke: var(--amarillo);
}

.contact-label {
    color: var(--amarillo);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    font-stretch: condensed;
    transform: scaleX(0.88);
}

.contact-item:hover .contact-label,
.contact-item:hover .contact-value {
    color: #1a1a1a;
}

.contact-value {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.48;
}

/* CONTACTO — LÍNEAS CON ÍCONOS */
.contact-lines {
    display: grid;
    gap: 28px;
    margin-top: 20px;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-line-icon {
    width: 54px;
    height: 54px;
    background: rgba(244, 196, 0, 0.18); /* amarillo tenue */
    border: 2px solid var(--amarillo);   /* contorno amarillo fuerte */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-line-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--amarillo);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.contact-line-text {
    display: flex;
    flex-direction: column;
}

.contact-line-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #bbb;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-line-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

/* ========================= */
/* CARRUSEL PREMIUM LOVABLE */
/* ========================= */

/* CONTENEDOR */
.testimonios-carousel {
    overflow: hidden;
    width: 100%;
    margin-top: 40px;
    position: relative;
}

/* TRACK */
.testimonios-track {
    display: flex;
    gap: 34px; /* separación premium */
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* PAUSA AL HOVER */
.testimonios-carousel:hover .testimonios-track {
    animation-play-state: paused;
}

/* TARJETAS — 2 por fila */
.testimonio-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px;
    border: 1px solid rgba(0,0,0,0.06);

    /* Sombra Lovable fina */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);

    width: calc((100% - 34px) / 2);
    flex-shrink: 0;
}

/* Ícono de comillas */
.quote-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--amarillo);
    stroke-width: 2;
    fill: none;
    margin-bottom: 12px;
}

/* Texto */
.testimonio-text {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 12px;
    line-height: 1.48;
}

/* Estrellas pequeñas */
.testimonio-stars {
    font-size: 0.85rem;
    color: var(--amarillo);
    margin-bottom: 10px;
}

.testimonio-author {
    font-size: 1rem;
    font-weight: 800;
    color: #222;
}

.testimonio-role {
    font-size: 0.9rem;
    color: #666;
}

/* ========================= */
/* MENSAJE DEL DIRECTOR */
/* ========================= */

.director-wrapper {
    max-width: 896px;
    margin: 60px auto;
}

.director-stripe {
    width: 100%;
    height: 22px;
    background-image: repeating-linear-gradient(
        -45deg,
        #f4c400 0,
        #f4c400 12px,
        #000 12px,
        #000 24px
    );
    border-radius: 6px 6px 0 0;
}

.director-box {
    background: #ffffff;
    border: 3px solid var(--amarillo);
    border-radius: 0 0 14px 14px;
    padding: 32px 36px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.director-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #000;
    letter-spacing: 0.5px;
    font-stretch: condensed;
    transform: scaleX(0.88);
    margin-bottom: 18px;
}

.director-quote-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--amarillo);
    stroke-width: 2;
    fill: none;
    margin-bottom: 18px;
}

.director-text {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.55;
    margin-bottom: 22px;
}

.director-author {
    font-size: 1.05rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 4px;
}

.director-role {
    font-size: 0.95rem;
    color: #666;
}

/* FOOTER */
.footer {
    background: #0f0f0f;
    padding-top: 0;
    color: #fff;
    margin-top: 80px;
}

/* FRANJA DIAGONAL AMARILLA */
.footer-stripe {
    width: 100%;
    height: 22px;
    background-image: repeating-linear-gradient(
        -45deg,
        #f4c400 0,
        #f4c400 12px,
        #000 12px,
        #000 24px
    );
}

/* CONTENIDO PRINCIPAL */
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 32px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
}

/* LOGO */
.footer-logo {
    width: 160px;
    margin-bottom: 18px;
}

/* FOOTER LOGO — REPLICA DEL HEADER */
.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Imagen del logo con borde gris y esquinas redondeadas */
.footer-logo-img {
    height: 110px;
    border: 2px solid rgba(234, 234, 234, 0.9);
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    background: none;
}

/* Texto del logo */
.footer-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Línea superior: MONTACARGAS */
.footer-line1 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--amarillo);
    font-stretch: condensed;
    transform: scaleX(0.78);
    transform-origin: left center;
}

/* Símbolo ® */
.footer-r {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--amarillo);
    margin-left: 2px;
}

/* Línea inferior: DE JUÁREZ */
.footer-line2 {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: var(--blanco);
    margin-top: -2px;
    font-stretch: condensed;
    transform: scaleX(0.78);
    transform-origin: left center;
}

/* DESCRIPCIÓN */
.footer-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.48;
    margin-top: 10px;
}

/* TITULOS */
.footer-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--amarillo);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    font-stretch: condensed;
    transform: scaleX(0.88);
}

/* LISTAS */
.footer-list {
    list-style: none;
    padding-left: 0;
}

.footer-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
}

/* ÍCONOS */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-icon {
    width: 22px;
    height: 22px;
    stroke: var(--amarillo);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* COPYRIGHT */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 32px;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

.footer-note {
    font-style: italic;
    opacity: 0.8;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    z-index: 999;
    animation: pulse 4s infinite;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

/* BOTÓN TOP */
.btn-top {
    position: fixed;
    bottom: 96px;   /* ← lo subimos para que no choque con WhatsApp */
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--amarillo);
    color: #000;
    font-size: 1.4rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;   /* debajo del header, pero encima del contenido */
}

.btn-top.show {
    opacity: 1;         /* visible cuando se activa */
    pointer-events: auto;
}

/* EFECTO DE ILUMINACIÓN AVANZADO POR TIPO DE ALERTA */
.form__group input.input-flash--info,
.form__group textarea.input-flash--info,
.form__group select.input-flash--info {
    animation: flashInfo 1.2s ease-out;
}

.form__group input.input-flash--warning,
.form__group textarea.input-flash--warning,
.form__group select.input-flash--warning {
    animation: flashWarning 1.2s ease-out;
}

.form__group input.input-flash--success,
.form__group textarea.input-flash--success,
.form__group select.input-flash--success {
    animation: flashSuccess 1.2s ease-out;
}

.form__group input.input-flash--error,
.form__group textarea.input-flash--error,
.form__group select.input-flash--error {
    animation: flashError 1.2s ease-out;
}

@keyframes experienciaFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes alertaFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Azul tenue (info / prerellenado) */
@keyframes flashInfo {
    0%   { background-color: rgba(30, 136, 229, 0.25); }
    60%  { background-color: rgba(30, 136, 229, 0.12); }
    100% { background-color: #ffffff; }
}

/* Amarillo tenue (warning / horario) */
@keyframes flashWarning {
    0%   { background-color: rgba(255, 235, 59, 0.35); }
    60%  { background-color: rgba(255, 235, 59, 0.18); }
    100% { background-color: #ffffff; }
}

/* Verde tenue (success) */
@keyframes flashSuccess {
    0%   { background-color: rgba(46, 204, 113, 0.30); }
    60%  { background-color: rgba(46, 204, 113, 0.16); }
    100% { background-color: #ffffff; }
}

/* Rojo tenue (error) */
@keyframes flashError {
    0%   { background-color: rgba(231, 76, 60, 0.30); }
    60%  { background-color: rgba(231, 76, 60, 0.16); }
    100% { background-color: #ffffff; }
}

@keyframes pulse {
    0%   { transform: scale(1); }
    10%  { transform: scale(1.15); }  /* latido más grande */
    20%  { transform: scale(1); }
    100% { transform: scale(1); }     /* pausa larga sin latir */
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.3s ease;
}

/* ====== FORMULARIO — ANCHO FIJO EN PANTALLAS GRANDES ====== */
@media (min-width: 1100px) {
    .form--contact {
        max-width: 944px;   /* igual que el mensaje del director */
        margin: 0 auto;      /* centrado */
    }
}

/* RESPONSIVE */
@media (max-width: 1400px) {
    .hero__title-white {
        font-size: 3.6rem;
    }

    .hero__title-yellow {
        font-size: 4.2rem;
    }

    .hero__subtitle {
        font-size: 1.15rem; /* leve ajuste para balance */
    }

    .hero__content {
        margin-top: 34vh; /* baja ligeramente el contenido */
    }

    .ventajas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .servicios-grid-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .top-bar__nav {
        margin-right: 28px; /* un poco menos para pantallas medianas */
    }

    .top-bar__logo {
        height: 96px; /* más compacto, visualmente equilibrado */
    }

    .top-bar__logo img {
        height: 96px;        /* igual que el contenedor */
        position: static;    /* elimina el sobresalido */
        border-radius: 10px; /* mantiene estética */
        padding: 0;
        box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    }

    .top-bar__brand {
        margin-left: 20px; /* ajusta el texto a la nueva escala */
    }
}


@media (max-width: 944px) {
    /* TÍTULO LOVABLE */
    .hero__title-white {
        font-size: 2.8rem;   /* antes 4.2rem */
        line-height: 0.95;
    }

    .hero__title-yellow {
        font-size: 3.3rem;   /* antes 4.8rem */
        line-height: 0.95;
    }

    /* TAG */
    .hero__tag-line {
        width: 48px;         /* antes 68px */
        height: 3px;
    }

    .hero__tag-text {
        font-size: 0.85rem;  /* antes 1rem */
        letter-spacing: 0.06em;
        transform: scaleX(0.82);
    }

    /* SUBTÍTULO */
    .hero__subtitle {
        font-size: 1rem;     /* antes 1.25rem */
        line-height: 1.42;
        max-width: 520px;    /* más compacto */
    }

    /* CONTENIDO GENERAL */
    .hero__content {
        margin-top: 30vh;    /* antes 37vh */
        padding: 0 18px;     /* más compacto */
    }

    /* BOTONES */
    .hero__actions {
        gap: 14px;           /* antes 18px */
        flex-wrap: wrap;
    }

    .btn--hero-primary,
    .btn--hero-secondary {
        padding: 12px 24px;  /* más compacto */
        font-size: 0.9rem;
    }

    .section__inner--split,
    .section__inner--form,
    .section__inner--contact {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid--equipos {
        grid-template-columns: repeat(1, 1fr);
    }

    .card--equipo::before {
        width: 100%;
        height: 180px;
        opacity: 0.35;
        z-index: 0;
    }
    
    /* HOVER — borde amarillo */
    .card--equipo:hover {
        border-color: #f2c200;
        box-shadow: 0 0 22px rgba(242, 194, 0, 0.45);
        transition: border-color .35s ease, box-shadow .35s ease;
    }
    .card__img img {
        margin-bottom: 18px;
        transition: transform .45s ease; /* animación más lenta */
    }

    .card__title {
        justify-content: flex-start;
    }

    .card__list li {
        justify-content: flex-start;
    }

    .top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .top-bar__nav {
        display: flex;
        gap: 28px;
        flex: 1;
        justify-content: center; /* centra el menú */
        margin-right: 32px; /* espacio elegante y consistente */
    }

    .top-bar__phone {
        align-items: flex-start;
    }

    .servicios-grid-bottom {
        grid-template-columns: 1fr;
    }

    .sobre-col--imagen {
        align-items: flex-start;
    }

    .sobre-nosotros-img-wrap {
        max-width: 100%;
        height: 480px;
    }

    .nosotros-experiencia {
        margin-top: -32px;
        padding: 10px 16px;
    }

    .nosotros-experiencia-num {
        font-size: 1.8rem;
    }

    .nosotros-experiencia-text {
        font-size: 0.85rem;
    }

    .testimonio-card {
        width: 100%; /* EXACTO: 1 tarjeta */
    }
}

/* ====== MENÚ MÓVIL DESDE 875px ====== */
@media (max-width: 875px) {

        #equipos,
    #servicios,
    #sobre-nosotros,
    #contacto,
    #cotizacion {
    scroll-margin-top: 113px; /* header + logo que sobresale */
    }

    /* Ocultar menú desktop */
    .top-bar__nav {
        display: none;
    }

    .top-bar {
        padding: 8px 16px; /* menos padding lateral en móviles */
    }

    .top-bar__logo img {
        height: 90px;      /* un poco más compacto */
        left: 0;            /* pegado al borde, sin empujar más a la derecha */
    }

    .top-bar__brand {
        margin-left: 10px; /* ajusta el texto a la derecha del logo sin exagerar */
    }

    .top-bar__hamburger {
        grid-column: 3;
        justify-self: end;
        margin-left: 0; /* ya no se empuja */
        display: flex;
    }

    /* Líneas del hamburguesa */
    .hamb-line {
        width: 24px;
        height: 3px;
        background: #ffffff;
        margin: 0;
        display: block;
        transition: transform .25s ease, opacity .25s ease;
    }

    /* Animación hamburguesa → X */
    .top-bar__hamburger.is-active .hamb-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .top-bar__hamburger.is-active .hamb-line:nth-child(2) {
        opacity: 0;
    }
    .top-bar__hamburger.is-active .hamb-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-overlay {
    position: fixed;
    top: 117px; /* debajo del header */
    left: 0;
    width: 15%;
    height: calc(100vh - 117px);

    /* MISMO ESTILO DEL HEADER */
    background: rgba(9, 0, 25, 0.38);      /* igual que el header */
    backdrop-filter: blur(14px);           /* igual que el header */
    -webkit-backdrop-filter: blur(14px);   /* soporte Safari */

    /* SIN transición (aparece de golpe) */
    opacity: 0;
    pointer-events: none;

    z-index: 998;
}

.mobile-overlay.is-active {
    opacity: 1; /* aparece de golpe */
    pointer-events: auto;
}


    /* Drawer */
    .mobile-nav {
        position: fixed;
        top: 117px;
        right: 0;
        width: 85%;
        height: calc(100vh - 117px);
        background: #111;
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        border-left: 1px solid rgba(255,255,255,0.08);
        transform: translateX(100%);
        transition: transform .35s ease;
        z-index: 999;
    }

    .mobile-nav.is-open {
        transform: translateX(0);
    }

    /* Enlaces del menú */
    .mobile-nav a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        color: #ffffff;
        text-decoration: none;
        font-size: 1.05rem;
        font-weight: 600;
    }

    /* CTA del menú — OCULTO arriba de 675px */
    .mobile-nav__cta {
        display: none;
    }
}

@media (max-width: 700px) {
    .ventajas-grid {
        grid-template-columns: 1fr;
    }
    .servicios-grid-top {
        grid-template-columns: 1fr;
    }
}

/* ====== AJUSTES ESPECÍFICOS PARA 675px ====== */
@media (max-width: 675px) {

    /* Ocultar botón del header */
    .btn--header-primary {
        display: none;
    }

    /* Mostrar CTA dentro del menú */
    .mobile-nav__cta {
        display: block;
    }

    /* Asegurar hamburguesa a la derecha */
    .top-bar {
        justify-content: space-between !important;
    }

    .top-bar__hamburger {
        margin-right: 24px;
        background: transparent !important;
    }

    .footer-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-col--brand {
        grid-column: span 2; /* ocupa todo el ancho */
    }
}

@media (max-width: 640px) {
    .card--equipo {
        grid-template-columns: 1fr;
        text-align: flex-start;
        padding: 24px;
    }
    
    .card__img{
    border-right: 0px solid rgb(234, 234, 234); /* línea tenue gris */
    border-bottom: 1px solid rgb(234, 234, 234); /* línea tenue gris */
    }

    .card__title {

    margin-left: -20px;
    }

    .hero__title-white {
        font-size: 2.4rem;
        line-height: 1;
    }

    .hero__title-yellow {
        font-size: 2.8rem;
        line-height: 1;
    }

    /* Subtítulo ligeramente más compacto */
    .hero__subtitle {
        font-size: 1.05rem;
    }

    /* Ajuste del spacing vertical del contenido */
    .hero__content {
        margin-top: 30vh;
    }
}

@media (max-width: 600px) {

    .section {
        padding: 40px 18px;
    }

    .hero__content h1 {
        font-size: 1.9rem;
    }

    .hero__title-white {
        font-size: 2.0rem;
        line-height: 1.2;
    }

    .hero__title-yellow {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    
    .form__row-2col-uneven {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 526px) {

    .otros-modal__header {
        display: grid;
        grid-template-columns: auto 1fr auto; /* X | espacio | Limpiar */
        grid-template-rows: auto auto;        /* fila 1 y fila 2 */
        align-items: center;
        row-gap: 6px;
        padding: 10px 0 6px;                  /* compacto */
    }

    /* Tacha arriba a la izquierda */
    .otros-modal__close {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    /* Limpiar selección arriba a la derecha */
    .otros-modal__limpiar {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    /* Título centrado en la fila 2 */
    .otros-modal__title {
        grid-column: 1 / 4;
        grid-row: 2;
        text-align: center;
        font-size: 1.45rem;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .hero__title-white {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .hero__title-yellow {
        font-size: 2.0rem;
        line-height: 1.2;
    }
    
    .form__row-2col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {

    #equipos,
    #servicios,
    #sobre-nosotros,
    #contacto,
    #cotizacion {
    scroll-margin-top: 85px; /* header + logo que sobresale */
    }

    .top-bar {
        transition: transform 0.25s ease;
        padding: 6px 18px; /* menos padding vertical y lateral */
    }

    .top-bar.hide {
        transform: translateY(-100%); /* se oculta hacia arriba */
    }

    .top-bar.show {
        transform: translateY(0); /* vuelve a aparecer */
    }

    .hero__title-white {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .hero__title-yellow {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    /* Contenedor del logo más bajo */
    .top-bar__logo {
        height: 72px; /* antes 96px */
    }

    /* Logo más compacto y menos sobresalido */
    .top-bar__logo img {
        height: 72px;      /* antes 140px */
        top: -2px;         /* menos sobresalido */
        bottom: -12px;     /* menos sobresalido */
    }

    /* Texto de marca ajustado */
    .top-bar__brand {
        margin-left: 20px; /* antes 150px */
    }

    /* Hamburguesa perfectamente alineado */
    .top-bar__hamburger {
        padding: 10px;
        gap: 3px;
    }
}

@media (max-width: 350px) {
    .top-bar__logo img {
        height: 64px;      /* un poco más compacto */
        left: 0;            /* pegado al borde, sin empujar más a la derecha */
    }

    .brand-line1 {
        font-size: 0.75rem;
    }

    .brand-line2 {
        font-size: 1.05rem; /* más grande que la línea superior */
    }

    /* Quitar márgenes laterales globales */
    .section,
    .section__inner,
    .section__inner--split,
    .section__inner--contact,
    .section__inner--form {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Ajustar el padding del header para que no empuje */
    .top-bar {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Ajustar el footer */
    .footer-inner {
        padding-left: 10px !important;
        padding-right: 10px !important;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-col {
        text-align: left;
    }

    .hero__title-white {
        font-size: 1.0rem;
        line-height: 1.2;
    }

    .hero__title-yellow {
        font-size: 1.4rem;
        line-height: 1.2;
    }
}

@media (max-width: 300px) {

    .hero__title-white {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .hero__title-yellow {
        font-size: 1.0rem;
        line-height: 1.2;
    }
}