/* =========================================================
   Cassandra Footer Premium - Estilos
   Colores:
   #EEAAE9 (rosa)  #8c6ac9 (violeta)  #000000 (negro)
   #8A71C2 (violeta alt)  Fondo principal #FFFCFF  Fondo alt #C9BFE2
   Tipografía: Roboto 18px - 22px
   ========================================================= */

:root{
    --cfp-pink: #EEAAE9;
    --cfp-violet: #8c6ac9;
    --cfp-violet-alt: #8A71C2;
    --cfp-black: #000000;
    --cfp-bg-main: #FFFCFF;
    --cfp-bg-alt: #C9BFE2;
    --cfp-font: 'Roboto', Arial, sans-serif;
}

.cfp-footer{
    position: relative;
    width: 100%;
    overflow: hidden;
    font-family: var(--cfp-font);
    background-color: var(--cfp-violet);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 64px 24px 24px;
    box-sizing: border-box;
    isolation: isolate;
}

.cfp-footer *{
    box-sizing: border-box;
}

/* Overlay para garantizar contraste sobre la imagen de fondo */
.cfp-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.78) 0%,
        rgba(140,106,201,0.85) 45%,
        rgba(138,113,194,0.88) 100%
    );
    z-index: 0;
}

/* ---------- Efecto numerológico: números flotando ---------- */
.cfp-numbers{
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.cfp-numbers span{
    position: absolute;
    bottom: -10%;
    left: calc((var(--n) * 8.3%));
    color: rgba(238,170,233,0.16);
    font-weight: 900;
    font-size: clamp(28px, 5vw, 64px);
    font-family: var(--cfp-font);
    animation: cfp-float 14s linear infinite;
    animation-delay: calc(var(--n) * -1.2s);
    user-select: none;
}

.cfp-numbers span:nth-child(odd){
    color: rgba(255,255,255,0.10);
}

@keyframes cfp-float{
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-140vh) rotate(25deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
    .cfp-numbers span{ animation: none; opacity: 0.08; }
}

/* ---------- Contenido principal ---------- */
.cfp-inner{
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.cfp-col{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Marca */
.cfp-logo{
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(238,170,233,0.45));
    border-radius: 50%;
    background: rgba(255,252,255,0.06);
    padding: 6px;
}

.cfp-title{
    font-family: var(--cfp-font);
    font-weight: 700;
    font-size: 22px;
    color: var(--cfp-bg-main);
    margin: 4px 0 0;
    letter-spacing: 0.3px;
}

.cfp-subtitle{
    font-size: 18px;
    font-weight: 500;
    color: var(--cfp-pink);
    margin: 0;
}

.cfp-tagline{
    font-size: 18px;
    font-weight: 300;
    color: rgba(255,252,255,0.85);
    margin: 4px 0 0;
    max-width: 320px;
    line-height: 1.5;
}

/* Títulos de columna */
.cfp-col-title{
    font-size: 20px;
    font-weight: 700;
    color: var(--cfp-bg-main);
    margin: 0 0 4px;
    position: relative;
    padding-bottom: 10px;
}

.cfp-col-title::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cfp-pink), var(--cfp-violet-alt));
}

/* Botones de contacto premium (oculta tel/email reales en texto visible) */
.cfp-contact-btn{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--cfp-bg-main);
    font-size: 18px;
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255,252,255,0.08);
    border: 1px solid rgba(238,170,233,0.35);
    backdrop-filter: blur(4px);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    width: fit-content;
}

.cfp-contact-btn:hover,
.cfp-contact-btn:focus-visible{
    transform: translateY(-2px);
    background: linear-gradient(90deg, var(--cfp-pink), var(--cfp-violet-alt));
    color: var(--cfp-black);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(238,170,233,0.35);
}

.cfp-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.cfp-icon svg{
    width: 18px;
    height: 18px;
    color: var(--cfp-pink);
}

.cfp-contact-btn:hover .cfp-icon,
.cfp-contact-btn:focus-visible .cfp-icon{
    background: rgba(0,0,0,0.18);
}

.cfp-contact-btn:hover .cfp-icon svg,
.cfp-contact-btn:focus-visible .cfp-icon svg{
    color: var(--cfp-black);
}

.cfp-whatsapp{
    border-color: rgba(140,106,201,0.5);
}

/* Energía / número del día */
.cfp-energy{
    align-items: flex-start;
}

.cfp-energy-number{
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    color: var(--cfp-pink);
    text-shadow: 0 0 18px rgba(238,170,233,0.55);
    font-family: var(--cfp-font);
}

.cfp-energy-text{
    font-size: 18px;
    font-weight: 300;
    color: rgba(255,252,255,0.85);
    margin: 0;
    max-width: 280px;
    line-height: 1.5;
}

/* Separador */
.cfp-divider{
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 40px auto 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(238,170,233,0.5), transparent);
}

/* Pie inferior */
.cfp-bottom{
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255,252,255,0.75);
}

.cfp-bottom p{
    margin: 0;
}

.cfp-credit a{
    color: var(--cfp-pink);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(238,170,233,0.5);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cfp-credit a:hover,
.cfp-credit a:focus-visible{
    color: var(--cfp-bg-main);
    border-color: var(--cfp-bg-main);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablets */
@media (max-width: 980px){
    .cfp-inner{
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .cfp-brand{
        grid-column: 1 / -1;
    }
}

/* Móviles */
@media (max-width: 600px){
    .cfp-footer{
        padding: 48px 18px 20px;
    }
    .cfp-inner{
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cfp-title{
        font-size: 20px;
    }
    .cfp-subtitle,
    .cfp-tagline,
    .cfp-contact-btn,
    .cfp-energy-text,
    .cfp-bottom{
        font-size: 18px;
    }
    .cfp-energy-number{
        font-size: 44px;
    }
    .cfp-bottom{
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .cfp-brand{
        align-items: center;
        text-align: center;
    }
    .cfp-tagline{
        max-width: 100%;
    }
    .cfp-contact-btn{
        width: 100%;
        justify-content: center;
    }
    .cfp-energy{
        align-items: center;
        text-align: center;
    }
}

/* Pantallas muy grandes */
@media (min-width: 1400px){
    .cfp-inner{
        max-width: 1320px;
    }
    .cfp-divider,
    .cfp-bottom{
        max-width: 1320px;
    }
}
