/* ===== LANDING PAGE - ESTILOS ÉPICOS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.landing-bg {
    background-image: url('/static/images/bg/edificio.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    margin: 0;
    position: relative;
}

/* Efecto de partículas de fondo (solo CSS) */

body.landing-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);  /* Oscurece el fondo */
    z-index: 0;
    pointer-events: none;
}

@keyframes moveParticles {
    0% { background-position: 0 0; }
    100% { background-position: 800px 800px; }
}
/* Subtítulo con efecto de escritura centrado */
.landing-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0 auto 60px auto;
    border-right: 3px solid #00a8ff;  /* Morado */
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3.5s steps(45) 1s forwards, blink 0.75s step-end infinite;
    display: inline-block;
    padding-right: 10px;
}

@keyframes typing {
    from { width: 0; }
    to { width: 850px; }
}

@keyframes blink {
    50% { border-color: transparent; }
}
/* Contenedor principal */
.landing-container {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;              /* Un poco más ancho */
    padding: 40px 20px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;             /* Centrar hijos horizontalmente */
}

/* Título animado */
.landing-title {
    font-size: 85px;
    font-weight: 900;
    text-transform: uppercase;
    color: white;                          /* Letra blanca sólida */
    -webkit-text-stroke: 3px #ff0000;       /* Borde rojo */
    text-shadow: none;                      /* Sin brillos */
    letter-spacing: 8px;
    animation: slideIn 1.5s ease-out;       /* Solo animación de entrada */
    margin: 0 auto 20px auto;
    text-align: center;
    width: 100%;
}

/* @keyframes softGlow {0% { text-shadow: 0 0 5px rgba(0, 168, 255, 0.3),0 0 10px rgba(124, 255, 124, 0.2);}100% { text-shadow: 0 0 10px rgba(0, 168, 255, 0.6),0 0 20px rgba(124, 255, 124, 0.4),0 0 30px rgba(0, 168, 255, 0.3);}}*/

@keyframes slideIn {
    0% { transform: translateY(-200px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Subtítulo */
/* Subtítulo con efecto de escritura centrado */
/* Contenedor para subtítulo y botón */
.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Subtítulo con efecto de escritura - ANCHO FIJO */
.landing-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 auto 40px auto;
    border-right: 3px solid #00a8ff;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(40) 1s forwards, blink 0.75s step-end infinite;
    display: inline-block;
    padding-right: 10px;
    max-width: 100%;
}

/* Ajuste para nombres largos */
@keyframes typing {
    from { width: 0; }
    to { width: 450px; }  /* Más ancho para nombres largos */
}

/* Botón con animación independiente */
.landing-btn {
    display: inline-block;
    padding: 20px 60px;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: white;
    background: transparent;
    border: 3px solid #00a8ff;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
    animation: bounceIn 2s ease-out 4.2s both;  /* Empieza DESPUÉS de la escritura */
    margin-top: 20px;
}

.landing-btn:hover {
    background: #ff4654;
    color: black;
    box-shadow: 0 0 40px #ff4654, 0 0 80px #ff4654;
    transform: scale(1.1);
}

.landing-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.landing-btn:hover::before {
    width: 300px;
    height: 300px;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .landing-title {
        font-size: 60px;
        letter-spacing: 8px;
    }
    .landing-subtitle {
        font-size: 16px;
        letter-spacing: 4px;
    }
    @keyframes typing {
        to { width: 250px; }
    }
}
.landing-subtitle2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: -20px auto 40px auto;  /* Margen negativo para subirlo */
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(30) 2s forwards, blink 0.75s step-end infinite;
    display: inline-block;
    padding-right: 10px;
    border-right: 3px solid #00a8ff;  /* Verde para variar */
}
/* Botón de Cloudvibe en landing */
.landing-btn.cloud-btn {
    background: transparent;
    border-color: var(--cloud-primary);
    color: var(--cloud-primary);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
}

.landing-btn.cloud-btn:hover {
    background: linear-gradient(135deg, var(--cloud-primary), var(--cloud-purple));
    border-color: transparent;
    color: white;
    box-shadow: 0 0 40px var(--cloud-cyan), 0 0 60px var(--cloud-purple);
}
/* TARJETAS PARA BOTONES */
.botones-container {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.tarjeta-boton {
    width: 280px;
    height: 180px;
    background: rgba(20, 30, 45, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tarjeta-boton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff69b4, #ff1493, #00ff7f);  /* ROSA + VERDE */
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.tarjeta-boton:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(255, 170, 0, 0.4);
}

.tarjeta-boton:hover::before {
    opacity: 0.3;
}

.tarjeta-boton span {
    font-size: 48px;
    margin-bottom: 10px;
}

.tarjeta-boton h3 {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Colores específicos para cada tarjeta (hover) */
.tarjeta-boton.valagents:hover {
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.6);  /* Rosa */
}

.tarjeta-boton.cloudvibe:hover {
    box-shadow: 0 20px 40px rgba(0, 255, 127, 0.6);    /* Verde (spring green) */
}

@media (max-width: 768px) {
    .landing-title {
        font-size: 50px;
        -webkit-text-stroke: 2px #ff0000;
        letter-spacing: 4px;
    }
}
/* ===== EFECTO NETFLIX EN TARJETAS ===== */
.tarjeta-contenedor {
    position: relative;
    width: 280px;
    height: 180px;
    overflow: visible;
}

.tarjeta-boton {
    width: 100%;
    height: 100%;
    background: rgba(20, 30, 45, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.tarjeta-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.tarjeta-contenedor:hover .tarjeta-hover {
    opacity: 1;
    visibility: visible;
    transform: scale(1.5) translateY(-30px);
    top: -20px;
}

.tarjeta-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tarjeta-hover:hover img {
    transform: scale(1.1);
}

.tarjeta-hover span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px 10px 10px;
    font-size: 14px;
    text-align: center;
}

/* Colores específicos para cada hover */
.valagents-hover {
    border: 3px solid #ff0000;
}

.cloudvibe-hover {
    border: 3px solid #00ff7f;
}

/* Mantener el botón visible cuando el hover está activo */
.tarjeta-contenedor:hover .tarjeta-boton {
    opacity: 0;
    pointer-events: none;
}

/* AJUSTE FORZOSO DEL TEXTO EN TARJETAS */
.tarjeta-boton {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
/* Ajuste del texto en las tarjetas */
.tarjeta-titulo {
    font-size: 20px !important;        /* Forzamos tamaño pequeño */
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    color: white !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    word-break: break-word !important; /* Si no cabe, parte la palabra */
}

/* Si quieres que sea responsive */
@media (max-width: 768px) {
    .tarjeta-titulo {
        font-size: 16px !important;
        letter-spacing: 0.5px !important;
    }
}
