body {
  font-family: 'Forum', serif;
  background: #f4f4f4;
  padding-top: 110px; /* solo para el header */
  margin: 0;
  color: #000;
}



header {
    width: 100%;
    height: 70px; 
    top: 0;
    background-color: rgb(0, 0, 0);
    position: fixed;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: space-between;  /* Distribuye logo, menú e iconos equilibradamente */
    padding: 0 2%; 
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Forum', cursive;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo img {
    height: 4rem;  /* Aumentado de 3.125rem a 4rem (más grande) */
    transition: transform 0.5s;
    cursor: pointer;
}
.logo h1 {
    font-size: 1.5rem;  /* Aumentado de 1.25rem a 1.5rem (más grande, proporcional) */
    color: #ffffff;
    margin: 0;
    margin-left: 0.625rem; 
    white-space: nowrap; 
    min-width: 0;
}


/* Menu */
.navar {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    flex-grow: 1;  /* Toma el espacio disponible para centrarse */
    justify-content: center;  /* Centra los enlaces del menú */
}

.navar li {
    margin: 0 1.25rem; 
}

.navar a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(255, 255, 255);
    font-size: 0.9375rem; 
    transition: color 300ms;
    font-weight: bold;
    white-space: nowrap; 
}

.navar a:hover {
      filter: drop-shadow(0 0 5px #ffc400);  /* Sombra roja */
}

/* Botones */
.botones {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.icono {
    width: 24px;  
    height: 24px; 
    object-fit: contain;  
    transition: filter 0.3s;  
}
.icono:hover {
      filter: drop-shadow(0 0 5px #ffc400);  /* Sombra roja */
  }

@media (max-width: 992px) {
    .navar li {
        margin: 0 0.8rem;
    }
    .navar a {
        font-size: 0.85rem; /* ✅ corregido */
    }
    .logo h1 {
        font-size: 1.1rem;
    }
}


/* Para pantallas pequeñas */
@media (max-width: 768px) {
    header {
        height: 60px;
        padding: 0 1rem;
    }

    .logo img {
        height: 2.5rem; 
    }
    .logo h1 {
        font-size: 1rem; 
        margin-left: 0.3rem;
    }

    .navar {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgb(0, 0, 0); /* Fondo negro para que combine con el header */
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 10px 0;
        text-align: center;
        z-index: 3;
    }

    .navar.active {
        display: flex; 
    }

    .navar li {
        margin: 0.625rem 0; 
        width: 100%; /* Ocupa todo el ancho para el hover */
    }

    .navar a {
        font-size: 0.875rem; 
        color: rgb(255, 255, 255); /* Texto blanco para contraste */
        display: block; /* Hace que el enlace ocupe todo el li para mejor hover */
        padding: 0.5rem 0; /* Espacio para el hover */
    }

    /* Hover para enlaces (mantiene el original) */
    .navar a:hover {
        filter: drop-shadow(0 0 5px #ffc400);  /* Sombra dorada */
    }

    /* Hover adicional para ítems del menú desplegable (fondo sutil) */
    .navar li:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Fondo gris claro al pasar el cursor */
    }

    .botones {
        display: none; 
    }

    .menu-toggle {
        display: block; 
        cursor: pointer;
        font-size: 1.875rem; 
        color: #ffffff; /* Color blanco para el botón de tres líneas */
        z-index: 5;
        transition: color 0.3s; /* Transición suave para hover */
    }

    .menu-toggle:hover {
        color: #ffc400; /* Color dorado al pasar el cursor sobre el botón de tres líneas */
    }
}


@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Título principal */
h2 {
  text-align: center;
  font-size: 32px;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

/* Card principal */
.card {
  background: #fff;
  max-width: 520px;
  margin: 0 auto 30px;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Header de la card */
.header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.header-card h3 {
  font-size: 22px;
  letter-spacing: 1px;
}
.card h3 {
  margin-bottom: 10px;
}


/* Labels */
label {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #444;
}

/* Inputs */
input {
  width: 90%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Forum', serif;
  font-size: 16px;
  transition: border .3s, box-shadow .3s;
}

input:focus {
  outline: none;
  border-color: #C9A24D;
  box-shadow: 0 0 0 2px rgba(201, 162, 77, 0.25);
}

/* Botón guardar */
button {
  margin-top: 25px;
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .3s, transform .2s;
}

button:hover {
  background: #C9A24D;
  color: #000;
  transform: translateY(-2px);
}

/* Botón cerrar sesión */
.logout-btn {
  background: transparent;
  border: 1px solid #C9A24D;
  color: #C9A24D;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .3s;
  width: auto;
  margin-top: 10px;
}

.logout-btn:hover {
  background: #C9A24D;
  color: #000;
}

/* Sección pedidos (placeholder) */
.pedidos {
  max-width: 520px;
  margin: 0 auto;
  padding: 25px;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed #C9A24D;
  text-align: center;
  color: #777;
}

.pedidos h3 {
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.pedido-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.2s ease;
}

.pedido-card:hover {
  transform: translateY(-3px);
}

.pedido-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pedido-ref {
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
  word-break: break-all;
}

.pedido-estado {
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.pedido-body {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.pedido-item {
  flex: 1;
  min-width: 120px;
  font-size: 0.85rem;
  color: #777;
}

.pedido-item strong {
  display: block;
  font-size: 1rem;
  color: #222;
  margin-top: 3px;
}
/* =========================================
   CELULARES MUY PEQUEÑOS
========================================= */

@media (max-width: 380px) {

    .logo h1 {
        font-size: 0.85rem;
    }

    .logo img {
        height: 2.2rem;
    }

    .card {
        padding: 15px 12px;
    }

    .pedido-body {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 23px;
    }
}

/* =========================================
   AJUSTES PARA DISPOSITIVOS MÓVILES
========================================= */

@media (max-width: 768px) {

    /* Espacio debajo del encabezado */
    body {
        padding-top: 80px;
        overflow-x: hidden;
    }

    /* Encabezado */
    header {
        height: 60px;
        padding: 0 12px;
        justify-content: space-between;
    }

    .logo {
        min-width: 0;
    }

    .logo img {
        height: 2.5rem;
    }

    .logo h1 {
        font-size: 1rem;
        margin-left: 5px;
    }

    .menu-toggle {
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: white;
        z-index: 5;
    }

    /* Menú desplegable */
    .navar {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        background: #000;
        padding: 10px 0;
        margin: 0;
        box-sizing: border-box;
        z-index: 10;
    }

    .navar.active {
        display: flex;
    }

    .navar li {
        width: 100%;
        margin: 8px 0;
        text-align: center;
    }

    .navar a {
        display: block;
        padding: 8px 0;
        font-size: 14px;
    }

    /* Iconos dentro del menú móvil */
    .navar .iconos-movil {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 10px;
        padding: 15px 0;
        border-top: 1px solid #444;
        box-sizing: border-box;
    }

    .navar .iconos-movil .botones {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 30px;
        width: 100%;
        margin: 0;
    }

    .navar .iconos-movil .icono {
        width: 28px;
        height: 28px;
    }

    /* Ocultar los iconos de su posición original */
    header > .botones {
        display: none;
    }

    /* Título Mi Cuenta */
    h2 {
        font-size: 26px;
        letter-spacing: 1px;
        margin: 15px 10px 25px;
    }

    /* Tarjetas */
    .card {
        width: calc(100% - 30px);
        max-width: 520px;
        margin: 0 auto 25px;
        padding: 20px 15px;
        box-sizing: border-box;
        border-radius: 12px;
    }

    .card h3 {
        font-size: 20px;
        text-align: center;
    }

    /* Formulario */
    label {
        font-size: 13px;
        margin-top: 14px;
    }

    input {
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
        font-size: 16px;
    }

    /* Botones */
    button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    .logout-btn {
        width: auto;
        display: block;
        margin: 10px auto 15px;
    }

    /* Pedidos */
    .pedido-card {
        padding: 14px;
        overflow: hidden;
    }

    .pedido-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pedido-ref {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .pedido-estado {
        font-size: 11px;
    }

    .pedido-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px 10px;
    }

    .pedido-item {
        min-width: 0;
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .pedido-item strong {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    /* Toast */
    .toast {
        max-width: calc(100% - 30px);
        box-sizing: border-box;
    }
}

/* =========================================
   CELULARES MUY PEQUEÑOS
========================================= */

@media (max-width: 380px) {

    .logo h1 {
        font-size: 0.85rem;
    }

    .logo img {
        height: 2.2rem;
    }

    .card {
        padding: 15px 12px;
    }

    .pedido-body {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 23px;
    }
}

/* Menú hamburguesa oculto en escritorio */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* =====================================
   MENÚ DE NAVEGACIÓN
===================================== */

.menu-toggle {
    display: none;
}

.navar {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.navar li {
    margin: 0 1.25rem;
}

.navar a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    font-size: 0.9375rem;
    font-weight: bold;
    white-space: nowrap;
}

.navar a:hover {
    filter: drop-shadow(0 0 5px #ffc400);
}

/* Iconos móviles ocultos en computador */
.navar .iconos-movil {
    display: none;
}

/* =====================================
   MENÚ PARA CELULARES
===================================== */

@media (max-width: 768px) {

    header {
        height: 60px;
        padding: 0 12px;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .menu-toggle {
        display: block;
        color: white;
        font-size: 30px;
        cursor: pointer;
        z-index: 1002;
        line-height: 1;
    }

    .menu-toggle:hover {
        color: #ffc400;
    }

    /* Menú desplegable */
    .navar {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        background: #000;
        padding: 10px 0 20px;
        margin: 0;
        box-sizing: border-box;
        z-index: 1001;
    }

    .navar.active {
        display: flex;
    }

    .navar li {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .navar li a {
        display: block;
        padding: 12px 0;
        font-size: 14px;
        color: white;
    }

    .navar li:hover {
        background: rgba(255,255,255,0.10);
    }

    /* Iconos dentro del menú */
    .navar .iconos-movil {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        border-top: 1px solid #444;
        margin-top: 10px;
        padding: 15px 0;
        box-sizing: border-box;
    }

    .navar .iconos-movil a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }

    .navar .iconos-movil .icono {
        width: 28px;
        height: 28px;
    }

    /* Ocultar iconos de escritorio */
    header > .botones {
        display: none;
    }

    body {
        padding-top: 80px;
        overflow-x: hidden;
    }
}

/* =====================================
   ESCRITORIO
===================================== */

@media (min-width: 769px) {

    .menu-toggle {
        display: none;
    }

    .navar {
        display: flex;
    }

    .navar .iconos-movil {
        display: none;
    }

    header > .botones {
        display: flex;
    }
}
/* =========================================
   VENTANA FLOTANTE (TOAST)
========================================= */

#toast {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;

    transform: translateX(-50%) translateY(20px);

    width: max-content;
    max-width: calc(100% - 40px);

    padding: 15px 25px;
    box-sizing: border-box;

    background: #000;
    color: #fff;

    border: 1px solid #C9A24D;
    border-radius: 30px;

    font-family: 'Forum', serif;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

    visibility: hidden;
    opacity: 0;

    z-index: 99999;

    transition: opacity 0.4s ease,
                visibility 0.4s ease,
                transform 0.4s ease;

    pointer-events: none;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =====================================
   MODALES MENSAJES FRANK 95
===================================== */

.modal-datos {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-datos.active {
    opacity: 1;
    visibility: visible;
}

.modal-datos-contenido {
    background: #fff;
    width: 100%;
    max-width: 390px;
    padding: 35px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    font-family: 'Forum', serif;
}

.modal-datos.active .modal-datos-contenido {
    transform: translateY(0) scale(1);
}

.modal-datos-icono {
    width: 75px;
    height: 75px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #f7f0df;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b08d35;
    font-size: 38px;
}

.modal-datos-contenido h3 {
    font-size: 27px;
    color: #171717;
    margin: 0 0 12px;
}

.modal-datos-contenido p {
    color: #666;
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.modal-datos-contenido button {
    background: #b08d35;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 7px;
    font-family: 'Forum', serif;
    font-size: 17px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-datos-contenido button:hover {
    background: #8f7026;
}

.modal-datos-contenido button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-botones {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-datos-contenido button.btn-cancelar {
    background: #ededed;
    color: #333;
}

.modal-datos-contenido button.btn-cancelar:hover {
    background: #d8d8d8;
}

/* RESPONSIVE */

@media (max-width: 480px) {

    .modal-datos-contenido {
        max-width: 340px;
        padding: 30px 20px;
    }

    .modal-datos-contenido h3 {
        font-size: 24px;
    }

    .modal-datos-contenido p {
        font-size: 16px;
    }

    .modal-botones {
        gap: 8px;
    }

}

/* ==========================================
   MODALES FLOTANTES - FRANK 95
========================================== */

.modal-datos {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;

    background: rgba(0, 0, 0, 0.70) !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    z-index: 999999 !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transition: opacity 0.3s ease, visibility 0.3s ease !important;

    padding: 20px !important;
    box-sizing: border-box !important;
}

.modal-datos.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.modal-datos-contenido {
    position: relative !important;

    width: 100% !important;
    max-width: 390px !important;

    background: #ffffff !important;

    padding: 35px 28px !important;

    border-radius: 16px !important;

    text-align: center !important;

    box-shadow: 0 12px 40px rgba(0,0,0,0.30) !important;

    font-family: 'Forum', serif !important;

    transform: translateY(20px) scale(0.95) !important;

    transition: transform 0.3s ease !important;

    box-sizing: border-box !important;
}

.modal-datos.active .modal-datos-contenido {
    transform: translateY(0) scale(1) !important;
}

.modal-datos-icono {
    width: 75px !important;
    height: 75px !important;

    margin: 0 auto 18px !important;

    border-radius: 50% !important;

    background: #f7f0df !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    color: #b08d35 !important;

    font-size: 38px !important;
}

.modal-datos-contenido h3 {
    font-family: 'Forum', serif !important;
    font-size: 27px !important;
    color: #171717 !important;
    margin: 0 0 12px !important;
}

.modal-datos-contenido p {
    font-family: 'Forum', serif !important;
    font-size: 17px !important;
    color: #666666 !important;
    line-height: 1.5 !important;
    margin: 0 0 25px !important;
}

.modal-datos-contenido button {
    background: #b08d35 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 7px !important;

    padding: 12px 25px !important;

    font-family: 'Forum', serif !important;
    font-size: 17px !important;

    cursor: pointer !important;
    width: auto !important;

    transition: 0.3s ease !important;
}

.modal-datos-contenido button:hover {
    background: #8f7026 !important;
}

.modal-datos-contenido button.btn-cancelar {
    background: #eeeeee !important;
    color: #333333 !important;
}

.modal-datos-contenido button.btn-cancelar:hover {
    background: #d8d8d8 !important;
}

.modal-botones {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

@media (max-width: 480px) {

    .modal-datos-contenido {
        max-width: 340px !important;
        padding: 30px 20px !important;
    }

    .modal-datos-contenido h3 {
        font-size: 24px !important;
    }

    .modal-botones {
        gap: 8px !important;
    }

}

/* ==========================================
   MODALES RESPONSIVE PARA CELULARES
========================================== */

@media screen and (max-width: 768px) {

    .modal-datos {
        position: fixed !important;
        inset: 0 !important;

        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100vh !important;

        padding: 15px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        overflow-y: auto !important;

        box-sizing: border-box !important;
        z-index: 999999 !important;
    }

    .modal-datos-contenido {
        width: 100% !important;
        max-width: 340px !important;

        min-width: 0 !important;
        max-height: calc(100dvh - 40px) !important;

        padding: 28px 20px !important;
        margin: auto !important;

        border-radius: 15px !important;

        box-sizing: border-box !important;

        overflow-y: auto !important;
    }

    .modal-datos-icono {
        width: 65px !important;
        height: 65px !important;

        font-size: 32px !important;

        margin: 0 auto 15px !important;
    }

    .modal-datos-contenido h3 {
        font-size: 24px !important;
        margin-bottom: 10px !important;
    }

    .modal-datos-contenido p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-bottom: 22px !important;
    }

    .modal-datos-contenido button {
        width: auto !important;
        min-width: 110px !important;
        max-width: 100% !important;

        padding: 11px 18px !important;

        font-size: 16px !important;
        border-radius: 7px !important;
    }

    .modal-botones {
        display: flex !important;
        flex-direction: row !important;

        justify-content: center !important;
        align-items: center !important;

        flex-wrap: wrap !important;
        gap: 10px !important;

        width: 100% !important;
    }

}

@media screen and (max-width: 380px) {

    .modal-datos {
        padding: 12px !important;
    }

    .modal-datos-contenido {
        max-width: 310px !important;
        padding: 25px 15px !important;
    }

    .modal-datos-contenido h3 {
        font-size: 22px !important;
    }

    .modal-botones {
        gap: 8px !important;
    }

    .modal-datos-contenido button {
        padding: 10px 13px !important;
        font-size: 15px !important;
    }

}

