/* ===================================================================================================================
📐 RESET Y CONTENEDOR MAESTRO (NO TOCAR)
=================================================================================================================== */

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

body { 
    background: var(--codelis-logoR-rgb); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    overflow: hidden;
    font-family: 'D-DIN Regular' !important;
}

.canvas {
    width: 1280px;
    height: 720px;
    background: transparent; 
    position: relative;
    overflow: hidden;
    display: flex;
}

.main {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ===================================================================================================================
🌎 MAPA
// ================================================================================================================ */

.view {
    position: absolute;
    inset: 0;
    z-index: 1;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: brightness(0.75) contrast(1.15) saturate(1.2);
}

/* etiqueta capa */
.map-layer-label {
    position: absolute;
    top: 20px;
    right: 20px;

    z-index: 5;

    padding: 6px 12px;
    border-radius: 6px;

    background: rgba(0,0,0,0.35);
    color: white;
    font-weight: bold;
    font-size: 12px;
}


/* ===================================================================================================================
📢 HEADER
=================================================================================================================== */

.header {
    position: absolute;
    top: 30px;
    left: 30px;
    height: 25px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #38154b, #2f012c);
    border-left: 6px solid var(--codelis-logoL-rgb);
    border-radius: 8px;
    color: #fff;
    overflow: hidden;
    z-index: 5;
}

/* -------------------------------------------------------------------------------------------------------------------
🔴 HEADER - IZQUIERDA / BLOQUE EN VIVO INTEGRADO
------------------------------------------------------------------------------------------------------------------- */

.header-izquierda {
    display: flex;
    align-items: center;
    gap: 6px;

    height: 100%;
    padding: 0 10px;

    background: rgba(255, 0, 0,0.50); /* leve separación sin ser botón */
    font-size: 12px;
    font-weight: bold;
}

/* puntito */
.header-izquierda i {
    font-size: 8px;
    color: var(--blanco-rgb);

    animation: livePulse 1.5s infinite;
}

/* animación sutil tipo broadcast */
@keyframes livePulse {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* -------------------------------------------------------------------------------------------------------------------
📣 HEADER - DERECHA / PROVINCA, LOCALIDAD, CIUDAD
------------------------------------------------------------------------------------------------------------------- */

.header-derecha {
    padding: 0 10px;
    display: flex;
    align-items: center;
}

/* ===================================================================================================================
📢 FOOTER
=================================================================================================================== */

.footer {
    position: absolute;
    bottom: 40px;
    left: 30px;
    width: 1220px;
    height: 60px;

    display: flex;
    align-items: center;

    background: linear-gradient(90deg, #38154b, #2f012c);
    border-left: 6px solid var(--codelis-logoL-rgb);
    border-radius: 12px;

    padding-left: 120px;
    padding-right: 15px;

    color: #fff;
    overflow: visible;
    z-index: 5;
}

/* -------------------------------------------------------------------------------------------------------------------
📍 ZONAS FOOTER
------------------------------------------------------------------------------------------------------------------- */

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
🧭 FOOTER LEFT 1 REGION
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- */
.footer-left-stack{
    position: absolute;
    bottom: 30px;
    left: -115px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    z-index: 20; /* 👈 encima del footer */
}

.footer-region,
.footer-ciudades-weather{
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: rgba(56, 21, 75, 0.45);
    backdrop-filter: blur(6px);

    border-left: 6px solid var(--codelis-logoL-rgb);

    z-index: 10; /* 👈 abajo del reloj */
}

.footer-region{
    width: 120px;
    border-top-left-radius: 8px;
    border-right: 2px solid var(--codelis-logoL-rgb);
}

/* texto región */
.region-text {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 4px;
}

/* texto región */
.provincia-text {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.1;
    color: var(--warning-rgb);
    margin-bottom: 4px;
}

.region-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
⛅ FOOTER LEFT 1 CIUDADES WEATHER
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- */

.footer-ciudades-weather{
    padding: 4px;
    width: 400px;
    border-top-right-radius: 8px;
    border-left: none;
}

/* texto ciudades */
.ciudad-text {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 4px;
}

/* texto región */
.city-list {
    font-size: 14px;
    font-weight: bold;
    color: var(--warning-rgb);
    margin-bottom: 4px;
}

.city-row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 17px;
    gap: 6px;
}

.city-name{
    font-weight: bold;
}

.city-temp{
    color: #ffd36b;
    font-weight: bold;
}

.city-desc{
    opacity: 0.8;
}

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
FOOTER LEFT 1 RELOJ & LOGO
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- */

.footer-left-1{
    position: relative;
    display: flex;
    align-items: center;
}
/* -------------------------------------------------------------------------------------------------------------------
🕒 RELOJ CIRCULAR - FOOTER
------------------------------------------------------------------------------------------------------------------- */

.clock {
    position: absolute;
    left: 5px;
    bottom: -75px;

    width: 90px;
    height: 90px;

    z-index: 50;
}

/* FONDO DEL CÍRCULO */
.clock::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;

    background: radial-gradient(circle, #38154b 55%, #2f012c 100%);
    box-shadow: 
        inset 0 0 0 3px var(--codelis-logoL),
        0 0 12px rgba(0,0,0,0.7);
}

/* SVG */
.clock svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    position: relative;
    z-index: 2;
}

/* ARO */
.ring-bg {
    fill: none;
    stroke: rgba(112, 56, 142,0.45);
    stroke-width: 4;
}
/* ARO SEGUNDERO */
.ring-progress {
    fill: none;
    stroke: var(--codelis-logoR-rgb);
    stroke-width: 4;
    stroke-linecap: round;

    stroke-dasharray: 251;
    stroke-dashoffset: 251;
}

/* -------------------------------------------------------------------------------------------------------------------
🧠 CONTENIDO INTERNO DEL RELOJ
------------------------------------------------------------------------------------------------------------------- */

.inner {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 3;

    transform-style: preserve-3d;
    perspective: 900px;
}

/* ambos ocupan el mismo lugar */
#contenido-reloj,
#contenido-logo {
    position: absolute;
    text-align: center;
    transition: opacity 0.5s ease;
}

/* estado inicial */
#contenido-reloj {
    opacity: 1;
}

#contenido-logo {
    opacity: 0;
}

/* TEXTO RELOJ */
#time {
    font-size: 22px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 2px;
    line-height: 1;
}

/* EL ":" */
.tick {
    margin-bottom: 4px;
    display: inline-block;
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* estado apagado */
.tick.off {
    opacity: 0.2;
}


#day {
    font-size: 14px;
    opacity: 0.8;
}

#clima {
    font-size: 20px;
    font-weight: bold;
}

#valor {
    margin-top: -2px;
    font-size: 18px;
}

/* LOGO */
.logo-container {
    width: 90px;
    height: 90px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contenido-reloj,
#contenido-logo {
    backface-visibility: hidden;
}

/* BLUR DURANTE FLIP */
.flip-blur {
    filter: blur(4px);
}

/* GLOW CUANDO ESTÁ EL LOGO */
.clock.glow::before {
    box-shadow: 
        inset 0 0 0 3px var(--codelis-logoL),
        0 0 18px rgba(143, 85, 155, 0.6),
        0 0 35px rgba(112, 56, 142, 0.25);
}

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
FOOTER LEFT 2 WHATSAPP & SOCIAL
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- */

.footer-left-2 {
    position: absolute;
    left: 115px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-right: 2px solid var(--codelis-logoL-rgb);
}

.footer-whatsapp {
    margin-bottom: 8px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    padding-right: 8px; /* Espaciado al border right */
}

/* texto fijo */
.social-label {
    white-space: nowrap;
}

.social-scroll {
    height: 18px;
    overflow: hidden;
    position: relative;
}

.social-scroll-inner {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.social-item {
    height: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}


/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
FOOTER RIGHT
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- */

.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
}


