/* ChatCuba Login CSS - Mobile First Design */

/* Variables de colores de la bandera cubana */
:root {
    --cuba-blue: #004B87;
    --cuba-blue-light: #0076d4;
    --cuba-red: #DA291C;
    --cuba-red-light: #ea6359;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --gray-dark: #757575;
    --black: #212121;
    --shadow-color: rgba(0, 0, 0, 0.2);
    
    /* Material Design Elevation Shadows */
    --shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --shadow-4: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    --shadow-5: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 500;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--cuba-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--cuba-blue-light);
}

button {
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* Utilidades */
.clear {
    clear: both;
}

.centered_element {
    text-align: center;
}

.pad30 {
    padding: 30px;
}

.vpad15 {
    padding-top: 15px;
    padding-bottom: 15px;
}

.vpad20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.tpad5 {
    padding-top: 5px;
}

.tpad20 {
    padding-top: 20px;
}

.bpad10 {
    padding-bottom: 10px;
}

.bold {
    font-weight: 700;
}

.text_xlarge {
    font-size: 1.75rem;
}

.text_med {
    font-size: 1.1rem;
}

.text_xsmall {
    font-size: 0.85rem;
}

.bclick {
    cursor: pointer;
}

/* Estructura principal */
#login_wrap {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background-color: var(--white);
}

/* Sección superior con login */
#intro_top {
    width: 100%;    
    min-height: 100vh;
    z-index: 1;
    position: relative;
    background: linear-gradient(rgba(0, 37, 144, 0.85), rgba(207, 20, 43, 0.75)), #292929 url('/control/login/v1/images/background1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btable {
    display: table;
    width: 100%;
    height: 100%;
}

.bcell_mid {
    display: table-cell;
    vertical-align: middle;
}

#login_all {
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    margin: 0 auto;
    color: var(--white);
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-3);
}

/* Logo y estrella de Cuba */
.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

#login_logo {
    height: 70px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.cuba-star {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background-color: var(--white);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: star-pulse 3s infinite;
}

@keyframes star-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Tarjeta de login */
.login-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--shadow-1);
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
}

/* Botones */
.large_button_rounded {
    display: inline-block;
    min-width: 200px;
    padding: 12px 24px;
    margin: 8px 0;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Botón de invitado con un solo color */
.cuba-flag-btn {
    background-color: var(--cuba-blue);
    color: var(--white);
    font-weight: 600;
    border: 2px solid var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.cuba-flag-btn:hover {
    transform: translateY(-3px);
    background-color: var(--cuba-blue-light);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.25), 0 5px 5px rgba(0, 0, 0, 0.22);
}

.cuba-flag-btn i {
    margin-right: 8px;
    color: var(--white);
    text-shadow: none;
}

.large_button_rounded:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.large_button_rounded:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.ok_btn {
    background-color: var(--cuba-red);
    color: var(--white);
}

.ok_btn:hover {
    background-color: var(--cuba-red-light);
    box-shadow: var(--shadow-2);
}

.default_btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid var(--white);
}

.default_btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-2);
}

.btnshadow {
    box-shadow: var(--shadow-1);
}

/* Animación de pulso para el botón principal */
.intro_login_btn {
    position: relative;
    animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(207, 20, 43, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(207, 20, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(207, 20, 43, 0);
    }
}

/* Link de registro */
.register-link {
    color: var(--white);
    text-decoration: underline;
    transition: all 0.3s ease;
    display: inline-block;
}

.register-link:hover {
    color: var(--cuba-red-light);
    text-decoration: none;
}

/* Animación para el texto de registro */
.register-animation {
    position: relative;
    animation: register-glow 2s ease-in-out infinite alternate;
}

.register-animation i {
    margin-right: 5px;
    color: var(--cuba-red-light);
}

@keyframes register-glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 20px rgba(218, 41, 28, 0.6);
        transform: scale(1.05);
    }
}

/* Secciones */
.section {
    padding: 60px 20px;
    background-color: var(--white);
}

.section:nth-child(even) {
    background-color: var(--gray-light);
}

.section_content {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: var(--cuba-blue);
    text-align: center;
    margin-bottom: 10px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--cuba-red);
    margin: 15px auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 40px;
}

/* Sección de Estadísticas */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: var(--cuba-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stat-icon:before {
    font-family: 'FontAwesome';
    font-size: 28px;
    color: var(--white);
}

.users-icon:before {
    content: '\f0c0';
}

.messages-icon:before {
    content: '\f075';
}

.communities-icon:before {
    content: '\f0ac';
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cuba-red);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-dark);
}

/* Sección de Reviews */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.review-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow-1);
    transition: all 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-3);
}

.review-card:before {
    content: '\f10d';
    font-family: 'FontAwesome';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    color: rgba(0, 37, 144, 0.1);
}

.review-stars {
    color: var(--cuba-red);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--black);
}

.review-author {
    font-weight: 500;
    color: var(--cuba-blue);
    text-align: right;
}

/* Sección de FAQs */
.faq-container {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    background-color: var(--white);
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    background-color: var(--cuba-blue);
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:after {
    content: '\f107';
    font-family: 'FontAwesome';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: var(--cuba-red);
}

.faq-item.active .faq-question:after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* Footer */
.footer-section {
    background-color: var(--cuba-blue);
    color: var(--white);
    padding: 50px 20px 20px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-logo {
    text-align: center;
}

.footer-logo-img {
    height: 50px;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 6px;
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-links-column h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
}

.footer-links-column h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--cuba-red);
    margin-top: 8px;
    border-radius: 1.5px;
}

.footer-links-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-social h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
}

.footer-social h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--cuba-red);
    margin-top: 8px;
    border-radius: 1.5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.social-icon:before {
    font-family: 'FontAwesome';
    font-size: 20px;
    color: var(--white);
}

.facebook-icon:before {
    content: '\f09a';
}

.twitter-icon:before {
    content: '\f099';
}

.instagram-icon:before {
    content: '\f16d';
}

.telegram-icon:before {
    content: '\f2c6';
}

.social-icon:hover {
    background-color: var(--cuba-red);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Media Queries para Responsive Design */
@media screen and (min-width: 768px) {
    .stats-container, .reviews-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .stat-card, .review-card {
        flex: 1;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-links-column {
        flex: 1;
    }
}

@media screen and (min-width: 992px) {
    .section {
        padding: 80px 20px;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-logo {
        flex: 1;
        text-align: left;
    }
    
    .footer-links {
        flex: 2;
    }
    
    .footer-social {
        flex: 1;
        text-align: right;
    }
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 1s ease-out;
}

/* Optimización para SEO */
/* Estas clases ayudan a estructurar el contenido para SEO */
.seo-title {
    font-size: 0;
    height: 0;
    overflow: hidden;
}

/* Accesibilidad */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Soporte para navegadores antiguos */
.no-js .faq-answer {
    max-height: none;
    padding: 20px;
}
