/* ==========================================
   CONFIGURACIÓN GENERAL Y VARIABLES
   ========================================== */
:root {
    --primary-blue: #0A2540;
    --light-blue: #1e3d59;
    --dark-blue: #051626;
    --text-white: #ffffff;
    --text-dark: #333333;
    --bg-light: #f4f6f9;
    --border-color: #e1e8ed;
    --btn-blue: #0b4f8c;
    --btn-green: #1e7e34;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   DISEÑO EN CONTENEDOR PRINCIPAL (GRID)
   ========================================== */
.container {
    flex: 1;
    display: grid;
    grid-template-columns: 45% 55%;
    width: 100%;
}

/* --- SECCIÓN IZQUIERDA (AZUL) --- */
.branding-side {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--dark-blue) 100%);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.branding-content {
    max-width: 500px;
    z-index: 2;
}

.main-logo {
    max-width: 220px;
    margin-bottom: 30px;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.3));
}

.branding-side .subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    border-bottom: 2px solid #ffcc00;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-weight: bold;
}

.branding-side h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.branding-side .description {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

/* --- SECCIÓN DERECHA (BLANCA - CENTRADA) --- */
.login-side {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
}

.login-content {
    width: 100%;
    max-width: 550px;
}

/* Encabezado SEDETJEL Totalmente Centrado */
.sedetjel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 35px;
}

.sedetjel-logo {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
}

.sedetjel-header h2 {
    color: var(--primary-blue);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.sedetjel-header p {
    color: #555555;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

/* Portal Título */
.portal-title {
    text-align: center;
    margin-bottom: 30px;
}

.portal-title h3 {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.portal-title p {
    color: #666;
    font-size: 14px;
}

/* Botones de Acceso */
.access-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.btn-access {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 50px;
    color: var(--text-white);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-access:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-contribuyente { background-color: var(--btn-blue); }
.btn-funcionario { background-color: var(--btn-green); }

.btn-icon {
    font-size: 32px;
    margin-right: 20px;
    opacity: 0.9;
}

.btn-text {
    flex: 1;
}

.btn-text h4 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-text p {
    font-size: 12px;
    opacity: 0.8;
}

.btn-arrow {
    font-size: 18px;
}

/* ==========================================
   SECCIÓN DE CONTACTO VERTICAL MINIATURA
   ========================================== */
.contacto-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.contacto-vertical h5 {
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.contacto-linea {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555555;
    font-size: 12.5px;
    text-align: left;
    font-weight: 500;
}

/* Iconos miniatura */
.contacto-linea i {
    color: var(--btn-blue);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* Icono miniatura de WhatsApp verde */
.contacto-linea .fa-whatsapp {
    color: #25D366;
    font-size: 15px;
}

.contacto-linea a {
    color: var(--btn-blue);
    text-decoration: none;
    font-weight: 600;
}

.contacto-linea a:hover {
    text-decoration: underline;
}

/* ==========================================
   PIE DE PÁGINA (FOOTER)
   ========================================== */
.main-footer {
    background-color: var(--dark-blue);
    color: rgba(255,255,255,0.8);
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 500;
    border-top: 3px solid #ffcc00;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
   MEDIA QUERIES (ADAPTACIÓN A MÓVILES)
   ========================================== */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 100%;
    }
    
    .branding-side {
        padding: 60px 20px;
    }
    
    .login-side {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .branding-side h1 {
        font-size: 24px;
    }
    .sedetjel-header h2 {
        font-size: 28px;
    }
    .contacto-linea {
        font-size: 11.5px;
    }
}

