/* ===================================== */
/* SECCIÓN: ESTILOS GENERALES DEL SITIO */
/* Aplica a toda la página */
/* ===================================== */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: oklch(89.56% 0.01198 203.914);
    color: hwb(0 7% 93%);
}
/* ===================================== */
/* SECCIÓN: MENÚ SUPERIOR */
/* ===================================== */
/* ============================= */
/* MENÚ */
/* ============================= */
.menu {
    background-color: hsl(207, 4%, 44%); /* gris un poco más oscuro */
    padding: 6px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ============================= */
/* LOGO DENTRO DEL MENÚ */
/* ============================= */
.menu-logo {
    height: 44px; /* tamaño equilibrado */
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.15); /* fondo sutil */
    border-radius: 6px;
    filter: brightness(1.35) contrast(1.25)
            drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}


.menu-contenedor {
    /* max-width: 1000px;  ← COMENTA O ELIMINA ESTA LÍNEA */
    margin: auto;
    padding: 0 12px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}





.menu-opciones {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    gap: 40px;   /* ← AQUÍ separas más las opciones */
}



/* ===================================== */
/* SEPARACIÓN VISUAL ENTRE OPCIONES */
/* ===================================== */
.menu-opciones li {
    position: relative;
}

/* Línea divisoria excepto la última */
.menu-opciones li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.4);
}


.menu-opciones li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
}


/* ===================================== */
/* SECCIÓN: CONTENEDOR PRINCIPAL */
/* Centra el contenido y limita el ancho */
/* ===================================== */
.contenedor {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

/* ===================================== */
/* SECCIÓN: ENCABEZADO */
/* Título principal */
/* ===================================== */
header {
    text-align: center;
    margin-bottom: 30px;
}

/* ===================================== */
/* SECCIÓN: LOGO */
/* Controla tamaño y alineación */
/* ===================================== */
.logo {
    width: 340px;        /* Tamaño en computador */
    max-width: 80%;
    margin-bottom:02px;
}


header h1 {
    margin-bottom: 10px;
    color: #1f2937;
}

header p {
    font-size: 16px;
    color: #555;
}

/* ===================================== */
/* SECCIÓN: TARJETAS DE OPCIÓN */
/* Tiendas / Empresas / Personas */
/* ===================================== */
.opciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ===================================== */
/* SECCIÓN: TARJETAS */
/* Sombra y profundidad */
/* ===================================== */
.tarjeta {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;

    /* Sombra principal */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);

    /* Transición suave */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.tarjeta h3 {
    margin-top: 0;
    color: #111827;
}

.tarjeta p {
    font-size: 14px;
    color: #555;
}

/* ===================================== */
/* SECCIÓN: BOTONES */
/* ===================================== */
.tarjeta button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background-color: #2563eb;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

.tarjeta button:hover {
    background-color: #1d4ed8;
}

/* ===================================== */
/* SECCIÓN: PIE DE PÁGINA */
/* ===================================== */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    color: #777;
}

/* ===================================== */
/* SECCIÓN: DISEÑO RESPONSIVE */
/* Ajustes para pantallas pequeñas */
/* ===================================== */
@media (max-width: 600px) {
    header h1 {
        font-size: 24px;
    }

    .tarjeta {
        padding: 15px;
    }
}
@media (max-width: 600px) {
    .logo {
        width: 110px;    /* Más pequeño en celular */
    }
}
/* ===================================== */
/* LOGIN EMPRESAS - LAYOUT LATERAL */
/* ===================================== */
.contenedor-login {
    min-height: calc(100vh - 60px); /* alto pantalla menos menú */
    display: flex;
    justify-content: flex-end;      /* empuja a la derecha */
   align-items: stretch;
    padding: 20px;
}

/* Tarjeta del login */
.tarjeta-login {
    width: 50%;              /* mitad derecha */
    max-width: 520px;        /* no exagerar en pantallas grandes */
    min-width: 320px;
}
@media (max-width: 768px) {
    .contenedor-login {
        justify-content: center;
    }

    .tarjeta-login {
        width: 100%;
        max-width: 100%;
    }
}
/* ===================================== */
/* INPUTS LOGIN EMPRESAS */
/* ===================================== */
.input-login {
    width: 85%;                 /* ← más pequeño */
    padding: 10px 12px;
    margin-top: 6px;

    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;

    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Centrar visualmente los inputs */
.tarjeta-login form {
    display: flex;
    flex-direction: column;
   align-items: stretch;
}

/* Efecto focus profesional */
.input-login:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
/* ===================================== */
/* GRUPOS DE FORMULARIO LOGIN */
/* ===================================== */
.form-grupo {
    margin-bottom: 18px;
    width: 100%;
    text-align: left;
}

/* Inputs centrados pero contenidos */
.input-login {
    width: 85%;
    margin-top: 6px;
}

/* ===================================== */
/* MODAL REGISTRO */
/* ===================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.45);
    
    align-items: center;
    justify-content: center;
}

/* Caja principal */
.modal-contenido {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Encabezado */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: #1f2937;
}

.modal-cerrar {
    font-size: 26px;
    cursor: pointer;
    color: #6b7280;
}

.modal-cerrar:hover {
    color: #111827;
}

/* Inputs del modal */
.modal input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

/* Botón */
.btn-principal {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.btn-principal:hover {
    background-color: #1d4ed8;
}

/* ============================= */
/* BOTÓN DENTRO DE TARJETA */
/* ============================= */

.tarjeta {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 40px;   /* MÁS GRANDE */
    box-shadow:
        0 12px 30px rgba(0,0,0,0.12),
        0 6px 16px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}


.tarjeta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.tarjeta-accion {
    margin-top: 20px;
}

.btn-tarjeta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(37,99,235,0.35);
    transition: all .2s ease;
}

.btn-tarjeta:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    box-shadow: 0 10px 24px rgba(37,99,235,0.45);
    transform: translateY(-1px);
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================= */
/* FONDO SOLO PARA INDEX Y LOGIN */
/* ============================= */
.fondo-marca::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/imagen presentacion empresa-login.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.12;
    z-index: -1;
}

/* ============================= */
/* FORMULARIOS PROFESIONALES */
/* ============================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px 16px;
}

/* Campos */
.form-grupo {
    display: flex;
    flex-direction: column;
}

.form-grupo input {
    height: 25px;
    padding: 7px 12px;
    font-size: 14px;
    border-radius: 8px;                 /* bordes suaves */
    border: 1px solid #d1d5db;          /* gris profesional */
    background-color: #f9fafb;          /* fondo gris claro */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


/* Títulos de sección */
.tarjeta h3 {
    grid-column: span 12;
    margin: 28px 0 10px;
    font-size: 16px;
}

/* Anchos comunes */
.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

/* Botón */
.btn-principal {
    grid-column: span 12;
    height: 38px;
    font-size: 14px;
}


/* ============================= */
/* LAYOUT FORM + PANEL DERECHO */
/* ============================= */
.layout-doble {
    display: grid;
    grid-template-columns: 1fr 170px; /* panel más separado */
    gap: 40px;                        /* más aire entre tarjeta y panel */
    align-items: start;
}


/* Tarjeta formulario */
.formulario-tercero {
    padding: 32px;
}

/* Panel derecho */
.panel-obligaciones {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    position: sticky;
    top: 90px;
}

.panel-obligaciones h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #374151;
}

.lista-obligaciones li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}
/************************************************************
 * ENCABEZADO EMPRESA - DASHBOARD
 ************************************************************/
.titulo-empresa {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937; /* gris corporativo */
    margin-bottom: 5px;
    text-transform: capitalize;
}

.subtitulo-empresa {
    font-size: 16px;
    color: #6b7280; /* gris suave */
    letter-spacing: 0.5px;
}

/************************************************
 * ENCABEZADO DASHBOARD - ESTILO CORPORATIVO
 ************************************************/
.encabezado-dashboard {
    text-align: center;
    margin-bottom: 40px;
}

.mensaje-bienvenida {
    font-size: 22px;
    font-weight: 400;
    color: #374151; /* gris corporativo */
    margin-bottom: 6px;
}

.nombre-empresa {
    font-size: 34px;
    font-weight: 600;
    color: #111827; /* casi negro */
    letter-spacing: 0.6px;
    text-transform: capitalize;
}
/* ===================================== */
/* SELECT CONTABLE (CUENTA POR PAGAR) */
/* Igualar visualmente a los inputs */
/* ===================================== */
.form-grupo select {
    height: 30px;
    padding: 7px 12px;
    font-size: 14px;

    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;

    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}


/* =====================================
   DROPDOWN OPCIONES - CORRECCIÓN FINAL
   ===================================== */

/* contenedor del dropdown */
.menu-opciones .dropdown {
    position: relative;
}

/* menú desplegable (OCULTO POR DEFECTO) */
.menu-opciones .dropdown-menu {
    display: none;
    position: absolute;
    top: 34px;
    right: 0;

    min-width: 220px;
    background-color: #ffffff;

    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);

    padding: 6px 0;
    margin: 0;

    list-style: none;
    z-index: 9999;
}

/* items en vertical */
.menu-opciones .dropdown-menu li {
    display: block;
}

/* enlaces */
.menu-opciones .dropdown-menu a {
    display: block;
    padding: 10px 16px;

    font-size: 14px;
    color: #1f2937;
    text-decoration: none;
    white-space: nowrap;
}

/* hover */
.menu-opciones .dropdown-menu a:hover {
    background-color: #f3f4f6;
}

/* visible SOLO cuando JS agrega la clase */
.menu-opciones .dropdown-menu.activo {
    display: block;
}
