:root {
    --primary-blue: #0E56A6;
    --light-blue: #40A4E5;
    --text-dark: #1F3352;
    --bg-light: #F4F7FC;
    --silver-gradient: linear-gradient(135deg, #B5B5B5 0%, #E8E8E8 25%, #8A8A8A 50%, #E8E8E8 75%, #B5B5B5 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

/* ─────────────────────────────────────────────
   BASE LAYOUT — DESKTOP (≥1024px)
   Two-column card layout, full viewport height
───────────────────────────────────────────── */
body {
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;       /* FIX: Chrome flex-body collapse */
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.card-container {
    background: white;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.card {
    background-color: white;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border-top: 10px solid var(--primary-blue);
}

/* ─────────────────────────────────────────────
   LANGUAGE SELECTOR
───────────────────────────────────────────── */
.lang-selector {
    position: absolute;
    top: 2rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    background: white;
    padding: 0.3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(14, 86, 166, 0.15);
    z-index: 100;
    gap: 0.2rem;
}

.admin-link {
    position: absolute;
    top: 2rem;
    right: 6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(14, 86, 166, 0.2);
    z-index: 100;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem 0.5rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.lang-btn img {
    border-radius: 2px;
    width: 20px;
    height: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lang-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(14, 86, 166, 0.2);
}

.lang-btn:hover:not(.active) {
    background: #E2EFF9;
    color: var(--primary-blue);
}

/* ─────────────────────────────────────────────
   LEFT COLUMN
───────────────────────────────────────────── */
.left-col {
    width: 40%;
    padding: 4rem 3rem 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: white;
    border-top-right-radius: 150px;
    box-shadow: 15px 0 30px rgba(0,0,0,0.03);
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-buildings {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 70px;
    margin-bottom: -15px;
    position: relative;
    z-index: 1;
}

.stars {
    color: var(--light-blue);
    font-size: 1.8rem;
    margin-right: 20px;
    margin-bottom: 10px;
}

.building {
    background-color: var(--primary-blue);
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    margin: 0 3px;
    position: relative;
}

.b-left {
    width: 18px;
    height: 40px;
}

.b-center {
    width: 26px;
    height: 65px;
    background: linear-gradient(180deg, var(--light-blue) 0%, var(--primary-blue) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 6px 0;
}

.b-right {
    width: 20px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 6px 0;
}

.window {
    width: 8px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.swoosh-container {
    position: relative;
    width: 220px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swoosh-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: var(--silver-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
    position: relative;
    z-index: 2;
}

@keyframes shimmer {
    from { background-position: 0% center; }
    to   { background-position: 200% center; }
}

.logo-subtext {
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-subsubtext {
    color: var(--light-blue);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 5px;
}

.features-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 3rem 0;
    gap: 1rem;
}

.feature {
    text-align: center;
    flex: 1;
    position: relative;
}

.feature:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 2px;
    background-color: var(--primary-blue);
    opacity: 0.3;
}

.feature-icon {
    width: 65px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: translateY(-5px);
    background-color: #D0E5F5;
}

.feature-text {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.blue-box-wrapper {
    position: relative;
    margin-left: -3rem;
    margin-bottom: -1px;
    margin-top: auto;
    width: calc(100% + 5rem);
    display: flex;
}

.blue-box {
    background-color: #2385D1;
    padding: 3rem 2rem 3rem 3rem;
    color: white;
    display: flex;
    align-items: center;
    flex-grow: 1;
    clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
    position: relative;
    z-index: 2;
}

.blue-box-accent {
    position: absolute;
    top: 0;
    right: -15px;
    bottom: 0;
    width: 50px;
    background-color: #CBE6F9;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
    z-index: 1;
}

.bucket-img {
    width: 140px;
    height: auto;
    margin-right: 2rem;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.blue-box-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.stars-container {
    position: absolute;
    top: 0;
    right: -60px;
    height: 100%;
    width: 50px;
}

.star-big {
    position: absolute;
    top: 5px;
    left: 0;
    font-size: 2.2rem;
}

.star-small {
    position: absolute;
    bottom: 10px;
    right: -5px;
    font-size: 1.4rem;
}

.blue-box-text p {
    font-size: 1.2rem;
    margin-top: 0.8rem;
    font-weight: 600;
}

/* ─────────────────────────────────────────────
   RIGHT COLUMN
───────────────────────────────────────────── */
.right-col {
    width: 60%;
    padding: 0 4rem;
    position: relative;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
}

.right-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: right;
    opacity: 0.15;
    z-index: 1;
}

.right-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.main-title {
    color: var(--text-dark);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    border-bottom: 3px solid var(--primary-blue);
    padding-bottom: 1.5rem;
    display: inline-block;
    align-self: flex-start;
}

.main-title span {
    color: var(--light-blue);
}

.services-list {
    list-style: none;
    margin-bottom: 3rem;
}

.services-list li {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.services-list li:hover {
    transform: translateX(10px);
}

.service-icon {
    width: 90px;
    height: auto;
    margin-right: 1.5rem;
    transition: transform 0.3s ease;
}

.service-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1F3352;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.services-list li:hover .service-icon {
    transform: scale(1.1);
    background-color: var(--primary-blue);
}

.contact-box {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-top-left-radius: 30px;
    padding: 2rem 3rem;
    margin-right: -4rem;
    margin-bottom: -1px;
    margin-top: auto;
    box-shadow: -10px -10px 20px rgba(0,0,0,0.02);
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-icon {
    width: 45px;
    height: auto;
    margin-right: 0.8rem;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dark);
}

.contact-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.contact-divider {
    width: 1px;
    background-color: #ccc;
    margin: 0 1rem;
    height: 40px;
}

.qr-code {
    width: 80px;
    height: 80px;
    margin-left: 1.5rem;
    border-radius: 5px;
    image-rendering: -webkit-optimize-contrast;
    border: 1px solid #e2e8f0;
    padding: 2px;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.qr-code:hover {
    transform: scale(2) translateX(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 10;
    position: relative;
}

/* ─────────────────────────────────────────────
   BOTTOM BAR — Marquee animado
───────────────────────────────────────────── */
.bottom-bar {
    background-color: #CBE6F9;
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-blue);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.bottom-bar-track {
    display: inline-flex;
    animation: marquee 25s linear infinite;
}

.bottom-bar-item {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-width: 100vw;
}

.bottom-bar-item span {
    padding: 0 3rem;
}

.bottom-bar:hover .bottom-bar-track {
    animation-play-state: paused;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.3333%); }
}

/* ─────────────────────────────────────────────
   ICON HELPERS
───────────────────────────────────────────── */
img.custom-icon {
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    object-fit: contain;
}

.services-list img.custom-icon {
    mix-blend-mode: multiply;
}

.feature-img {
    height: 140px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}
.feature-img:hover { transform: scale(1.05); }

.blue-box-img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    margin: 0 auto;
}

.services-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.service-img {
    height: 140px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}
.service-img:hover { transform: scale(1.05); }

.contact-box-new {
    background-color: white;
    padding: 1.5rem 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 5rem;
    width: fit-content;
}

.contact-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.qr-img {
    height: 90px;
    width: 90px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 4px;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.qr-img:hover {
    transform: scale(2) translateY(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 10;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (768px – 1023px)
   Layout en una sola columna, fuentes reducidas, scroll activo
═══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {

    body {
        overflow-y: auto;
        height: auto;
    }

    .card-container {
        height: auto;
        min-height: 100vh;
    }

    .card {
        flex-direction: column;
        overflow: visible;
        height: auto;
    }

    /* Columna izquierda: ancho completo, sin bordes extremos */
    .left-col {
        width: 100%;
        padding: 3rem 2.5rem 2rem;
        border-top-right-radius: 0;
        box-shadow: none;
        border-bottom: 3px solid var(--bg-light);
    }

    /* Columna derecha: ancho completo */
    .right-col {
        width: 100%;
        padding: 2rem 2.5rem;
    }

    .right-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Logo más pequeño */
    .logo-text {
        font-size: 3.5rem;
    }

    .logo-subtext {
        font-size: 1.3rem;
    }

    .logo-subsubtext {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    /* Features en fila compacta */
    .features-row {
        margin: 2rem 0;
    }

    .feature-icon {
        width: 50px;
    }

    .feature-text {
        font-size: 0.9rem;
    }

    /* Blue box adaptado */
    .blue-box-wrapper {
        margin-left: -2.5rem;
        width: calc(100% + 5rem);
        margin-bottom: 0;
    }

    .blue-box {
        padding: 2rem 1.5rem 2rem 2.5rem;
        clip-path: none;
        border-radius: 0;
    }

    .blue-box-accent {
        display: none;
    }

    .bucket-img {
        width: 90px;
        margin-right: 1.5rem;
    }

    .blue-box-text h2 {
        font-size: 2rem;
    }

    .blue-box-text p {
        font-size: 1rem;
    }

    /* Título principal */
    .main-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }

    /* Servicios */
    .service-icon {
        width: 65px;
    }

    .service-text {
        font-size: 1.15rem;
    }

    /* Contacto: flex-wrap ya está activo en base, aquí ajustamos */
    .contact-box {
        margin-right: 0;
        border-top-left-radius: 0;
        border-radius: 15px;
        padding: 1.5rem 2rem;
        justify-content: center;
    }

    .contact-divider {
        display: none;
    }

    /* Selector de idioma: posición relativa en tablet para no tapar nada */
    .lang-selector {
        top: 1.5rem;
        right: 1rem;
    }

    /* Bottom bar */
    .bottom-bar {
        font-size: 1.1rem;
        padding: 1.2rem 0;
    }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (< 768px)
   Layout compacto, texto legible, contacto en stack vertical
═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    body {
        overflow-y: auto;
        height: auto;
    }

    .card {
        flex-direction: column;
        overflow: visible;
        height: auto;
    }

    .left-col {
        width: 100%;
        padding: 2rem 1.5rem 1.5rem;
        border-top-right-radius: 0;
        box-shadow: none;
        border-bottom: 3px solid var(--bg-light);
    }

    .right-col {
        width: 100%;
        padding: 1.5rem 1.5rem;
    }

    .right-content {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    /* Selector de idioma más compacto */
    .lang-selector {
        top: 1rem;
        right: 1rem;
        padding: 0.2rem;
    }

    .lang-btn {
        font-size: 0.65rem;
        padding: 0.3rem 0.4rem;
    }

    /* Logo */
    .swoosh-container {
        width: 160px;
        height: 75px;
    }

    .logo-text {
        font-size: 2.8rem;
    }

    .logo-subtext {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .logo-subsubtext {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .logo-buildings {
        height: 55px;
    }

    /* Features en fila de 3 columnas pequeñas */
    .features-row {
        margin: 1.5rem 0;
        gap: 0.5rem;
    }

    .feature-icon {
        width: 40px;
    }

    .feature-text {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    /* Blue box compacto */
    .blue-box-wrapper {
        margin-left: -1.5rem;
        width: calc(100% + 3rem);
        margin-bottom: 0;
    }

    .blue-box {
        padding: 1.5rem 1.5rem 1.5rem 1.5rem;
        clip-path: none;
        border-radius: 0;
        align-items: center;
    }

    .blue-box-accent {
        display: none;
    }

    .bucket-img {
        width: 70px;
        margin-right: 1rem;
    }

    .blue-box-text h2 {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .stars-container {
        display: none;
    }

    .blue-box-text p {
        font-size: 0.85rem;
        margin-top: 0.4rem;
    }

    /* Título principal */
    .main-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        display: block;
        align-self: auto;
        width: 100%;
    }

    /* Servicios */
    .services-list {
        margin-bottom: 1.5rem;
    }

    .services-list li {
        margin-bottom: 1.3rem;
    }

    .services-list li:hover {
        transform: none; /* Evitar desplazamiento en táctil */
    }

    .service-icon {
        width: 55px;
        margin-right: 1rem;
    }

    .service-text {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }

    /* Contacto en columna única */
    .contact-box {
        margin-right: 0;
        border-top-left-radius: 0;
        border-radius: 12px;
        padding: 1.2rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .contact-divider {
        display: none;
    }

    .contact-item {
        width: 100%;
    }

    .contact-icon {
        width: 35px;
        margin-right: 0.6rem;
    }

    .contact-label {
        font-size: 0.65rem;
    }

    .contact-val {
        font-size: 0.75rem;
    }

    .qr-code {
        width: 65px;
        height: 65px;
        margin-left: 1rem;
    }

    .qr-code:hover {
        transform: scale(1.5) translateX(-10px);
    }

    /* Bottom bar más compacto */
    .bottom-bar {
        font-size: 0.9rem;
        padding: 1rem 0;
    }

    .bottom-bar-item span {
        padding: 0 1.5rem;
    }
}
