/* Botón eliminar para pedidos en admin */
.btn-eliminar {
  background-color: var(--naranja-principal);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transicion), transform var(--transicion);
  margin-left: 6px;
  box-shadow: 0 2px 8px rgba(240,90,55,0.08);
}

.btn-eliminar:hover {
  background-color: var(--naranja-oscuro);
  transform: scale(1.07);
}
:root {
  --verde-principal: #12a150;
  --verde-oscuro: #0d7f3f;
  --naranja-principal: #f05a37;
  --naranja-oscuro: #d94829;
  --amarillo-principal: #f4c430;
  --gris-claro: #f7f2e9;
  --gris-medio: #e7e2d6;
  --gris-oscuro: #3b3b3b;
  --blanco: #ffffff;
  --texto-oscuro: #2b2b2b;
  --radio: 18px;
  --sombra: 0 4px 18px rgba(0, 0, 0, 0.10);
  --transicion: 220ms ease;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, var(--gris-claro), #ffffff);
  color: var(--texto-oscuro);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.banner-titulo h1,
.recetas-inicio h2,
.catalogo-encabezado h1,
.formulario-pedido h2,
.resumen-pedido h2,
.contacto-hero-formulario h1,
.contacto-dato-card h2,
.mapa-encabezado-final h2,
.login-card h2,
.carrito-resumen h2,
.proceso-encabezado h2,
.pedido-cliente-head h2,
.mis-pedidos-vacio h2 {
  font-family: "Nunito Sans", "Poppins", sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
}

main {
  flex: 1;
  width: 100%;
}

/* HEADER */
.header-superior {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: auto;
  background-color: var(--blanco);
  border-bottom: 2px solid rgba(18, 161, 80, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 85px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  transition: transform var(--transicion);
}

.logo-area:hover .logo-img {
  transform: scale(1.05);
}

/* SIDEBAR DESLIZABLE */
.sidebar {
  position: fixed;
  left: -100%;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--blanco);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  transition: left 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  overflow-y: auto;
  padding-top: 20px;
}

.sidebar.abierto {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 20px;
  border-bottom: 2px solid rgba(18, 161, 80, 0.12);
}

.sidebar-title {
  color: var(--verde-principal);
  font-weight: 700;
  font-size: 18px;
}

.close-sidebar {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: var(--verde-principal);
  transition: transform var(--transicion);
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-sidebar:hover {
  transform: rotate(90deg);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
}

.sidebar-nav a {
  text-decoration: none;
  color: var(--verde-principal);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  transition: all var(--transicion);
  border-left: 4px solid transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-nav a:hover {
  background: rgba(18, 161, 80, 0.08);
  color: var(--naranja-principal);
  border-left-color: var(--naranja-principal);
  padding-left: 28px;
}

.sidebar-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  color: inherit;
  font-size: 16px;
  line-height: 1;
}

.separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 161, 80, 0.2), transparent);
  margin: 12px 20px;
}

.admin-section a {
  color: var(--verde-oscuro) !important;
  font-weight: 700 !important;
  background: rgba(240, 90, 55, 0.05) !important;
}

.admin-section a:hover {
  background: rgba(240, 90, 55, 0.15) !important;
  color: var(--naranja-principal) !important;
  border-left-color: var(--naranja-principal) !important;
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 350ms ease;
  pointer-events: none;
  z-index: 998;
}

.overlay.visible {
  background: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

/* NAVBAR HORIZONTAL PARA PC */
.navbar-desktop {
  display: none;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--verde-principal);
  font-weight: 600;
  font-size: 17px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all var(--transicion);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--naranja-principal);
  transition: all var(--transicion);
  border-radius: 2px;
  transform: translateX(-50%);
}

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

.nav-link:hover::after {
  width: 80%;
}

.nav-admin {
  color: white !important;
  font-weight: 700;
  font-size: 17px !important;
  background: linear-gradient(135deg, var(--naranja-principal), #d94829) !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(240, 90, 55, 0.3) !important;
}

.nav-admin::after {
  display: none !important;
}

.nav-admin:hover {
  background: linear-gradient(135deg, #d94829, var(--naranja-principal)) !important;
  box-shadow: 0 8px 20px rgba(240, 90, 55, 0.4) !important;
  transform: translateY(-3px) !important;
  color: white !important;
}

.nav-login {
  color: white !important;
  font-weight: 700;
  font-size: 17px !important;
  background: linear-gradient(135deg, var(--verde-principal), #0d7f3f) !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(18, 161, 80, 0.3) !important;
}

.nav-login::after {
  display: none !important;
}

.nav-login:hover {
  background: linear-gradient(135deg, #0d7f3f, var(--verde-principal)) !important;
  box-shadow: 0 8px 20px rgba(18, 161, 80, 0.4) !important;
  transform: translateY(-3px) !important;
  color: white !important;
}

.user-nav-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.user-nav-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.user-nav-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 12px;
  height: 7px;
  border: 2px solid currentColor;
  border-top: 0;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.user-nav-icon-mobile {
  width: 18px;
  height: 18px;
  margin-right: 2px;
}

.user-nav-icon-mobile::before {
  width: 8px;
  height: 8px;
}

.user-nav-icon-mobile::after {
  width: 14px;
  height: 8px;
}

.menu-toggle {
  background: linear-gradient(135deg, rgba(18, 161, 80, 0.1), rgba(240, 90, 55, 0.08));
  border: 2px solid var(--verde-principal);
  cursor: pointer;
  width: 48px;
  height: 48px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all var(--transicion);
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: linear-gradient(135deg, rgba(18, 161, 80, 0.2), rgba(240, 90, 55, 0.16));
  border-color: var(--naranja-principal);
  transform: scale(1.08);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  margin: 5px auto;
  background: var(--verde-principal);
  border-radius: 3px;
  transition: all var(--transicion), background 220ms ease;
}

.menu-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(18, 161, 80, 0.25), rgba(240, 90, 55, 0.2));
  border-color: var(--naranja-principal);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background: var(--naranja-principal);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background: var(--naranja-principal);
}

.acciones-derecha {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
}

.link-carrito-header {
  text-decoration: none;
  color: var(--verde-principal);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.link-carrito-header:hover {
  color: var(--naranja-principal);
}

.contenido-principal {
  padding-top: 20px;
}

/* INICIO */
.hero-banner {
  max-width: 1900px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  background-color: var(--blanco);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.hero-banner-imagen {
  height: 620px;
  overflow: hidden;
  background-color: #e9e9e9;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-banner-texto {
  padding: 70px 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
}

.hero-banner-texto h1 {
  margin: 0 0 25px;
  font-size: 70px;
  line-height: 0.95;
  color: var(--verde-oscuro);
  font-weight: 800;
}

.hero-banner-texto p {
  font-size: 22px;
  line-height: 1.35;
  color: #1f5a39;
  margin-bottom: 30px;
  max-width: 760px;
}

.hero-botones {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* BOTONES */
.btn-principal,
.btn-secundario {
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: bold;
  display: inline-block;
  transition: transform var(--transicion), background var(--transicion), box-shadow var(--transicion);
}

.btn-principal {
  background-color: var(--verde-principal);
  color: var(--blanco);
}

.btn-principal:hover {
  background-color: var(--verde-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.btn-secundario {
  background-color: var(--amarillo-principal);
  color: #222222;
}

.btn-secundario:hover {
  background-color: #e5b91f;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.boton {
  display: inline-block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  background-color: var(--naranja-principal);
  color: var(--blanco);
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: transform var(--transicion), background var(--transicion), box-shadow var(--transicion);
}

.boton:hover {
  background-color: var(--naranja-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.boton-secundario {
  background-color: var(--naranja-principal);
  transition: transform var(--transicion), background var(--transicion), box-shadow var(--transicion);
}

.boton-secundario:hover {
  background-color: var(--naranja-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.boton-full {
  grid-column: 1 / -1;
  width: 100%;
  padding: 14px 18px;
  font-size: 18px;
  border-radius: 14px;
}

/* SECCIONES GENERALES */
.publicidad,
.recetas-inicio {
  max-width: 1200px;
  margin: 35px auto;
  padding: 0 20px;
}

.recetas-inicio h2 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--verde-principal);
}

.recetas-inicio > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 25px;
  color: #555555;
}

.recetas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.receta-card {
  background-color: var(--blanco);
  border-radius: 8px;
  box-shadow: var(--sombra);
  overflow: hidden;
  border-top: 6px solid var(--verde-principal);
  cursor: pointer;
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.receta-card:hover,
.receta-card:focus {
  outline: none;
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.receta-card:focus {
  box-shadow: 0 0 0 4px rgba(18, 161, 80, 0.22), 0 12px 28px rgba(0, 0, 0, 0.14);
}

.receta-card:nth-child(2) {
  border-top-color: var(--naranja-principal);
}

.receta-card:nth-child(3) {
  border-top-color: var(--amarillo-principal);
}

.receta-img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #ffffff;
  padding: 18px;
}

.receta-contenido {
  padding: 20px;
}

.receta-etiqueta {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f4f8e8;
  color: var(--verde-oscuro);
  font-size: 0.86rem;
  font-weight: 700;
}

.receta-card h3 {
  margin: 0 0 10px;
  color: var(--naranja-principal);
}

.receta-card p {
  margin: 0;
  color: #444444;
}

.modal-abierto {
  overflow: hidden;
}

.receta-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.receta-modal.visible {
  display: flex;
}

.receta-modal-fondo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.receta-modal-contenido {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(720px, 90vh);
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: 28px;
  overflow: auto;
  background: var(--blanco);
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
}

.receta-modal-cerrar {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--naranja-principal);
  color: var(--blanco);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.receta-modal-imagen {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #eeeeee;
  border-radius: 8px;
  padding: 18px;
}

.receta-modal-imagen img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.receta-modal-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.receta-modal-info h2 {
  margin: 0 0 14px;
  color: var(--verde-principal);
}

.receta-modal-info h3 {
  margin: 8px 0 12px;
  color: var(--naranja-principal);
}

.receta-modal-info ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: #333333;
}

.receta-modal-info li {
  margin-bottom: 10px;
}

.receta-modal-info .boton {
  margin-top: auto;
}

@media (max-width: 720px) {
  .receta-modal {
    padding: 14px;
  }

  .receta-modal-contenido {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .receta-modal-imagen {
    min-height: 220px;
  }
}

/* TITULOS CON FONDO */
.banner-titulo {
  max-width: 1200px;
  margin: 25px auto 20px;
  padding: 40px 30px;
  border-radius: 20px;
  background-color: var(--blanco);
  background-image: url("/static/img/logo-letras.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 85%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.banner-titulo h1 {
  margin: 0;
  font-size: 56px;
  color: var(--verde-principal);
  line-height: 1.05;
  max-width: 560px;
}

.seccion-titulo {
  display: none;
}

/* PORTADA GRANDE */
.hero-portada-logo {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 40px;
  background-image: url("/static/img/logo-letras.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 120, 55, 0.88) 0%,
    rgba(8, 120, 55, 0.72) 35%,
    rgba(8, 120, 55, 0.46) 65%,
    rgba(8, 120, 55, 0.22) 100%
  );
}

.hero-contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 40px 30px;
  text-align: center;
}

.hero-ruta {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-titulo {
  margin: 0;
  color: #ffffff;
  font-size: 96px;
  line-height: 0.95;
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hero-decoracion {
  width: 180px;
  height: 22px;
  margin: 26px auto 0;
  border-bottom: 4px solid #f4c430;
  border-radius: 0 0 50px 50px;
  position: relative;
}

.hero-decoracion::before,
.hero-decoracion::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 55px;
  height: 18px;
  border-bottom: 4px solid #f4c430;
  border-radius: 0 0 50px 50px;
}

.hero-decoracion::before {
  left: -42px;
}

.hero-decoracion::after {
  right: -42px;
}

/* CATALOGO */
.catalogo-encabezado {
  max-width: 1200px;
  margin: 30px auto 10px;
  padding: 0 20px;
  text-align: center;
}

.catalogo-encabezado h1 {
  margin: 0 0 8px;
  color: var(--verde-principal);
  font-size: 42px;
}

.catalogo-encabezado p {
  max-width: 720px;
  margin: 0 auto;
  color: #555555;
}

.catalogo-grid {
  max-width: 1200px;
  margin: 30px auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tarjeta-producto {
  background-color: var(--blanco);
  border-radius: 8px;
  padding: 28px 24px 24px;
  box-shadow: var(--sombra);
  text-align: center;
  border-top: 5px solid var(--verde-principal);
  cursor: pointer;
  transition: transform var(--transicion), box-shadow var(--transicion);
  will-change: transform;
}

.tarjeta-producto:hover,
.tarjeta-producto:focus {
  outline: none;
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.tarjeta-producto:focus {
  box-shadow: 0 0 0 4px rgba(18, 161, 80, 0.2), 0 12px 32px rgba(0, 0, 0, 0.14);
}

.tarjeta-producto:nth-child(2),
.tarjeta-producto:nth-child(5) {
  border-top-color: var(--naranja-principal);
}

.tarjeta-producto:nth-child(3),
.tarjeta-producto:nth-child(6) {
  border-top-color: var(--amarillo-principal);
}

.tarjeta-producto h2 {
  min-height: 64px;
  margin: 16px 0 12px;
  font-family: "Nunito Sans", "Poppins", sans-serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 900;
  color: #223d4a;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}

.tarjeta-producto p {
  margin: 8px 0;
  line-height: 1.4;
}

.descripcion-corta-producto {
  min-height: 46px;
  color: #555555;
}

.precio {
  font-size: 22px;
  font-weight: bold;
  color: var(--naranja-principal);
}

.control-cantidad {
  margin-top: 15px;
  margin-bottom: 14px;
  text-align: left;
}

.control-cantidad label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: var(--texto-oscuro);
}

.input-cantidad {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  font-size: 16px;
}

.catalogo-vacio {
  grid-column: 1 / -1;
  text-align: center;
  color: #555555;
}

.producto-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.producto-modal.visible {
  display: flex;
}

.producto-modal-fondo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.producto-modal-contenido {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.95fr);
  gap: 42px;
  background: var(--blanco);
  border-radius: 8px;
  padding: 38px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
}

.producto-modal-cerrar {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--naranja-principal);
  color: var(--blanco);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.producto-modal-imagen {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9dfe3;
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
}

.producto-modal-imagen img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.producto-modal-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.producto-ruta {
  margin: 0 0 26px;
  color: #6b7280;
  font-size: 14px;
}

.producto-modal-info h2 {
  margin: 0 0 8px;
  font-family: "Nunito Sans", "Poppins", sans-serif;
  color: #223d4a;
  font-size: 42px;
  font-style: italic;
  font-weight: 900;
  line-height: 1.1;
}

.producto-categoria {
  margin: 0 0 26px;
  color: #6b7280;
}

.producto-modal-descripcion {
  max-width: 620px;
  margin: 0 0 20px;
  color: #555555;
  line-height: 1.5;
}

.producto-modal-precio {
  margin: 0 0 18px;
  color: var(--naranja-principal);
  font-size: 28px;
  font-weight: 700;
}

.producto-modal-cantidad {
  width: 120px;
  margin-bottom: 28px;
}

.producto-modal-cantidad label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--texto-oscuro);
}

.producto-modal-cantidad input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8b8b8;
  border-radius: 8px;
  font-size: 16px;
}

.producto-beneficios {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px 26px;
  margin-bottom: 28px;
  color: #223d4a;
}

.producto-beneficios div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.producto-beneficios span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #b8efd0;
  color: var(--verde-oscuro);
  font-weight: 700;
}

.producto-modal-boton {
  min-width: 220px;
}

@media (max-width: 820px) {
  .catalogo-encabezado h1 {
    font-size: 34px;
  }

  .producto-modal {
    padding: 14px;
  }

  .producto-modal-contenido {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px;
  }

  .producto-modal-imagen {
    min-height: 260px;
  }

  .producto-modal-info h2 {
    font-size: 32px;
  }

  .producto-beneficios {
    grid-template-columns: 1fr;
  }
}

/* CARRITO */
.carrito-wrapper {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.carrito-card {
  background-color: var(--blanco);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 28px;
  border-top: 6px solid var(--verde-principal);
}

.lista-carrito {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.item-carrito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px;
  background: #fffaf2;
  border-radius: 14px;
  border-left: 5px solid var(--naranja-principal);
}

.item-carrito-imagen {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  border: 2px solid rgba(18, 161, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagen-carrito {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-carrito-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.item-carrito h3 {
  margin: 0 0 8px;
  color: var(--verde-principal);
  font-size: 20px;
}

.item-carrito p {
  margin: 4px 0;
  color: var(--texto-oscuro);
  font-size: 14px;
}

.subtotal-item {
  font-weight: bold;
  color: var(--naranja-principal);
}

.carrito-resumen {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px dashed #e2d8c6;
}

.carrito-resumen h2 {
  margin: 0 0 18px;
  color: var(--verde-principal);
  font-size: 32px;
}

.acciones-carrito {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.boton-eliminar {
  padding: 10px 16px;
  background-color: #fff;
  color: var(--naranja-principal);
  border: 2px solid var(--naranja-principal);
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  min-width: 110px;
  flex-shrink: 0;
}

.boton-eliminar:hover {
  background-color: var(--naranja-principal);
  color: #fff;
}

.carrito-vacio {
  text-align: center;
  padding: 40px 20px;
  background: #fffaf2;
  border-radius: 16px;
  border: 2px dashed var(--verde-principal);
}

.carrito-vacio h3 {
  margin-top: 0;
  color: var(--verde-principal);
  font-size: 30px;
}

.carrito-vacio p {
  margin-bottom: 18px;
  color: #555;
}

/* FORMULARIOS GENERALES */
.grupo-campo {
  display: flex;
  flex-direction: column;
}

.grupo-campo-full {
  grid-column: 1 / -1;
}

.grupo-campo label {
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--texto-oscuro);
}

.grupo-campo input,
.grupo-campo select,
.grupo-campo textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  font-size: 16px;
  font-family: Arial, sans-serif;
}

.grupo-campo textarea {
  resize: vertical;
}

.campo-password {
  position: relative;
  display: flex;
  align-items: center;
}

.campo-password input {
  padding-right: 86px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  height: calc(100% - 14px);
  min-width: 68px;
  border: 0;
  border-radius: 8px;
  background: var(--verde-principal);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.toggle-password:hover {
  background: var(--verde-oscuro);
}

.requisitos-password {
  margin: 8px 0 0;
  padding-left: 0;
  color: #555555;
  font-size: 13px;
  line-height: 1.45;
  list-style: none;
}

.requisitos-password li::marker {
  content: "";
}

.requisitos-password li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.requisitos-password li::before {
  content: "○";
  position: absolute;
  left: 0;
  top: 0;
  color: #8d8d8d;
  font-weight: 700;
}

.requisitos-password li.requisito-pendiente {
  color: #d93025;
}

.requisitos-password li.requisito-ok {
  color: var(--verde-principal);
  font-weight: 700;
}

.requisitos-password li.requisito-pendiente::before {
  content: "✗";
  color: #d93025;
}

.requisitos-password li.requisito-ok::before {
  content: "✓";
  color: var(--verde-principal);
}

.requisitos-password-confirmacion {
  margin-top: 10px;
}

/* PEDIDO */
.pedido-wrapper {
  max-width: 1200px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.pedido-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
}

.formulario-pedido,
.resumen-pedido {
  background-color: var(--blanco);
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.formulario-pedido {
  border-top: 6px solid var(--verde-principal);
}

.resumen-pedido {
  border-top: 6px solid var(--naranja-principal);
}

.formulario-pedido h2,
.resumen-pedido h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--verde-principal);
  font-size: 32px;
}

#formPedido {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.label-pago {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--texto-oscuro);
}

.metodos-pago-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metodo-pago-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 2px solid rgba(18, 161, 80, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--texto-oscuro);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: border-color var(--transicion), box-shadow var(--transicion), transform var(--transicion), background var(--transicion);
}

.metodo-pago-card:hover,
.metodo-pago-card:focus {
  outline: none;
  transform: translateY(-3px);
  border-color: var(--verde-principal);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.metodo-pago-card.seleccionado {
  border-color: var(--verde-principal);
  background: #f3fff7;
  box-shadow: 0 0 0 4px rgba(18, 161, 80, 0.13), 0 10px 24px rgba(0, 0, 0, 0.1);
}

.metodo-pago-card.seleccionado::after {
  content: "✓";
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--verde-principal);
  color: #ffffff;
  font-weight: 700;
}

.metodo-pago-icono {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: #fff5ec;
  font-size: 24px;
}

.metodo-pago-icono-imagen {
  width: 80px;
  height: 60px;
  padding: 0;
  background: #ffffff;
}

.metodo-pago-icono-logo {
  width: 110px;
  height: 50px;
  padding: 0;
  background: #ffffff;
}

.metodo-pago-icono img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.metodo-pago-texto {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.metodo-pago-texto strong {
  color: var(--verde-principal);
  font-size: 17px;
  line-height: 1.2;
}

.metodo-pago-texto small {
  color: #555555;
  line-height: 1.35;
  display: block;
  max-width: 100%;
  white-space: normal;
}

.item-resumen {
  background: #fffaf2;
  border-left: 5px solid var(--naranja-principal);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.item-resumen h4 {
  margin: 0 0 10px;
  color: var(--verde-principal);
  font-size: 22px;
}

.item-resumen p {
  margin: 6px 0;
  color: var(--texto-oscuro);
}

.subtotal-resumen {
  font-weight: bold;
  color: var(--naranja-principal);
}

#totalResumen {
  margin-top: 20px;
  font-size: 30px;
  color: var(--verde-principal);
}

.pedido-vacio {
  text-align: center;
  padding: 24px;
  background: #fffaf2;
  border-radius: 14px;
  border: 2px dashed var(--verde-principal);
}

/* CONTACTO */
.contacto-hero {
  max-width: 1200px;
  margin: 28px auto 44px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 38px;
  align-items: stretch;
}

.contacto-hero-imagen {
  min-height: 430px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--blanco);
  box-shadow: var(--sombra);
}

.contacto-hero-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contacto-hero-formulario {
  padding: 4px 0;
}

.contacto-hero-formulario h1 {
  margin: 0 0 8px;
  color: var(--verde-oscuro);
  font-size: 36px;
  font-style: italic;
  line-height: 1.03;
}

.contacto-hero-formulario > p {
  max-width: 560px;
  margin: 0 0 24px;
  color: #686271;
  font-size: 18px;
  line-height: 1.25;
}

.form-contacto {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contacto-hero .grupo-campo {
  gap: 4px;
}

.contacto-hero .grupo-campo label {
  font-size: 12px;
}

.contacto-hero .grupo-campo input,
.contacto-hero .grupo-campo textarea {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.contacto-hero .boton {
  background: #f4c400;
  color: #1f1f1f;
  border-radius: 8px;
}

.contacto-hero .boton:hover {
  background: #e0b500;
}

.contacto-privacidad {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 4px;
  color: #1f1f1f;
  font-size: 13px;
  font-weight: 700;
}

.contacto-privacidad input {
  accent-color: var(--verde-principal);
}

.contacto-datos {
  max-width: 1200px;
  margin: 0 auto 42px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.contacto-dato-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--blanco);
  border-radius: 8px;
  box-shadow: var(--sombra);
}

.contacto-icono {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
    border: none;
    border-radius: 0;
    font-size: 22px;
    line-height: 1;
  }

.contacto-dato-card h2 {
  margin: 0 0 4px;
  color: var(--verde-oscuro);
  font-size: 19px;
  font-weight: 600;
}

.contacto-dato-card p {
  margin: 0;
  color: #555555;
  font-size: 14px;
}

/* LOGIN */
.login-wrapper {
  max-width: 900px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.login-card {
  max-width: 560px;
  margin: 0 auto;
  background-color: var(--blanco);
  padding: 32px 28px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-top: 6px solid var(--verde-principal);
}

.login-card h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--verde-principal);
  font-size: 32px;
}

.texto-ayuda {
  color: #555555;
  text-align: center;
}

.form-secundario {
  margin-top: 14px;
}

.form-login {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.mensaje-error {
  background-color: #ffe0e0;
  color: #a30000;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  border-left: 5px solid #d94829;
}

.credenciales-demo {
  margin-top: 22px;
  background: #fffaf2;
  padding: 16px;
  border-radius: 12px;
  border-left: 5px solid var(--amarillo-principal);
}

.credenciales-demo p {
  margin: 8px 0;
  color: var(--texto-oscuro);
}

/* UBICACION */
.mapa-wrapper {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.mapa-card-final {
  background-color: var(--blanco);
  padding: 30px;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-top: 6px solid var(--verde-principal);
}

.mapa-encabezado-final {
  text-align: center;
  margin-bottom: 24px;
}

.mapa-encabezado-final h2 {
  margin: 0 0 10px;
  color: var(--verde-principal);
  font-size: 42px;
}

.mapa-encabezado-final p {
  margin: 0;
  color: #555555;
  font-size: 20px;
  line-height: 1.5;
}

.mapa-centro-final {
  display: flex;
  justify-content: center;
  width: 100%;
}

.mapa-link-final {
  position: relative;
  width: 100%;
  max-width: 980px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.mapa-chip-final {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: rgba(18, 161, 80, 0.95);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 15px;
  line-height: 1;
}

.mapa-real-final {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .hero-banner {
    grid-template-columns: 1fr;
  }

  .hero-banner-imagen {
  height: 360px;
}

  .hero-banner-texto {
    padding: 35px 25px;
  }

  .hero-banner-texto h1 {
    font-size: 42px;
    line-height: 1.05;
  }

  .hero-banner-texto p {
    font-size: 18px;
  }
}

@media (max-width: 1000px) {
  /* En pantallas pequeñas, mostrar hamburguesa y ocultar navbar */
  .navbar-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .acciones-derecha {
    gap: 12px;
  }

  .acciones-derecha .nav-login {
    display: none !important;
  }

  .logo-img {
    width: 75px;
  }

  .header-superior {
    padding: 12px 20px;
  }

  .menu-container {
    max-width: 100%;
  }

  .menu-central {
    left: 12px;
    right: 12px;
  }

  .menu-central a {
    font-size: 14px;
    padding: 12px 18px;
  }

  .menu-separador {
    margin: 10px 8px;
  }

  .hero-portada-logo {
    min-height: 430px;
  }

  .hero-titulo {
    font-size: 64px;
  }

  .hero-ruta {
    font-size: 18px;
  }
}

@media (min-width: 1001px) {
  /* En pantallas grandes, mostrar navbar y ocultar hamburguesa */
  .navbar-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .overlay {
    display: none;
  }

  .acciones-derecha .nav-login {
    display: inline-block !important;
  }
}


@media (max-width: 900px) {
  .banner-titulo {
    padding: 28px 20px;
    background-size: auto 60%;
    background-position: center right;
  }

  .banner-titulo h1 {
    font-size: 38px;
    max-width: 100%;
  }

  .pedido-grid,
  .contacto-hero,
  .contacto-datos {
    grid-template-columns: 1fr;
  }

  #formPedido {
    grid-template-columns: 1fr;
  }

  .grupo-campo-full,
  .boton-full {
    grid-column: auto;
  }

  .contacto-hero-imagen {
    min-height: 300px;
  }

  .contacto-hero-formulario h1 {
    font-size: 32px;
  }

  .metodos-pago-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .item-carrito {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .item-carrito-imagen {
    width: 100%;
    height: 100px;
  }

  .item-carrito-info {
    flex-direction: column;
    gap: 6px;
  }

  .acciones-carrito {
    flex-direction: column;
  }

  .acciones-carrito .boton,
  .acciones-carrito .boton-secundario {
    width: 100%;
    text-align: center;
  }

  .boton-eliminar {
    width: 100%;
  }

  .mapa-card-final {
    padding: 20px;
  }

  .mapa-encabezado-final h2 {
    font-size: 32px;
  }

  .mapa-encabezado-final p {
    font-size: 17px;
  }

  .mapa-real-final {
    height: 300px;
  }

  .mapa-chip-final {
    font-size: 14px;
    padding: 8px 12px;
  }
}

@media (max-width: 600px) {
  .hero-portada-logo {
    min-height: 340px;
  }

  .hero-contenido {
    padding: 30px 18px;
  }

  .hero-titulo {
    font-size: 42px;
    line-height: 1.05;
  }

  .hero-ruta {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .hero-decoracion {
    width: 120px;
  }
}


.contenedor-imagen-producto {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.imagen-producto-real {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}


/* PROCESO DE LA AREPA */
.proceso-arepa {
  max-width: 1200px;
  margin: 50px auto 70px;
  padding: 0 20px;
}

.proceso-encabezado {
  text-align: center;
  margin-bottom: 30px;
}

.proceso-encabezado h2 {
  margin: 0 0 12px;
  color: var(--verde-principal);
  font-size: 44px;
}

.proceso-encabezado p {
  margin: 0 auto;
  max-width: 850px;
  color: #555555;
  font-size: 18px;
  line-height: 1.6;
}

.pasos-proceso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.paso-proceso-card {
  background-color: var(--blanco);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-top: 6px solid var(--verde-principal);
}

.paso-proceso-card:nth-child(2) {
  border-top-color: var(--naranja-principal);
}

.paso-proceso-card:nth-child(3) {
  border-top-color: var(--amarillo-principal);
}

.paso-proceso-card:nth-child(4) {
  border-top-color: var(--verde-principal);
}

.img-paso-proceso {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.contenido-paso {
  padding: 18px;
}

.contenido-paso h3 {
  margin: 0 0 10px;
  color: var(--verde-principal);
  font-size: 24px;
  line-height: 1.2;
}

.contenido-paso p {
  margin: 0;
  color: var(--texto-oscuro);
  line-height: 1.5;
}

.video-proceso-card {
  background-color: var(--blanco);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-top: 6px solid var(--naranja-principal);
}

.videos-proceso-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 24px;
  justify-items: center;
}

.video-proceso-vertical {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: #000000;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .videos-proceso-grid {
    grid-template-columns: 1fr;
  }

  .video-proceso-vertical {
    max-width: 320px;
  }
}


/*///////////////////////////*/


/* SLIDER DEL INICIO */
.hero-slider {
  position: relative;
  max-width: 1900px;
  margin: 0 auto 40px;
  overflow: hidden;
}

.slide {
  display: none;
}

.slide.activo {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(18, 161, 80, 0.9);
  color: #ffffff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.slider-btn:hover {
  background: rgba(13, 127, 63, 0.95);
}

.slider-btn.prev {
  left: 18px;
}

.slider-btn.next {
  right: 18px;
}

.slider-indicadores {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicador {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border: 2px solid rgba(18, 161, 80, 0.8);
}

.indicador.activo {
  background: var(--amarillo-principal);
}

@media (max-width: 768px) {
  .slider-btn {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .slider-indicadores {
    bottom: 12px;
  }
}






/* ADMIN HEADER LINK */


/* PANEL ADMIN */
.admin-dashboard {
  max-width: 1200px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.admin-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.admin-card {
  background-color: var(--blanco);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-top: 6px solid var(--verde-principal);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.admin-card:nth-child(2) {
  border-top-color: var(--naranja-principal);
}

.admin-card:nth-child(3) {
  border-top-color: var(--amarillo-principal);
}

.admin-card h2 {
  margin: 0 0 12px;
  color: var(--verde-principal);
  font-size: 30px;
  line-height: 1.2;
}

.admin-card p {
  margin: 0;
  color: var(--texto-oscuro);
  line-height: 1.6;
  font-size: 17px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.admin-mini-btn {
  background-color: var(--naranja-principal);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

.admin-mini-btn:hover {
  background-color: var(--naranja-oscuro);
}

.admin-mini-btn.danger {
  background-color: #c0392b;
}

.admin-mini-btn.danger:hover {
  background-color: #992d22;
}

/* LAYOUT ADMIN CON SIDEBAR */
.admin-layout {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  min-height: calc(100vh - 200px);
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

.admin-sidebar {
  width: 420px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  padding: 60px 30px 40px;
  height: max-content;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--blanco);
  padding: 30px 0;
  border-radius: var(--radio);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 2px solid rgba(18, 161, 80, 0.1);
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 32px 30px;
  text-decoration: none;
  color: var(--verde-principal);
  font-weight: 600;
  font-size: 19px;
  border-radius: 0;
  border-left: 7px solid transparent;
  transition: all var(--transicion);
  white-space: normal;
}

.admin-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  color: inherit;
  font-size: 15px;
  line-height: 1;
}

.admin-menu-item:last-child {
  border-bottom: none;
}

.admin-menu-item:hover {
  background: rgba(18, 161, 80, 0.06);
  color: var(--naranja-principal);
  padding-left: 38px;
  border-left-color: var(--naranja-principal);
}

.admin-menu-item.activo {
  background: linear-gradient(90deg, rgba(18, 161, 80, 0.12), rgba(18, 161, 80, 0.04));
  color: var(--verde-principal);
  border-left-color: var(--verde-principal);
  font-weight: 700;
  box-shadow: inset 0 2px 8px rgba(18, 161, 80, 0.1);
}

.admin-content {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 60px 40px;
}

.admin-content-area {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  min-height: 600px;
  width: 100%;
  max-width: 1100px;
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  font-size: 18px;
  color: var(--verde-principal);
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .admin-layout {
    gap: 16px;
    padding: 0 16px 40px;
  }

  .admin-sidebar {
    width: 200px;
  }

  .admin-menu {
    padding: 15px;
    gap: 8px;
  }

  .admin-menu-item {
    padding: 12px 14px;
    font-size: 14px;
  }

  .admin-content-area {
    padding: 20px;
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
    padding: 0 10px 32px;
  }

  .admin-sidebar {
    width: 100%;
    position: sticky;
    top: 86px;
    z-index: 80;
    padding: 14px 0 12px;
    background: linear-gradient(135deg, var(--gris-claro), #ffffff);
  }

  .admin-menu {
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .admin-menu-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    white-space: normal;
  }

  .admin-content {
    width: 100%;
    padding: 18px 0 0;
  }

  .admin-content-area {
    max-width: 100%;
    width: 100%;
  }
}

/* FOOTER */
.footer {
  background:
    linear-gradient(180deg, rgba(15, 122, 53, 0.96), rgba(10, 105, 45, 0.96)),
    rgba(18, 161, 80, 0.08);
  color: #ffffff;
  padding: 38px 20px 24px;
  overflow: hidden;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 0.9fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-brand p {
  max-width: 320px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: 190px;
  width: 100%;
  overflow: hidden;
}

.footer-logo-img {
  width: 100% !important;
  max-width: 190px !important;
  height: auto !important;
  max-height: 190px;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  object-fit: contain;
}

.footer-col h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 20px;
  color: #ffffff;
}

.footer-col:nth-child(2) h3 {
  margin-bottom: 18px;
  font-size: 22px;
}

.footer-col:nth-child(3) h3 {
  margin-bottom: 18px;
  font-size: 22px;
}

.footer-col p,
.footer-col a {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffd44d;
}

.footer-col a + a {
  margin-top: 12px;
  display: inline-block;
}

.footer-col:nth-child(2) a {
  display: block;
  font-size: 21px;
  font-weight: 700;
}

.footer-col:nth-child(3) p {
  font-size: 18px;
  font-weight: 700;
}

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  color: #ffd44d;
  font-size: 15px;
  line-height: 1;
}

.footer-social {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 2px solid rgba(255, 212, 77, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-social-label {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: transform var(--transicion), background var(--transicion), border-color var(--transicion);
}

.footer-social-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 212, 77, 0.9);
  transform: translateY(-1px);
}

.footer-social-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--verde-oscuro);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.footer-meta {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-copyright {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-authors {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 18px 20px;
  }

  .footer-contenido {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-social {
    margin-top: 24px;
    padding-top: 16px;
    align-items: flex-start;
  }

  .footer-social-button {
    width: 100%;
    justify-content: center;
  }

  .footer-meta {
    margin-top: 20px;
    gap: 6px;
  }
}

.app-dialog-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 18, 22, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1200;
}

.app-dialog-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.app-dialog {
  width: min(100%, 560px);
  background: #10191c;
  color: #f5fbf8;
  border: 1px solid rgba(88, 221, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.app-dialog-header,
.app-dialog-body,
.app-dialog-actions {
  padding-left: 24px;
  padding-right: 24px;
}

.app-dialog-header {
  padding-top: 26px;
}

.app-dialog-header h3 {
  margin: 0;
  font-size: 17px;
  color: #f5fbf8;
}

.app-dialog-body {
  padding-top: 18px;
  padding-bottom: 12px;
}

.app-dialog-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 251, 248, 0.92);
}

.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 22px;
}

.app-dialog-btn {
  min-width: 118px;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.app-dialog-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.app-dialog-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #d4e7e0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-dialog-btn-primary {
  background: #73e1ff;
  color: #0c3038;
  border: 2px solid #4bcde8;
  box-shadow: inset 0 0 0 2px rgba(12, 48, 56, 0.16);
}

.app-dialog-warning .app-dialog-btn-primary {
  background: #ff5b35;
  color: #fff8f6;
  border-color: #ff835c;
}

.app-dialog-success .app-dialog-btn-primary {
  background: #1aa14a;
  color: #f5fff8;
  border-color: #4dcc78;
}

@media (max-width: 640px) {
  .app-dialog-backdrop {
    padding: 18px;
  }

  .app-dialog {
    width: 100%;
  }

  .app-dialog-actions {
    flex-direction: column-reverse;
  }

  .app-dialog-btn {
    width: 100%;
  }
}
