/* ==========================================================================
   Variables de Diseño (Colores extraídos del logo de Tamago Software)
   ========================================================================== */
:root {
    --bg-dark: #121824;
    --text-main: #1d2d44;
    --text-muted: #606f7b;
    --text-light: #8795a1;
    --primary-blue: #1c75bc;
    --secondary-orange: #f15a24;
    --primary-blue-soft: rgba(28, 117, 188, 0.08);
    --border-color: #e2e8f0;
    --white: #ffffff;
}

/* ==========================================================================
   Estilos Base y Reseteo
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8fafc;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

/* Background decorativo sutil */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(28, 117, 188, 0.06), transparent 45%),
                radial-gradient(circle at 20% 80%, rgba(241, 90, 36, 0.06), transparent 45%);
    z-index: -1;
}

/* ==========================================================================
   Contenedor Principal (Landing Box)
   ========================================================================== */
.container {
    max-width: 620px;
    width: 100%;
    background: var(--white);
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(29, 45, 68, 0.07);
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: fadeIn 0.8s ease-out;
}

/* Logotipo */
.logo-container {
    margin-bottom: 25px;
}

.logo {
    max-width: 220px;
    height: auto;
    transition: transform 0.3s ease;
}

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

/* Textos */
h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.subtitle .author {
    font-weight: 700;
    color: var(--text-main);
    display: inline-block;
    margin-top: 4px;
}

/* ==========================================================================
   Componentes: Barra de Progreso
   ========================================================================== */
.progress-box {
    margin-bottom: 25px;
    width: 100%;
}

.progress-bar {
    background-color: #e2e8f0;
    height: 8px;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
    height: 100%;
    width: 85%;
    border-radius: 10px;
    animation: progressLoad 1.5s ease-out forwards;
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.progress-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-orange);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

/* ==========================================================================
   Componentes: Formulario de Suscripción
   ========================================================================== */
.subscribe-form {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 25px;
}

.subscribe-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(28, 117, 188, 0.15);
}

.subscribe-form button {
    background-color: var(--text-main);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.subscribe-form button:hover {
    background-color: var(--secondary-orange);
    box-shadow: 0 4px 12px rgba(241, 90, 36, 0.25);
}

.subscribe-form button:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Bloque Informativo: Sobre el Negocio (Meta Verification Requirement)
   ========================================================================== */
.business-info {
    margin-top: 20px;
    padding: 18px 20px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: left;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.business-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.business-info p {
    margin-bottom: 6px;
}

.business-info p:last-child {
    margin-bottom: 0;
}

.business-info strong {
    color: var(--text-main);
    font-weight: 700;
}

.business-info a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.business-info a:hover {
    text-decoration: underline;
    color: var(--secondary-orange);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    margin-top: 30px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
}

footer p {
    margin-bottom: 4px;
}

.footer-legal-title {
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.footer-links {
    margin-top: 10px;
    font-weight: 600;
}

.footer-links a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 2px 6px;
}

.footer-links a:hover {
    color: var(--secondary-orange);
    text-decoration: underline;
}

/* ==========================================================================
   Páginas Legales (Privacidad y Aviso Legal)
   ========================================================================== */
.legal-container {
    max-width: 750px;
    text-align: left;
    padding: 40px;
}

.legal-content h1 {
    font-size: 1.9rem;
    margin-bottom: 8px;
    text-align: left;
}

.legal-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.legal-section {
    margin-bottom: 22px;
}

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.legal-section p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 8px;
}

.legal-section strong {
    color: var(--text-main);
}

.legal-section a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.legal-section a:hover {
    text-decoration: underline;
    color: var(--secondary-orange);
}

.legal-actions {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-back {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-back:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-1px);
}

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

@keyframes progressLoad {
    from { width: 0%; }
    to { width: 85%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 540px) {
    .container {
        padding: 30px 20px;
    }
    
    .legal-container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.45rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form button {
        width: 100%;
    }
}
