/* Portada ATLAS · Atlas Romero S.L.U. */
:root { --atl-acento: #00A88E; --atl-negro: #0B0D0D; --atl-gris: #565C5B; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.atl-portada { margin: 0; background: #0B0D0D; }
.atl-raiz {
    position: relative;
    min-height: 100vh;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    color: #fff;
    background: transparent;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
a { color: inherit; }

/* ---- Fondo ---- */
.atl-fondo { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.atl-video, .atl-foto { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; }
.atl-foto { background-size: cover; background-position: center; animation: atlKen 24s ease-in-out infinite alternate; }
@keyframes atlKen { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
.atl-velo { position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8,10,10,.88) 0%, rgba(8,10,10,.55) 48%, rgba(8,10,10,.35) 100%); }
@media (prefers-reduced-motion: reduce) { .atl-foto { animation: none; } }

/* ---- Cabecera ---- */
.atl-cabecera { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap; padding: 40px 64px; }
.atl-marca { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.atl-isotipo { width: 64px; height: 48px; }
.atl-trazo-acento { stroke: var(--atl-acento); }
.atl-logo-img { max-height: 56px; max-width: 260px; }
.atl-separador { width: 1px; height: 48px; background: rgba(255,255,255,.35); }
.atl-nombre { display: flex; flex-direction: column; gap: 4px; }
.atl-nombre-1 { font-size: 20px; letter-spacing: .42em; }
.atl-nombre-2 { font-size: 13px; letter-spacing: .62em; }
.atl-menu { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.atl-menu a { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.atl-menu a:hover { border-bottom-color: var(--atl-acento); }

/* ---- Contenido ---- */
.atl-contenido { position: relative; z-index: 2; flex: 1; display: flex; justify-content: space-between;
    align-items: flex-end; gap: 48px; padding: 24px 64px 48px; flex-wrap: wrap-reverse; }
.atl-mensaje { max-width: 700px; display: flex; flex-direction: column; gap: 24px; animation: atlIn 1.2s ease-out both; }
.atl-raya { display: block; width: 56px; height: 3px; background: var(--atl-acento); }
.atl-mensaje h1 { margin: 0; font-size: clamp(40px, 6vw, 76px); line-height: 1.04; font-weight: 300; letter-spacing: -.02em; }
.atl-acento { color: var(--atl-acento); font-weight: 600; }
.atl-mensaje p { margin: 0; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 560px; }

/* ---- Botón «Área privada» del menú ---- */
.atl-menu-area { background: transparent; border: 0; border-bottom: 2px solid transparent; color: #fff;
    font: inherit; font-weight: 600; letter-spacing: .04em; padding: 10px 0; cursor: pointer; }
.atl-menu-area:hover, .atl-menu-area[aria-expanded="true"] { border-bottom-color: var(--atl-acento); }

/* ---- Tarjeta de acceso (desplegable bajo el menú) ---- */
.atl-tarjeta[hidden] { display: none !important; }
.atl-cerrar { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent;
    font-size: 26px; line-height: 1; color: var(--atl-gris); cursor: pointer; }
.atl-tarjeta { position: absolute; top: 112px; right: 64px; z-index: 5; width: 360px; max-width: 100%; padding: 32px; border-radius: 6px;
    background: #fff; color: var(--atl-negro); box-shadow: 0 30px 70px rgba(0,0,0,.45);
    display: flex; flex-direction: column; gap: 16px; animation: atlIn .35s ease-out both; }
.atl-etiqueta { font-size: 11px; font-weight: 600; letter-spacing: .24em; color: #00806C; }
.atl-tarjeta h2 { margin: -8px 0 0; font-size: 24px; font-weight: 600; }
.atl-form { display: flex; flex-direction: column; gap: 6px; }
.atl-form label { font-size: 12px; font-weight: 600; }
.atl-form input { height: 46px; padding: 0 14px; margin-bottom: 8px; border: 1px solid #C9CFCD; border-radius: 4px;
    font: inherit; font-size: 15px; color: var(--atl-negro); }
.atl-form input:focus { outline: none; border-color: var(--atl-acento); box-shadow: 0 0 0 3px rgba(0,168,142,.22); }
.atl-fila { display: flex; justify-content: space-between; align-items: baseline; }
.atl-fila a, .atl-pie-tarjeta a { color: #00806C; font-size: 12px; font-weight: 600; }
.atl-boton { height: 48px; margin-top: 6px; border: 0; border-radius: 4px; background: var(--atl-negro); color: #fff;
    font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .08em; cursor: pointer; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 10px; }
.atl-boton:hover { background: #1c2120; }
.atl-flecha { color: var(--atl-acento); font-size: 18px; }
.atl-pie-tarjeta { margin: 0; font-size: 12px; line-height: 1.5; color: var(--atl-gris); }

@keyframes atlIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- Pie ---- */
.atl-pie { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 0 64px 40px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.atl-lema { color: var(--atl-acento); }

/* ---- Móvil ---- */
@media (max-width: 760px) {
    .atl-cabecera { padding: 24px 20px; }
    .atl-contenido { padding: 8px 20px 32px; flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
    .atl-tarjeta { position: absolute; top: 120px; left: 20px; right: 20px; width: auto; }
    .atl-mensaje { order: 1; }
    .atl-pie { padding: 0 20px 28px; }
}

/* ---- Despedida «Hasta pronto» ---- */
.atl-velo-denso { background: rgba(8,10,10,.82); }
.atl-despedida { justify-content: center; }
.atl-despedida-centro { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 24px; padding: 40px 20px; text-align: center; animation: atlIn .9s ease-out both; }
.atl-isotipo-grande { width: 96px; height: 72px; }
.atl-despedida h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.1; font-weight: 300; }
.atl-despedida h1 strong { font-weight: 600; }
.atl-despedida p { margin: 0; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.78); }
.atl-espera { width: 220px; height: 2px; margin-top: 12px; background: rgba(255,255,255,.18); overflow: hidden; }
.atl-espera span { display: block; height: 100%; background: var(--atl-acento); transform-origin: left;
    animation: atlEspera var(--atl-espera, 3s) linear both; }
@keyframes atlEspera { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.atl-espera-texto { font-size: 12px; letter-spacing: .18em; color: rgba(255,255,255,.6); }
.atl-volver { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600;
    letter-spacing: .04em; color: #fff; text-decoration: none; border-bottom: 2px solid var(--atl-acento); }
.atl-despedida-lema { position: relative; z-index: 2; margin: 0 0 40px; text-align: center; font-size: 12px;
    letter-spacing: .18em; text-transform: uppercase; color: var(--atl-acento); }
