/* ==========================================================================
   UBICACION - Premium Industrial Redesign 2026
   Full-width map + glass card, editorial transport, merged operativo panel
   ========================================================================== */

.page-ubicacion {
    --ubic-dark: #1a1a1a;
    --ubic-darker: #0f1419;
    --ubic-accent: #e8732e;
    --ubic-accent-dim: rgba(232, 115, 46, 0.15);
    --ubic-line: rgba(255, 255, 255, 0.08);
    --ubic-text: rgba(255, 255, 255, 0.75);
    --ubic-text-dim: rgba(255, 255, 255, 0.45);
    --ubic-glass-bg: rgba(15, 20, 25, 0.88);
    --ubic-glass-border: rgba(255, 255, 255, 0.08);
    --ubic-card-bg: rgba(255, 255, 255, 0.03);
    --ubic-card-border: rgba(255, 255, 255, 0.06);
    --ubic-red: #e53e3e;
    --ubic-section-py: clamp(5rem, 10vw, 8.75rem);
}

html,
body.page-ubicacion,
body.page-ubicacion main {
    padding: 0 !important;
    margin: 0 !important;
}

/* ==============================================
   HERO — Fondo negro, centrado, 70vh
   ============================================== */
.ubic-hero {
    height: 70vh;
    min-height: 400px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.ubic-hero__content {
    max-width: 700px;
    padding: 80px 40px 0;
}

.ubic-hero__title {
    font-family: var(--ds-font-heading);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    color: #fff;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.ubic-hero__subtitle {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    font-weight: 300;
}

/* ==============================================
   CONTAINER
   ============================================== */
.page-ubicacion .ubic-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.page-ubicacion .ubic-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.page-ubicacion .ubic-section-label svg {
    color: rgba(232, 115, 46, 0.5);
}

/* ==============================================
   SECCION 2: MAPA — Full-width inmersivo + Glass Card
   ============================================== */
.ubic-mapa {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.ubic-mapa__map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f1419;
}

.ubic-mapa__map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ubic-mapa:hover .ubic-mapa__map iframe {
    filter: grayscale(0%) contrast(1) brightness(1);
}

/* Glass floating card */
.ubic-mapa__card {
    position: absolute;
    right: clamp(40px, 6vw, 120px);
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    padding: 48px 40px;
    background: var(--ubic-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--ubic-glass-border);
    border-top: 3px solid var(--ubic-accent);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.ubic-mapa__eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ubic-accent);
    margin-bottom: 16px;
}

.ubic-mapa__title {
    font-family: var(--ds-font-heading);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 400;
    color: #fff;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ubic-mapa__copper-line {
    width: 40px;
    height: 2px;
    background: var(--ubic-accent);
    margin-bottom: 24px;
}

.ubic-mapa__address {
    font-size: 15px;
    line-height: 1.9;
    color: var(--ubic-text);
    margin-bottom: 32px;
    font-weight: 300;
}

.ubic-mapa__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ubic-mapa__buttons .ds-btn {
    text-align: center;
    justify-content: center;
}

/* ==============================================
   SECCION 3: TRANSPORTE — Columnas editoriales
   ============================================== */
.ubic-transporte {
    position: relative;
    background: var(--ubic-darker);
    padding: var(--ubic-section-py) 0;
    border-top: 1px solid var(--ubic-line);
    overflow: hidden;
}

/* Copper glow at top */
.ubic-transporte__glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(232, 115, 46, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.ubic-transporte__header {
    margin-bottom: 80px;
}

.ubic-transporte__header h2 {
    font-family: var(--ds-font-heading);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 300;
    color: #fff;
    margin: 0;
    letter-spacing: -0.03em;
}

.ubic-transporte__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.ubic-transporte__col {
    padding: 0 48px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.4s ease;
}

.ubic-transporte__col:first-child {
    padding-left: 0;
    border-left: none;
}

.ubic-transporte__col:last-child {
    padding-right: 0;
}

.ubic-transporte__accent {
    width: 24px;
    height: 1px;
    background: var(--ubic-accent);
    margin-bottom: 32px;
    transition: width 0.4s ease;
}

.ubic-transporte__col:hover .ubic-transporte__accent {
    width: 48px;
}

.ubic-transporte__dato {
    display: block;
    font-family: var(--ds-font-heading);
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 300;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.15;
}

.ubic-transporte__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--ubic-accent);
}

.ubic-transporte__label svg {
    opacity: 0.6;
}

.ubic-transporte__label h4 {
    font-family: var(--ds-font-heading);
    font-size: 11px;
    font-weight: 600;
    color: var(--ubic-accent);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.ubic-transporte__desc {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    font-weight: 300;
    transition: color 0.4s ease;
}

.ubic-transporte__col:hover .ubic-transporte__desc {
    color: rgba(255, 255, 255, 0.6);
}

/* ==============================================
   SECCION 4: OPERATIVO — Horario + Contacto fusionados
   Premium minimal: sin cajas naranja, sin monospace grueso
   ============================================== */
.ubic-operativo {
    background: var(--ubic-dark);
    padding: var(--ubic-section-py) 0;
}

/* Fila 1: Texto + Tabla */
.ubic-operativo__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 48px;
}

.ubic-operativo__content h2 {
    font-family: var(--ds-font-heading);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 400;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.ubic-operativo__subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 20px;
    font-weight: 400;
}

.ubic-operativo__text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ubic-text);
    margin: 0;
}

.ubic-operativo__cta {
    margin-top: 28px;
    width: fit-content;
}

/* Horario table — minimal, sin iconos con fondo */
.ubic-operativo__schedule {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ubic-operativo__row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.ubic-operativo__row:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ubic-operativo__row:hover {
    padding-left: 12px;
}

.ubic-operativo__row--closed .ubic-operativo__row-time {
    color: rgba(229, 62, 62, 0.7);
}

.ubic-operativo__row-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.2);
}

.ubic-operativo__row-icon svg {
    width: 18px;
    height: 18px;
}

.ubic-operativo__row-info {
    flex: 1;
}

.ubic-operativo__row-info strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2px;
}

.ubic-operativo__row-info span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.ubic-operativo__row-time {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--ds-font-heading);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Fila 2: Tarjetas de contacto — sutiles */
.ubic-operativo__contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.ubic-operativo__contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    background: var(--ubic-card-bg);
    border: 1px solid var(--ubic-card-border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ubic-operativo__contact-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.ubic-operativo__contact-icon {
    width: 22px;
    padding-top: 3px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.25);
}

.ubic-operativo__contact-icon svg {
    width: 20px;
    height: 20px;
}

.ubic-operativo__contact-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ubic-operativo__contact-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
}

.ubic-operativo__contact-value {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    word-break: break-all;
    transition: color 0.3s ease;
}

.ubic-operativo__contact-card:hover .ubic-operativo__contact-value {
    color: #fff;
}

.ubic-operativo__contact-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 2px;
}

/* ==============================================
   SECCION 5: CTA
   ============================================== */
.ubic-cta {
    padding: 0;
    background: #222222;
    position: relative;
}

.ubic-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        #c45a1e 0%, #e8732e 20%, #ffcaaa 45%,
        #ff7a1a 55%, #e8732e 80%, #c45a1e 100%);
}

.ubic-cta__box {
    position: relative;
    padding: 100px 80px;
    text-align: center;
    background: #222222;
    overflow: hidden;
}

.ubic-cta__box::before {
    display: none;
}

.ubic-cta__title {
    font-family: var(--ds-font-heading);
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 20px;
    position: relative;
}

.ubic-cta__text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 auto 48px;
    max-width: 560px;
    position: relative;
}

.ubic-cta__actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    position: relative;
}

/* CTA primary button — copper gradient + shimmer */
.ubic-cta__actions .ds-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(165deg, #f0944a 0%, #e8732e 35%, #c45a1e 70%, #e8732e 100%);
    color: #fff;
    border: none;
    padding: 20px 48px 20px 56px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow:
        0 4px 16px rgba(232, 115, 46, 0.25),
        0 1px 0 rgba(255, 200, 150, 0.3) inset,
        0 -1px 0 rgba(0, 0, 0, 0.15) inset;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ubic-cta__actions .ds-btn .ds-btn__arrow {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.ubic-cta__actions .ds-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 60%,
        transparent 100%
    );
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ubic-cta__actions .ds-btn:hover {
    background: transparent;
    border: 1px solid;
    border-image: linear-gradient(90deg, #c45a1e, #e8732e, #ffcaaa, #ff7a1a, #e8732e) 1;
    box-shadow: 0 0 20px rgba(232, 115, 46, 0.15);
    transform: translateY(-2px);
}

.ubic-cta__actions .ds-btn:hover .ds-btn__arrow {
    transform: translateX(6px);
}

.ubic-cta__actions .ds-btn:hover::before {
    left: 140%;
}

.ubic-cta__actions .ds-btn--outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: none;
    box-shadow: none;
}

.ubic-cta__actions .ds-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    transform: translateY(-2px);
}

.ubic-cta__actions .ds-btn--outline::before {
    display: none;
}

/* ==============================================
   RESPONSIVE — Tablet (769-1024px)
   ============================================== */
@media (max-width: 1024px) {
    .page-ubicacion .ubic-container {
        padding: 0 40px;
    }

    /* Mapa: card baja debajo */
    .ubic-mapa {
        position: relative;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .ubic-mapa__map {
        position: relative;
        width: 100%;
        min-height: 400px;
    }

    .ubic-mapa__card {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: auto;
        max-width: 480px;
        margin: -60px auto 0;
        z-index: 2;
    }

    /* Transporte */
    .ubic-transporte__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ubic-transporte__col {
        padding: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 32px;
    }

    .ubic-transporte__col:first-child {
        border-top: none;
        padding-top: 0;
    }

    /* Operativo */
    .ubic-operativo__main {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ubic-operativo__contacts {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ==============================================
   RESPONSIVE — Mobile (<=768px)
   ============================================== */
@media (max-width: 768px) {
    .page-ubicacion .ubic-container {
        padding: 0 24px;
    }

    /* Mapa */
    .ubic-mapa__map {
        min-height: 300px;
    }

    .ubic-mapa__card {
        margin-top: -40px;
        padding: 36px 28px;
        margin-left: 24px;
        margin-right: 24px;
        max-width: none;
    }

    .ubic-mapa__title {
        font-size: 26px;
    }

    /* Transporte */
    .ubic-transporte {
        padding: 60px 0;
    }

    .ubic-transporte__header {
        margin-bottom: 48px;
    }

    .ubic-transporte__header h2 {
        font-size: 28px;
    }

    .ubic-transporte__dato {
        font-size: 26px;
    }

    /* Operativo */
    .ubic-operativo {
        padding: 60px 0;
    }

    .ubic-operativo__content h2 {
        font-size: 28px;
    }

    .ubic-operativo__row {
        padding: 20px;
        gap: 16px;
    }

    .ubic-operativo__row-time {
        font-size: 16px;
    }

    .ubic-operativo__contact-card {
        padding: 24px;
        gap: 16px;
    }

    /* CTA */
    .ubic-cta {
        padding: 0;
    }

    .ubic-cta__box {
        padding: 48px 24px;
    }

    .ubic-cta__actions {
        flex-direction: column;
        align-items: center;
    }
}
