/* 
 * Estilos Principales - Plataforma de Clientes Online
 * Empresa de Energía Eléctrica COELCHA
 * Colores corporativos: Azul (#0066CC) y Amarillo (#FFD700)
 * Diseño: Split-layout dividido verticalmente
 */

/* Variables CSS */
:root {
    --primary-blue: #0066CC;
    --secondary-blue: #004499;
    --dark-blue: #003366;
    --light-blue: #E6F3FF;
    --primary-yellow: #FFD700;
    --secondary-yellow: #E6C200;
    --light-yellow: #FFF8DC;
    --white: #FFFFFF;
    --gray: #666666;
    --light-gray: #F5F5F5;
    --border-color: #DDDDDD;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --text-color: #333333;
    --background: #FFFFFF;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden;
}

/* Layout dividido */
.split-layout {
    display: flex;
    min-height: 100vh;
}

/* Lado izquierdo - Imagen y branding */
.left-side {
    flex: 2;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.left-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/acuerdos-en-familia.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
}

.branding-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

/* Logo centrado en el lado izquierdo, más abajo */
.logo-top-left {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Logo CSS completo - Solo texto */
.logo-css {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: logoFloat 4s ease-in-out infinite;
}

/* Imagen del logo */
.logo-image {
    margin-bottom: 0.5rem;
}

.logo-image img {
    width: 280px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo-image img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Texto del logo - Mejorado para parecerse más a la imagen */
.logo-text {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-blue);
    text-shadow: 
        4px 4px 0 rgba(255, 255, 255, 0.95),
        3px 3px 0 rgba(255, 255, 255, 0.95),
        2px 2px 0 rgba(255, 255, 255, 0.95),
        1px 1px 0 rgba(255, 255, 255, 0.95),
        0 8px 16px rgba(0, 0, 0, 0.5);
    letter-spacing: 4px;
    font-family: 'Arial Black', 'Helvetica Bold', 'Impact', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    line-height: 1;
}

.logo-text:hover {
    transform: scale(1.02);
    text-shadow: 
        4px 4px 0 rgba(255, 255, 255, 1),
        3px 3px 0 rgba(255, 255, 255, 1),
        2px 2px 0 rgba(255, 255, 255, 1),
        1px 1px 0 rgba(255, 255, 255, 1),
        0 10px 20px rgba(0, 0, 0, 0.6);
}

/* Tagline del logo - Más grande y en una línea */
.logo-tagline {
    font-size: 1.9rem;
    color: var(--primary-blue);
    font-style: italic;
    text-shadow: 
        2px 2px 0 rgba(255, 255, 255, 0.9),
        1px 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    opacity: 0.95;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

/* Tagline */
.tagline {
    position: absolute;
    top: 2rem;
    left: 2rem;
    margin-top: 4rem;
    font-size: 1rem;
    color: var(--primary-yellow);
    font-weight: 500;
}

/* Texto principal */
.main-text {
    font-size: 3rem;
    font-weight: bold;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
}

/* Lado derecho - Formulario */
.right-side {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.8s ease-out;
}

/* Animación de entrada desde la derecha */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Efectos de fondo animados */
.right-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.right-side::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    animation: rotate 15s linear infinite reverse;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header del login */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 1s ease-out 0.5s both;
}

@keyframes fadeInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 
        0 10px 30px rgba(0, 102, 204, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: iconPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.login-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.login-title {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Formulario */
.login-form {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 
        0 0 0 4px rgba(0, 102, 204, 0.1),
        0 8px 25px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

.form-input:focus + .form-label {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Efecto de flotación para los campos */
.form-group:hover .form-input {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
}

/* Botón de login */
.btn-login {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    color: var(--primary-blue);
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--secondary-yellow), var(--primary-yellow));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(255, 215, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-login i {
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(3px);
}

/* Enlaces del login */
.login-links {
    text-align: center;
    font-size: 0.8rem;
    animation: fadeInUp 1s ease-out 0.9s both;
    margin-top: 1rem;
}

.login-links a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(0, 102, 204, 0.05);
}

.login-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.login-links a:hover {
    color: var(--dark-blue);
    background: rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.login-links a:hover::before {
    width: 80%;
}

.separator {
    margin: 0 1rem;
    color: var(--gray);
    font-weight: 300;
    animation: separatorPulse 2s ease-in-out infinite;
}

@keyframes separatorPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Alertas */
.alert {
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.3;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-error {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    color: #c33;
    border: 1px solid #fcc;
    box-shadow: 0 4px 15px rgba(204, 51, 51, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #efe 0%, #dfd 100%);
    color: #363;
    border: 1px solid #cfc;
    box-shadow: 0 4px 15px rgba(51, 102, 51, 0.1);
}

/* ========================================
   ESTILOS PARA PÁGINA DE REGISTRO
   ======================================== */

/* Header de la página de registro */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

/* ========================================
   ESTILOS PARA HEADER DE BILLING
   ======================================== */

.billing-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.billing-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
}

.user-details {
    text-align: right;
    line-height: 1.3;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.25rem;
}

.user-service {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.user-rut {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.logo-brand {
    display: flex;
    align-items: center;
}

.logo-brand .logo-css {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-brand .logo-image img {
    width: 120px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-brand .logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-yellow);
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    font-family: 'Arial Black', 'Helvetica Bold', 'Impact', sans-serif;
    line-height: 1;
    text-transform: uppercase;
}

.logo-brand .logo-tagline {
    font-size: 0.7rem;
    color: var(--primary-yellow);
    font-style: italic;
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 900;
    line-height: 1.2;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-yellow);
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary-yellow);
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary {
    background: var(--primary-yellow);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--secondary-yellow);
    transform: translateY(-2px);
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Contenedor del formulario */
.form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 2rem auto;
}

.form-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.form-title i {
    color: var(--primary-yellow);
    font-size: 2rem;
}

/* Grupos de campos organizados */
.form-section {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-blue);
}

.form-section h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.form-section h3 i {
    color: var(--primary-yellow);
}

/* Campos del formulario mejorados */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--primary-blue);
    width: 16px;
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.form-input:hover {
    border-color: var(--primary-blue);
}

/* Select personalizado */
.form-input[type="date"],
.form-input[type="tel"],
.form-input[type="email"] {
    cursor: pointer;
}

/* Texto de ayuda */
.form-help {
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Feedback de validación de contraseñas */
.password-feedback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.password-feedback:not(.error) {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.password-feedback.error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.password-feedback i {
    font-size: 1rem;
}

/* Estados de los campos de contraseña */
.form-input.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Medidor de seguridad de contraseñas */
.password-strength-meter {
    margin-top: 0.75rem;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-fill.weak {
    background: #dc3545;
    width: 33.33%;
}

.strength-fill.medium {
    background: #ffc107;
    width: 66.66%;
}

.strength-fill.strong {
    background: #28a745;
    width: 100%;
}

.strength-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.strength-level {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strength-level.weak {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.strength-level.medium {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.strength-level.strong {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Campo de contraseña con estado de seguridad */
.form-input.password-weak {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.password-medium {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.form-input.password-strong {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Requisitos de seguridad de contraseña */
.password-requirements {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-blue);
}

.requirements-title {
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.requirements-title i {
    color: var(--primary-yellow);
}

.requirements-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-item i {
    font-size: 0.6rem;
    transition: all 0.3s ease;
}

/* Estados de los requisitos */
.requirement-item.fulfilled {
    color: #28a745;
}

.requirement-item.fulfilled i {
    color: #28a745;
    transform: scale(1.2);
}

.requirement-item.fulfilled span {
    font-weight: 500;
}

/* Estado especial para el requisito de longitud adicional */
.requirement-item.fulfilled.bonus {
    color: #17a2b8;
}

.requirement-item.fulfilled.bonus i {
    color: #17a2b8;
}

/* Botones del formulario */
.form-buttons {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* Botón secundario para formularios */
.btn-secondary {
    background: var(--light-gray);
    color: var(--text-color);
    padding: 1rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

/* Botón secundario para navegación (header) */
.nav-menu .btn-secondary {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-menu .btn-secondary:hover {
    background: var(--secondary-yellow);
    transform: translateY(-2px);
    color: var(--dark-blue);
}

/* Enlace de inicio de sesión */
.login-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Footer de la página de registro */
.footer {
    background: var(--dark-blue);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer p {
    margin: 0.5rem 0;
}

/* ========================================
   ESTILOS PARA PÁGINA DE REGISTRO
   ======================================== */

/* Header de la página de registro */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

/* ========================================
   ESTILOS PARA HEADER DE BILLING
   ======================================== */

.billing-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.billing-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
}

.user-details {
    text-align: right;
    line-height: 1.3;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.25rem;
}

.user-service {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.user-rut {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.logo-brand {
    display: flex;
    align-items: center;
}

.logo-brand .logo-css {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-brand .logo-image img {
    width: 120px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-brand .logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-yellow);
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    font-family: 'Arial Black', 'Helvetica Bold', 'Impact', sans-serif;
    line-height: 1;
    text-transform: uppercase;
}

.logo-brand .logo-tagline {
    font-size: 0.7rem;
    color: var(--primary-yellow);
    font-style: italic;
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.2;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-yellow);
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary-yellow);
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary {
    background: var(--primary-yellow);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--secondary-yellow);
    transform: translateY(-2px);
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Contenedor del formulario */
.form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 2rem auto;
}

.form-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.form-title i {
    color: var(--primary-yellow);
    font-size: 2rem;
}

/* Grupos de campos organizados */
.form-section {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-blue);
}

.form-section h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.form-section h3 i {
    color: var(--primary-yellow);
}

/* Campos del formulario mejorados */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--primary-blue);
    width: 16px;
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.form-input:hover {
    border-color: var(--primary-blue);
}

/* Select personalizado */
.form-input[type="date"],
.form-input[type="tel"],
.form-input[type="email"] {
    cursor: pointer;
}

/* Texto de ayuda */
.form-help {
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Información del formulario */
.form-info {
    background: linear-gradient(135deg, var(--light-blue) 0%, #f0f8ff 100%);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-blue);
}

.form-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.form-info h3 i {
    color: var(--primary-yellow);
}

.form-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Botones del formulario */
.form-buttons {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* Botón secundario para formularios */
.btn-secondary {
    background: var(--light-gray);
    color: var(--text-color);
    padding: 1rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

/* Botón secundario para navegación (header) */
.nav-menu .btn-secondary {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-menu .btn-secondary:hover {
    background: var(--secondary-yellow);
    transform: translateY(-2px);
    color: var(--dark-blue);
}

/* Enlace de inicio de sesión */
.login-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Footer de la página de registro */
.footer {
    background: var(--dark-blue);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer p {
    margin: 0.5rem 0;
}

/* ========================================
   ESTILOS PARA PÁGINAS DE CONTRASEÑA
   ======================================== */

/* Feedback de validación de contraseñas */
.password-feedback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.password-feedback:not(.error) {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.password-feedback.error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.password-feedback i {
    font-size: 1rem;
}

/* Estados de los campos de contraseña */
.form-input.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Medidor de seguridad de contraseñas */
.password-strength-meter {
    margin-top: 0.75rem;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-fill.weak {
    background: #dc3545;
    width: 33.33%;
}

.strength-fill.medium {
    background: #ffc107;
    width: 66.66%;
}

.strength-fill.strong {
    background: #28a745;
    width: 100%;
}

.strength-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.strength-level {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strength-level.weak {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.strength-level.medium {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.strength-level.strong {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Campo de contraseña con estado de seguridad */
.form-input.password-weak {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.password-medium {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.form-input.password-strong {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Requisitos de seguridad de contraseña */
.password-requirements {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-blue);
}

.requirements-title {
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.requirements-title i {
    color: var(--primary-yellow);
}

.requirements-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-item i {
    font-size: 0.6rem;
    transition: all 0.3s ease;
}

/* Estados de los requisitos */
.requirement-item.fulfilled {
    color: #28a745;
}

.requirement-item.fulfilled i {
    color: #28a745;
    transform: scale(1.2);
}

.requirement-item.fulfilled span {
    font-weight: 500;
}

/* Estado especial para el requisito de longitud adicional */
.requirement-item.fulfilled.bonus {
    color: #17a2b8;
}

.requirement-item.fulfilled.bonus i {
    color: #17a2b8;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }
    
    .left-side {
        flex: none;
        height: 250px;
        padding: 1rem;
    }
    
    .right-side {
        flex: none;
        padding: 1.5rem;
    }
    
    .main-text {
        font-size: 2rem;
    }
    
    .logo-top-left {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
    }
    
    .tagline {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 0;
        margin-bottom: 1rem;
    }
    
    .branding-content {
        padding: 1rem;
    }
    
    .logo-image img {
        width: 90px;
        height: 90px;
    }
    
    .logo-text {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }
    
    .logo-tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .main-text {
        font-size: 1.5rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .right-side {
        padding: 1rem;
    }
    
    .logo-image img {
        width: 70px;
        height: 70px;
    }
    
    .logo-text {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .logo-tagline {
        font-size: 0.8rem;
    }
    
    /* Responsive para página de registro */
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .form-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin: 0.5rem 0;
        justify-content: center;
    }
    
    .form-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Responsive para medidor de seguridad */
    .strength-text {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .strength-level {
        align-self: center;
    }
    
    /* Responsive para requisitos de seguridad */
    .password-requirements {
        padding: 0.75rem;
    }
    
    .requirements-title {
        font-size: 0.9rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .requirement-item {
        font-size: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    /* Responsive para footer */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Responsive para botón secundario del header */
    .nav-menu .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin: 0.5rem 0;
    }
    
    /* Responsive para header de billing */
    .billing-header .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-user-info {
        order: -1;
        margin-bottom: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-brand .logo-image img {
        width: 100px;
        height: 50px;
    }
    
    .logo-brand .logo-text {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .logo-brand .logo-tagline {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }
}
