/* Base Styles */
:root {
    --primary-color: #0066CC;
    /* Azul LexGo Corporativo (Principal) */
    --secondary-color: #111111;
    /* Negro (Texto y Fondos Oscuros) */
    --accent-color: #FFB700;
    /* Amarillo (Solo para CTAs destacados) */
    --link-blue: #0056b3;
    --text-color: #333;
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background: #fff;
}

.container {
    max-width: 1300px;
    /* Más ancho */
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
    /* Margen lateral en pantallas grandes */
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.top-bar {
    background: var(--primary-color);
    /* Azul */
    padding: 8px 0;
    text-align: right;
}

.top-links a.btn-top {
    background: rgba(255, 255, 255, 0.2);
    /* Transparente sobre azul */
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 5px;
    color: white;
    text-transform: uppercase;
    display: inline-block;
}

.top-links a.btn-top:hover {
    background: white;
    color: var(--primary-color);
}

/* Header Unificado */
.main-header {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 10px 40px;
    /* Padding lateral para separar de los bordes */
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo Area */
.logo-area h1 {
    margin: 0;
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 38px;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-area img {
    max-height: 50px;
    /* Altura controlada del logo */
    width: auto;
}

.logo-area a {
    text-decoration: none;
    display: block;
}

/* Nav Area */
.top-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 13px;
    text-transform: uppercase;
    transition: 0.2s;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-btn.highlight {
    background: var(--accent-color);
    /* Amarillo CTA */
    color: #000;
    padding: 10px 25px;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-btn.highlight:hover {
    background: #e6a510;
    transform: translateY(-1px);
}

/* Slider */
.main-slider {
    position: relative;
    width: 100%;
    height: auto !important;
    /* Altura automática */
    min-height: auto;
    overflow: hidden;
    background: transparent;
    padding: 0;
}

.main-slider .slick-list,
.main-slider .slick-track {
    height: auto !important;
}

.slide {
    width: 100%;
    position: relative;
    outline: none;
    /* Quitar borde azul al click en algunos navegadores */
}

/* La imagen es la jefa del tamaño */
.slide-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* Contenido flotante sobre la imagen */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    /* Fondo opcional si el texto no se lee bien, ajustar alpha si el usuario quiere ver full banner */
    background: rgba(0, 0, 0, 0.1);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
    /* Opcional, según diseño deseado */
}

/* Ocultar overlay oscuro genérico antiguo */
.slide::before {
    display: none;
}

/* Slick Custom Styles */
.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.slick-prev:hover,
.slick-next:hover {
    background: var(--primary-color);
}

.slick-prev {
    left: 20px;
}

.slick-next {
    right: 20px;
}

.slick-dots {
    bottom: 20px;
}

.slick-dots li button:before {
    font-size: 12px;
    color: white;
    opacity: 0.5;
}

.slick-dots li.slick-active button:before {
    color: var(--primary-color);
    opacity: 1;
}

.slide-content h2 {
    font-size: 48px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    /* Fallback readability */
    padding: 10px 20px;
    display: inline-block;
}

.btn-cta {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Sections */
/* =========================================
   Secciones Corporativas
   ========================================= */

/* Sección Destacada (Antes Amarilla) -> Ahora Azul LexGo */
.section-gold {
    /* Mantenemos nombre clase por compatibilidad, cambiamos estilo */
    background: var(--primary-color);
    /* Azul */
    padding: 80px 0;
    color: white;
    /* Texto blanco para máximo contraste */
    text-align: center;
}

.section-gold h2 {
    color: white;
    /* Título blanco */
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.section-gold p {
    color: rgba(255, 255, 255, 0.9);
}

/* Listas en sección azul: Blanco con transparencia */
.section-gold li {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-color);
    /* Borde amarillo para detalle fino */
    color: white;
}

.section-gold li strong {
    color: var(--accent-color);
}

/* Sección Naranja/Dorada - Para destacar contenido especial */
.section-orange {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.section-orange h2 {
    color: white;
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.section-orange p,
.section-orange .section-body {
    color: rgba(255, 255, 255, 0.95);
}

.section-orange .split-content h2 {
    color: white;
}

.section-orange li {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid white;
    color: white;
}

.section-orange li strong {
    color: white;
    font-weight: 900;
}

/* Sección Azul (Alternativa) -> Ahora Gris o Negra */
.section-blue {
    background: #f4f6f8;
    /* Gris muy suave */
    padding: 80px 0;
    color: var(--secondary-color);
}

.section-blue h2 {
    color: var(--secondary-color);
}

.section-blue-dark {
    background: var(--secondary-color);
    /* Negro */
    padding: 80px 0;
    color: white;
}

/* Dynamic Split Layout (Texto + Imagen) */
.dynamic-split {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 20px 0;
}

.dynamic-split.reverse {
    flex-direction: row-reverse;
    /* Alternar imagen izquierda/derecha */
}

.split-content {
    flex: 1;
}

/* Colores dinámicos para títulos según el fondo */
.split-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
    /* Por defecto oscuro */
}

/* Solo en secciones OSCURAS el texto se vuelve blanco */
.section-gold .split-content h2,
.section-blue-dark .split-content h2,
.section-gold h2,
.section-blue-dark h2 {
    color: white !important;
}

/* En secciones CLARAS (White, Blue/Gris) el texto se mantiene OSCURO */
.section-white h2,
.section-blue h2,
.section-white .split-content h2,
.section-blue .split-content h2 {
    color: var(--secondary-color) !important;
}

.split-content p {
    font-size: 16px;
    margin-bottom: 15px;
    color: inherit;
    /* Hereda el color de la sección (blanco u oscuro) */
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.split-image img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    /* Limitar altura para que no sea gigante */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Layout Centrado (Solo Texto) */
.content-center-limited {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content-center-limited h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.content-center-limited p {
    font-size: 18px;
    line-height: 1.6;
}

/* Ajustes Responsive */
@media (max-width: 900px) {
    .dynamic-split {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
    }

    .section-gold ol,
    .section-gold ul {
        grid-template-columns: 1fr;
        /* Una columna en móvil */
    }
}

/* =========================================
   Sección Tiendas
   ========================================= */
.section-stores {
    background: white;
    /* Fondo blanco limpio para ver bien los logos */
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.section-stores h2 {
    color: var(--primary-color);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.store-item img {
    max-width: 130px;
    height: auto;
    filter: grayscale(100%);
    /* Elegante en grises */
    opacity: 0.6;
    transition: all 0.3s ease;
}

.store-item img:hover {
    filter: none;
    /* Color real al pasar mouse */
    opacity: 1;
    transform: scale(1.05);
}

/* =========================================
   Sección Artículos Prohibidos & Calculadora
   ========================================= */
.section-utility {
    background: var(--primary-color);
    /* Azul LexGo en lugar de negro */
    padding: 70px 0;
    color: white;
}

.utility-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Izquierda más ancha para iconos */
    gap: 60px;
    align-items: center;
}

/* Artículos Prohibidos */
.prohibited-col h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-bottom: 3px solid white;
    /* Línea blanca */
    display: inline-block;
    padding-bottom: 10px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    text-align: center;
}

.icon-item i {
    font-size: 30px;
    color: var(--accent-color);
    /* Iconos Amarillos para resaltar en el Azul */
    margin-bottom: 10px;
}

.icon-item p {
    font-size: 12px;
    line-height: 1.2;
    color: white;
    font-weight: 500;
}

.btn-link {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
}

/* Widget Calculadora */
.calculator-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    color: #333;
}

.calculator-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-block {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-block:hover {
    background: var(--primary-color);
    color: black;
}

.text-small {
    font-size: 11px;
    color: #777;
    text-align: center;
    margin-top: 10px;
    display: block;
}

/* =========================================
   Footer
   ========================================= */
.main-footer {
    background: #1a1a1a;
    /* Negro suave / Gris oscuro elegante */
    padding: 60px 0 20px;
    color: #bbb;
    /* Texto gris claro para lectura suave */
    font-size: 14px;
    border-top: 5px solid var(--accent-color);
    /* Borde superior amarillo como detalle de marca */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-col h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 16px;
    color: white;
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-col ul li a {
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
    color: #bbb;
}

.footer-col ul li a:hover {
    text-decoration: none;
    color: white;
    padding-left: 5px;
    /* Pequeña animación */
}

.copyright {
    margin-top: 50px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 13px;
    opacity: 0.6;
}

/* =========================================
   Página de Sucursales
   ========================================= */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.branch-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Sombra suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.branch-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f4f4f4;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-size: 50px;
}

.branch-info {
    padding: 25px;
}

.branch-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 800;
}

.branch-detail {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.branch-detail i {
    color: var(--accent-color);
    /* Iconos amarillos */
    min-width: 20px;
    margin-right: 10px;
    margin-top: 4px;
}

.btn-map {
    display: block;
    margin-top: 20px;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s;
}

/* =========================================
   Página FAQ
   ========================================= */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: #f9f9f9;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.faq-question {
    background: var(--secondary-color);
    /* Encabezado Oscuro */
    color: white;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #000;
    /* Más oscuro al hover */
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: white;
}

.icon-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item.active .icon-toggle {
    transform: rotate(45deg);
    /* Convertir + en x */
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    /* Altura suficiente para contenido */
    border-top: 1px solid #eee;
}

.answer-content {
    padding: 25px;
    color: #555;
    line-height: 1.7;
}

/* Page Header General */
.page-header {
    background: var(--secondary-color);
    /* O usar una imagen de fondo */
    padding: 80px 0;
    color: white;
}

.page-header h1 {
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

/* =========================================
   Página de Registro (Mejorada)
   ========================================= */
.register-section {
    background: #f4f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.register-form-container {
    background: white;
    border-radius: 20px;
    /* Bordes más redondeados */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    /* Sombra difusa y suave */
    padding: 50px;
    max-width: 900px;
    /* Más ancho para que quepan bien las 2 columnas */
    width: 100%;
    margin: 0 auto;
}

.register-header {
    margin-bottom: 40px;
    text-align: center;
    /* Centrado para más elegancia */
}

.register-header h2 {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

/* Sistema de Grilla para el Formulario (Layout de 2 columnas) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    /* Compensar padding */
}

.col-md-6 {
    width: 50%;
    padding: 0 15px;
    box-sizing: border-box;
    float: left;
    /* Fallback */
}

.col-md-12 {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Campos */
/* Campos */
.form-group {
    margin-bottom: 25px;
}

/* Wrapper Estilo Extreme (Etiqueta chica arriba + Input abajo) */
.input-wrapper {
    background: #f8f9fa;
    /* Fondo gris suave */
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 6px 15px 4px;
    /* Padding ajustado */
    height: 58px;
    /* Altura total fija */
    display: flex;
    /* Flex para apilar etiqueta e input */
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.input-label {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
    display: block;
}

.clean-input {
    background: transparent;
    border: none;
    font-size: 15px;
    color: #333;
    width: 100%;
    padding: 0;
    font-weight: 500;
    outline: none;
    height: 24px;
}

.clean-input:focus {
    outline: none;
}

/* Select Custom Arrow */
select.clean-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 14px;
    cursor: pointer;
}

/* Placeholder estilizado (para inputs sin label wrapper si hubiera) */
::placeholder {
    color: #ccc;
    opacity: 1;
}

.checkbox-group {
    margin-top: 10px;
    margin-bottom: 30px;
    text-align: left;
    padding-left: 5px;
}

/* Botón */
.btn-primary.btn-block {
    background: var(--secondary-color);
    color: white;
    border: none;
    height: 60px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 8px;
    /* Menos redondeado, más tech */
    width: 100%;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.btn-primary.btn-block:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.3);
}

/* =========================================
   REFINAMIENTOS DE DISEÑO (INPUTS FINOS)
   ========================================= */

/* Hacemos los inputs más compactos y elegantes (Menos gordos) */
.input-wrapper {
    height: 46px !important;
    /* Forzamos altura fina */
    padding: 3px 12px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.input-label {
    font-size: 10px !important;
    margin-bottom: 0 !important;
    color: #888 !important;
    font-weight: 700 !important;
}

.clean-input {
    height: 22px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Ajuste fino al botón para que no sea tan masivo */
.btn-primary.btn-block {
    height: 50px !important;
    width: auto !important;
    min-width: 200px;
    padding: 0 40px;
    display: inline-block;
    border-radius: 6px !important;
}

/* Responsive: En móviles vuelve a 1 columna */
@media (max-width: 768px) {
    .col-md-6 {
        width: 100%;
    }

    .register-form-container {
        padding: 30px 20px;
    }

    .btn-primary.btn-block {
        width: 100% !important;
        /* En móvil sí full width */
    }
}