/* Estilos para el Portal de Mantenimiento / En Desarrollo - CEPE Idiomas */

:root {
    --primary-color: #90C033;
    --primary-dark: #6f9723;
    --primary-light: #f4fae8;
    --primary-glow: rgba(144, 192, 51, 0.35);
    --dark-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.96);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: rgba(226, 232, 240, 0.8);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background: url('../img/IMG_5943.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    position: relative;
    padding: 40px 15px 100px 15px;
    overflow-x: hidden;
}

/* Overlay cinematográfico con gradiente sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.65) 0%, rgba(10, 15, 29, 0.85) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

/* Contenedor Principal */
.maintenance-container {
    position: relative;
    z-index: 2;
    background: var(--card-bg);
    padding: 45px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    text-align: center;
    max-width: 580px;
    width: 100%;
    margin: auto;
    border: 1px solid rgba(255, 255, 255, 0.7);
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Logo y Marca */
.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 190px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

/* Badge de Estado Activo / Animado */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid #fde68a;
    margin-bottom: 22px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #f59e0b;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background-color: #f59e0b;
    border-radius: 50%;
    animation: pulseRing 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    70% {
        transform: scale(2.2);
        opacity: 0;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* Icono Ilustrativo */
.icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary-color);
    margin-bottom: 16px;
    box-shadow: 0 8px 16px var(--primary-glow);
}

.icon-wrapper svg {
    width: 32px;
    height: 32px;
}

/* Textos de Cabecera */
.main-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.25;
}

.subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 24px;
}

.bilingual-notice {
    font-size: 0.88rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: -12px;
    margin-bottom: 26px;
    display: block;
}

/* Barra de progreso de desarrollo decorativa */
.progress-container {
    background: #f1f5f9;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 26px;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 78%;
    background: linear-gradient(90deg, #90C033 0%, #b8e055 100%);
    border-radius: 999px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Tarjeta de Asistencia y Contacto */
.contact-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.contact-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-buttons-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
    color: #ffffff;
}

.btn-email {
    background-color: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-email:hover {
    border-color: var(--primary-color);
    color: var(--primary-dark);
    background-color: #fcfdf9;
    transform: translateY(-2px);
}

/* Links secundarios (Brasil y Volver) */
.extra-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.link-brasil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #0369a1;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.link-brasil:hover {
    background-color: #e0f2fe;
    color: #0284c7;
    border-color: #7dd3fc;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: all 0.25s ease;
    margin-top: 5px;
}

.btn-back:hover {
    background-color: #81ad2b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(144, 192, 51, 0.45);
}

.btn-back svg {
    transition: transform 0.2s ease;
}

.btn-back:hover svg {
    transform: translateX(-4px);
}

.link-back {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link-back:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* Footer idéntico al portal */
.footer-modern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-item a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-item a:hover {
    color: var(--primary-color);
}

.footer-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.separator {
    color: rgba(255, 255, 255, 0.2);
}

/* Responsividad */
@media (max-width: 768px) {
    body {
        padding-bottom: 140px;
    }

    .maintenance-container {
        padding: 30px 20px;
    }

    .main-title {
        font-size: 1.4rem;
    }

    .action-buttons-group {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .separator {
        display: none;
    }
}
