﻿:root{
  --color-primary: #2E7D32;         /* verde agrÃ­cola */
  --color-secondary: #81C784;       /* verde claro */
  --color-accent: #8D6E63;          /* marrÃ³n tierra */
  --color-text: #333333;            /* gris oscuro */
  --color-bg: #FFFFFF;              /* blanco */
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100%;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

body.page-preload {
  visibility: hidden;
}

body.page-preload.is-ready {
  visibility: visible;
}

.wrapper { max-width: 1200px; padding: 0 16px; margin: 0 auto; }

/* =======================
   Header
   ======================= */
.header {
  background: var(--color-primary);
  color: #fff;
  position: sticky; top: 0;
  z-index: 100; /* para que quede por encima del resto */
}
.header__inner {
  display: flex; align-items: center; justify-content: flex-end;
  height: 64px;
}
.brand__link { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand__link--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

.brand__logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.brand__text {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}
.nav__toggle {
  display: none;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav__menu { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.nav__menu a { color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.nav__menu a:hover { background: rgba(255,255,255,.12); }
.nav__menu a.is-active { background: rgba(255,255,255,.2); }

/* =======================
   Hero
   ======================= */
.hero {
  background: linear-gradient(90deg, rgba(46,125,50,.08), rgba(129,199,132,.12));
}
.hero__inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 40px 0; align-items: center;
}
.hero__content h1 { margin: 0 0 8px; font-size: 2rem; color: var(--color-primary); }
.hero__content p { margin: 0 0 16px; }
.hero__image img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* =======================
   Buttons
   ======================= */
.btn { display: inline-block; padding: 10px 16px; border-radius: 8px;
   text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { filter: brightness(1.05); background-color: #157347;}
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--ghost:hover { background: rgba(46,125,50,.06); }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); background-color: #157347;}
/* Secundario (editar) */
.btn-secondary {
  background-color: #e9ecef; 
  color: #333;
}

.btn-secondary:hover {
  background-color: #dee2e6;
}

/* Peligro (eliminar) */
.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #bb2d3b;
}

/* Contenedor de acciones */
.address-actions {
  display: flex;
  gap: 8px;
}
/* =======================
   Carousel
   ======================= */
.carousel { padding: 24px 0 8px; }
.carousel h2 { margin: 0 0 12px; color: var(--color-accent); }

/* Contenedor / â€œviewportâ€ del carrusel */
.carousel__viewport {
  position: relative;
  overflow: hidden;           /* Importante para que no se vean elementos fuera del marco */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
    height: 320px;            /* â† altura fija */
}

/* Por defecto, los Ã­tems NO se muestran */
.carousel__item { display: none; height: 100%; }

/* SÃ³lo el Ã­tem activo es visible */
.carousel__item.is-active { display: block; height: 100%; }

/* Imagen dentro del slide */

.carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* recorta manteniendo proporciÃ³n */
  display: block;
}


/* Controles */
.carousel__controls {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px;
}

/* =======================
   Features
   ======================= */
.features { padding: 32px 0 48px; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 16px; border: 1px solid #eee; border-radius: var(--radius); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; color: var(--color-primary); }

/* =======================
   Footer
   ======================= */
#footer-container {
  margin-top: auto;
}
.footer { background: #f7f7f7; margin-top: auto; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.footer__links { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.footer__links a { color: var(--color-accent); text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }

/* =================================l======
   FOOTER RESPONSIVO (Computadora y Celular)
   ======================================= */
.footer__content {
    display: flex;
    flex-direction: column; /* Apila los elementos uno sobre otro */
    align-items: center;    /* Los centra todos */
    gap: 15px;              /* Espacio entre el texto, los iconos y los links */
    padding: 30px 15px;
    text-align: center;
}

.footer__socials-inline {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacio entre Facebook e Instagram */
}

.footer__socials-inline img {
    width: 30px; /* TamaÃ±o ideal para compu */
    height: 30px;
    transition: transform 0.3s ease;
}

/* --- AJUSTES PARA CELULAR --- */
@media (max-width: 600px) {
    .footer__socials-inline img {
        width: 40px; /* Iconos mÃ¡s grandes en celular para tocarlos fÃ¡cil con el dedo */
        height: 40px;
    }
    
    .footer__links {
        flex-direction: column; /* Los links de contacto se ponen uno abajo del otro en el cel */
        gap: 10px;
    }
}

/* =======================
   Redes Sociales Fijas 
   ======================= */
.redes-fijas {
  position: static;
  bottom: auto;
  left: auto;
  width: auto;
  background-color: white; /* Fondo blanco para que resalten los logos */
  display: flex;           /* Pone los logos uno a la par del otro */
  justify-content: center; /* Los centra en el medio de la pantalla */
  align-items: center;     /* Los centra verticalmente */
  gap: 30px;               /* Espacio entre Facebook e Instagram */
  padding: 12px 0;         /* Grosor de la barra */
  z-index: 9999;           /* Asegura que nada tape los iconos */
  border-top: 2px solid var(--color-primary); /* LÃ­nea verde arriba (tu color) */
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);    /* Sombra suave */
}

.redes-fijas a {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.redes-fijas a:hover {
  transform: scale(1.2);   /* Efecto de agrandado al pasar el mouse */
}

.redes-fijas img {
  width: 35px;             /* TamaÃ±o ideal para los iconos */
  height: 35px;
  object-fit: contain;
}

/* =======================
   Responsive
   ======================= */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }

  .header__inner {
    min-height: 72px;
    height: auto;
    padding: 6px 0;
  }

  .brand__logo {
    width: 46px;
    height: 46px;
  }

  .nav__toggle { display: inline-flex; }
  .nav__menu {
    display: none; position: absolute; right: 16px; top: 64px;
    background: var(--color-primary); padding: 12px; border-radius: 8px;
    flex-direction: column; min-width: 180px;
    box-shadow: 0 14px 28px rgba(0,0,0,.16);
  }
  .nav__menu.is-open { display: flex; }
}


/* Teasers Nosotros en inicio */
.about-teasers { padding: 16px 0 40px; }
.about-teasers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-teasers__card {
  background:#fff; border:1px solid #eee; border-radius: var(--radius);
  box-shadow: var(--shadow); padding:16px;
}
.about-teasers__card h3 { margin:0 0 8px; color: var(--color-primary); }
.about-teasers__card p  { margin:0 0 12px; color:#555; }
@media (max-width: 900px) { .about-teasers__grid { grid-template-columns: 1fr; } }

/* =======================
   (Opcional) Forzar visibilidad correcta del carrusel
   Si alguna otra regla en tu CSS lo pisa, deja estas 4 al final.
   ======================= */
/*
section.carousel .carousel__viewport { position: relative; overflow: hidden; }
section.carousel .carousel__item { display: none; }
section.carousel .carousel__item.is-active { display: block; }
section.carousel .carousel__item img { width: 100%; height: auto; display: block; }
*/

/*nbc*/
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-container {
  flex: 1;
  display: flex;
}

img,
video,
canvas,
iframe {
  max-width: 100%;
}

input,
select,
textarea,
button {
  font: inherit;
}

@media (max-width: 1024px) {
  .wrapper {
    padding: 0 14px;
  }

  .hero__content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .wrapper {
    padding: 0 12px;
  }

  .header__inner {
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    min-height: 68px;
  }

  .nav__menu {
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    min-width: 0;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .hero__inner {
    gap: 18px;
    padding: 24px 0;
  }

  .hero__content h1 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .hero__content p,
  .card p,
  .about-teasers__card p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .features,
  .about-teasers {
    padding-bottom: 28px;
  }

  .carousel__viewport {
    height: 240px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .brand__logo {
    width: 44px;
    height: 44px;
  }

  .brand__text {
    font-size: 0.85rem;
  }

  .hero__content h1 {
    font-size: 1.38rem;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    width: 100%;
    text-align: center;
  }

  .address-actions {
    flex-direction: column;
  }

  .carousel__viewport {
    height: 200px;
  }

  .footer__content {
    padding: 24px 12px;
  }
}

main {
  flex: 1;
}

.login-container {
  width: 400px;
  margin: 80px auto;
  background: #fff;
  padding: 40px;
  box-sizing: border-box;
  text-align: center;
}

.login-container h1 {
  color: #0b7a2f;
  margin-bottom: 30px;
}

.login-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.login-form label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #8a6d1f;
}

.login-form input {
  margin-bottom: 20px;
  padding: 10px;
  font-size: 16px;
}

.login-form button {
  background: #22c55e;
  color: white;
  border: none;
  padding: 12px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.login-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.login-links a {
  font-size: 14px;
  color: #777;
  text-decoration: underline;
}

.recovery-panel {
  margin: 60px auto;
}

.recovery-text {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.recovery-message {
  margin-top: 18px;
  text-align: center;
}

.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-form-message {
  margin: 0;
  min-height: 0;
  max-width: 320px;
}

.contact-form-message.message-error,
.contact-form-message.message-success {
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.contact-form-message.message-success {
  background: #f1fff5;
  border: 1px solid #86efac;
}

.reset-password-form {
  margin-top: 18px;
}

.login-form .toggle-password {
  background: transparent;
  color: #6b7280;
  border: none;
  padding: 0;
  margin-top: 0;
  border-radius: 50%;
}

.login-form .toggle-password:hover {
  background: transparent;
  color: #1f7a3a;
}

#message {
  margin-top: 20px;
  text-align: center;
}

/* CONTENEDOR */
.register-container {
  width: 450px;
  margin: 60px auto;
  background: #ffffff;
  padding: 40px;
  box-sizing: border-box;
  border-radius: 6px;
}

/* TITULO */
.register-container h1 {
  text-align: center;
  color: #1f7a3a;
  margin-bottom: 30px;
}

/* FORM */
.register-form {
  display: flex;
  flex-direction: column;
}

/* LABELS */
.register-form label {
  font-size: 14px;
  font-weight: bold;
  color: #8a6d1f;
  margin-bottom: 6px;
}

/* INPUTS Y SELECT */
.register-form input,
.register-form select {
  padding: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 3px;
  outline: none;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.password-field input {
  width: 100%;
  margin-bottom: 0;
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  margin: 0;
  color: #6b7280;
}

.toggle-password:hover {
  color: #1f7a3a;
  background: transparent;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
}

/* HOVER / FOCUS */
.register-form input:focus,
.register-form select:focus {
  border-color: #22c55e;
}

/* BOTON */
.register-form button {
  background: #22c55e;
  color: white;
  border: none;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 10px;
}

/* HOVER BOTON */
.register-form button:hover {
  background: #16a34a;
}

.register-form .toggle-password {
  background: transparent;
  color: #6b7280;
  border: none;
  padding: 0;
  margin-top: 0;
  border-radius: 50%;
}

.register-form .toggle-password:hover {
  background: transparent;
  color: #1f7a3a;
}

.register-form small {
  display: block;
  margin-top: -12px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #777;
}

/* CODIGO AGREGADO POR CODEX: estados visuales de validacion. */
.register-form input.input-invalid,
.register-form select.input-invalid {
  border: 2px solid #dc3545;
  background-color: #fff5f5;
}

.register-form input.input-valid,
.register-form select.input-valid {
  border: 2px solid #198754;
  background-color: #f1fff5;
}

.register-form input.input-invalid:focus,
.register-form select.input-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.register-form input.input-valid:focus,
.register-form select.input-valid:focus {
  border-color: #198754;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
}

.message-error {
  color: #b42318;
  background: #fff1f3;
  border: 1px solid #fda29b;
  border-radius: 6px;
  padding: 10px 12px;
}

.message-success {
  color: #027a48;
}

.account-password-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.account-password-summary {
  background: #f8faf8;
  border: 1px solid #d9eadb;
  border-radius: 10px;
  padding: 16px;
}

.account-password-summary p {
  margin: 0 0 8px 0;
}

.account-password-summary p:last-child {
  margin-bottom: 0;
}

.account-inline-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-inline-text {
  color: #1f2937;
}

.account-inline-input {
  flex: 1;
  min-width: 220px;
  margin-bottom: 0;
}

.account-inline-help {
  margin-top: -2px;
}

.account-password-form {
  max-width: 560px;
}

.account-password-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
}

.account-edit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
}

.account-password-message {
  margin-top: 8px;
}

.account-password-actions .btn,
.account-edit-actions .btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0;
  white-space: nowrap;
}

.account-password-actions .btn:hover,
.account-edit-actions .btn:hover {
  background: #16a34a;
}

.account-password-form input:disabled,
.account-password-form select:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
  border-color: #d1d5db;
}

.inactivity-modal .modal__icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

#navUser a {
  font-weight: bold;
}
.titulo {
  margin: 30px 0;
  color: #1e7e34;
}

/* GRID */
.contacto-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}

/* FORM */
.contacto-form {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
}

.contacto-form h2 {
  margin-bottom: 15px;
}

/* CAMPOS */
.row {
  display: flex;
  gap: 15px;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.field input,
.field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* INFO */
.contacto-info {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
}

/* MAPA */
.mapa {
  margin-top: 30px;
}

.map-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.map-container iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

.map-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  background: #ffffff;
  color: #333;
  border-left: 5px solid #2e7d32;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  animation: toastIn 0.25s ease;
}

.toast--success {
  border-left-color: #2e7d32;
}

.toast--error {
  border-left-color: #c62828;
}

.toast__title {
  font-weight: bold;
  margin-bottom: 4px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  padding: 28px;
  text-align: center;
  animation: modalIn 0.2s ease;
}

.modal__icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.modal__title {
  font-size: 24px;
  font-weight: bold;
  color: #1b5e20;
  margin-bottom: 10px;
}

.modal__text {
  color: #444;
  margin-bottom: 18px;
  line-height: 1.5;
}

.modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal__btn {
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: bold;
}

.modal__btn--primary {
  background: #2e7d32;
  color: white;
}

.modal__btn--secondary {
  background: #eee;
  color: #333;
}

.processing-modal__icon {
  display: inline-block;
  animation: hourglassSpin 1.1s linear infinite;
}

.admin-refresh-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #cfe0d5;
  background: #f8fbf8;
  color: #1e7e34;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.admin-refresh-btn:hover {
  background: #edf7ef;
  box-shadow: 0 10px 20px rgba(20, 72, 38, 0.12);
  transform: translateY(-1px);
}

.admin-refresh-btn__icon {
  font-size: 1.1rem;
  line-height: 1;
}

@keyframes hourglassSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal button {
  flex: 1;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

#confirmBtn {
  background: #2e7d32;
  color: white;
}

#cancelBtn {
  background: #ddd;
}

.btn--outline {
  background: transparent;
  border: 2px dashed var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn--outline:hover {
  background: rgba(46, 125, 50, 0.08);
  border-style: solid;
}

.btn-qty {
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-qty:hover {
  background: #e9f5eb;
}

.btn-ver-detalle {
  background: #2f8f2f;
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
  cursor:pointer;
}

.btnGuardarEstado {
  padding-top: 2px;
  background: #2f8f2f;
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
  cursor:pointer;
}
.estadoPedido {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin: 5px 0 12px;
}

.btnvolver {
  background: #2f8f2f;
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
  cursor:pointer;
  margin: 10px 0 10px;
}

.btnvolver:hover {
  filter: brightness(1.05);
  background: #157347;
}

.checkout-review-card {
  margin: 18px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.checkout-review-product {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.checkout-review-product:last-child {
  border-bottom: none;
}

.checkout-review-product__subtotal {
  font-weight: 700;
  white-space: nowrap;
}

.paypal-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 8px;
  color: #15803d;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.sinpe-transfer-panel {
  margin: 18px 0 20px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fff7 0%, #eef8ff 100%);
  border: 1px solid #cfe2d1;
  box-shadow: 0 12px 28px rgba(28, 104, 48, 0.08);
}

.sinpe-transfer-panel__hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.sinpe-transfer-panel__eyebrow {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e7e34;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sinpe-transfer-panel__title {
  margin: 0;
  color: #0f5132;
  font-size: 1.08rem;
}

.sinpe-transfer-panel__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 700;
}

.sinpe-transfer-panel__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.sinpe-transfer-panel__detail {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dce7d8;
}

.sinpe-transfer-panel__label {
  display: block;
  margin-bottom: 4px;
  color: #5b6b5f;
  font-size: 0.82rem;
}

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

.sinpe-transfer-panel__field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #355e3b;
}

.sinpe-transfer-panel__field input[type="text"],
.sinpe-transfer-panel__field input[type="file"] {
  width: 100%;
}

.sinpe-transfer-panel__file-name {
  display: block;
  margin-top: 8px;
  color: #4b5563;
}

@media (max-width: 720px) {
  .sinpe-transfer-panel__details,
  .sinpe-transfer-panel__form {
    grid-template-columns: 1fr;
  }
}

.paypal-checkout-panel {
  max-width: 640px;
  margin: 20px auto 0;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf5 100%);
  border-radius: 20px;
  border: 1px solid #d9e5d6;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.paypal-card-field-row {
  display: flex;
  gap: 10px;
}

.paypal-card-field-group {
  margin-bottom: 15px;
}

.paypal-card-field-group--half {
  flex: 1;
}

.paypal-card-field-group label {
  display: block;
  font-weight: 600;
  color: #1f2937;
}

.paypal-standard-helper {
  max-width: 520px;
  margin: 18px auto 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7faf7;
  border: 1px solid #dce7d8;
  color: #3b4a3f;
  text-align: center;
  line-height: 1.5;
}

.paypal-buttons-shell {
  max-width: 390px;
  margin: 18px auto 0;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e4ece0;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.paypal-buttons-shell > div {
  width: 100%;
}

.paypal-redirect-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.paypal-redirect-action + .paypal-redirect-action {
  margin-top: 12px;
}

.paypal-redirect-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.12);
}

.paypal-redirect-action:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.paypal-redirect-action--paypal {
  background: linear-gradient(135deg, #ffd45b 0%, #ffc439 100%);
  color: #0b2e68;
}

.paypal-redirect-action--card {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #fff;
}

.paypal-redirect-action__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.paypal-redirect-action--paypal .paypal-redirect-action__icon {
  background: rgba(255, 255, 255, 0.35);
  color: #003087;
}

.paypal-redirect-action--card .paypal-redirect-action__icon {
  background: rgba(255, 255, 255, 0.12);
}

.paypal-redirect-action__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.paypal-redirect-action__title {
  font-weight: 700;
  font-size: 1rem;
}

.paypal-redirect-action__subtitle {
  font-size: 0.89rem;
  line-height: 1.35;
  opacity: 0.92;
}

@media (max-width: 640px) {
  .paypal-checkout-panel {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .paypal-card-field-row {
    flex-direction: column;
    gap: 0;
  }

  .paypal-buttons-shell {
    max-width: 100%;
    padding: 12px;
  }

  .paypal-redirect-action {
    align-items: flex-start;
  }

  .paypal-redirect-action__icon {
    width: 38px;
    height: 38px;
  }
}

.order-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.order-detail-page--admin {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

#order-detail-sidebar[hidden] {
  display: none !important;
}

.order-detail-main--admin {
  flex: 1;
}

.order-detail-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-detail-card {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
  border: 1px solid #dce9dd;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.order-detail-card__title {
  margin: 0 0 10px 0;
  color: #1e7e34;
}

.order-detail-card--admin {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-detail-label {
  font-weight: 700;
  color: #6f5522;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #1e7e34;
  font-weight: 700;
}

.order-detail-feedback {
  min-height: 20px;
  margin: 0;
}

.order-detail-feedback--success {
  color: #15803d;
}

.order-detail-feedback--error {
  color: #b42318;
}

.order-timeline-card__title {
  margin: 0 0 4px 0;
  color: #1e7e34;
}

.order-timeline-card__subtitle {
  margin: 0 0 18px 0;
  color: #5b6470;
}

.order-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-timeline__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
}

.order-timeline__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.order-timeline__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid #cfd8d3;
  background: #fff;
  color: #6b7280;
}

.order-timeline__line {
  width: 3px;
  flex: 1;
  min-height: 38px;
  background: #d9e2dc;
  border-radius: 999px;
  margin-top: 6px;
}

.order-timeline__content {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7faf7;
  border: 1px solid #e2ebe3;
}

.order-timeline__name {
  margin: 0 0 4px 0;
  font-weight: 700;
  color: #184d2f;
}

.order-timeline__description,
.order-timeline__meta {
  margin: 0;
  line-height: 1.45;
}

.order-timeline__description {
  color: #4b5563;
}

.order-timeline__meta {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

.order-timeline__item.is-completed .order-timeline__dot {
  color: #1e7e34;
}

.order-timeline__item.is-completed.is-completed-level-1 .order-timeline__dot {
  background: #eef8f0;
  border-color: #d4ead9;
}

.order-timeline__item.is-completed.is-completed-level-1 .order-timeline__line {
  background: #dcefe1;
}

.order-timeline__item.is-completed.is-completed-level-2 .order-timeline__dot {
  background: #dff4e5;
  border-color: #bedfc8;
}

.order-timeline__item.is-completed.is-completed-level-2 .order-timeline__line {
  background: #c6e4cf;
}

.order-timeline__item.is-completed.is-completed-level-3 .order-timeline__dot {
  background: #cdeed7;
  border-color: #9fd0ae;
}

.order-timeline__item.is-completed.is-completed-level-3 .order-timeline__line {
  background: #abd8b8;
}

.order-timeline__item.is-completed.is-completed-level-4 .order-timeline__dot {
  background: #b9e7c7;
  border-color: #72b889;
}

.order-timeline__item.is-completed.is-completed-level-4 .order-timeline__line {
  background: #7fc091;
}

.order-timeline__item.is-current .order-timeline__dot {
  background: #1e7e34;
  border-color: #1e7e34;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(30, 126, 52, 0.12);
}

.order-timeline__item.is-current .order-timeline__content {
  background: #e3f3e7;
  border-color: #1e7e34;
}

.order-timeline__item.is-pending .order-timeline__content {
  opacity: 0.8;
}

.order-detail-products__title {
  margin: 0 0 16px 0;
}

.order-detail-products__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seguimiento-item {
  padding: 0;
}

.seguimiento-item__summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  cursor: pointer;
}

.seguimiento-item__summary::-webkit-details-marker {
  display: none;
}

.seguimiento-item__content {
  margin-top: 18px;
}

.order-product-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  background: #fafafa;
}

.order-product-card__name {
  margin: 0 0 8px 0;
  font-weight: 700;
}

.order-product-card__subtotal {
  text-align: right;
}

@media (max-width: 900px) {
  .order-detail-layout {
    grid-template-columns: 1fr;
  }

  .order-product-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-product-card__subtotal {
    text-align: left;
  }
}

/* CODIGO AGREGADO POR CODEX: modal de detalle para catalogo */
.catalog-product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10002;
  overflow-y: auto;
}

.catalog-product-modal {
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  padding: 28px;
  position: relative;
  overflow-y: auto;
}

.catalog-product-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #eef7ef;
  color: #1f7a3a;
  font-size: 28px;
  cursor: pointer;
}

.catalog-product-modal__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.catalog-product-modal__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.catalog-product-modal__image img {
  width: 100%;
  max-height: 320px;
  border-radius: 18px;
  object-fit: contain;
  background: #f8faf8;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.catalog-product-modal__badge {
  display: inline-block;
  margin: 0 0 10px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #1e7e34;
  font-weight: 700;
}

.catalog-product-modal__content h2 {
  margin: 0 0 10px 0;
  color: var(--color-primary);
}

.catalog-product-modal__description {
  margin: 0 0 18px 0;
  color: #475569;
  line-height: 1.6;
}

.catalog-product-modal__price-box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f1fff5 0%, #eef8ef 100%);
  border: 1px solid rgba(46,125,50,.16);
  margin-bottom: 18px;
}

.catalog-product-modal__price-box strong {
  font-size: 1.4rem;
  color: #1e7e34;
}

.catalog-product-modal__section {
  margin-bottom: 18px;
}

.catalog-product-modal__section-title {
  margin: 0 0 10px 0;
  font-weight: 700;
  color: #6f5522;
}

.catalog-product-presentations {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-product-presentation-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d7e6da;
  background: #fff;
  cursor: pointer;
}

.catalog-product-presentation-option.is-selected {
  border-color: #2e7d32;
  background: #f4fbf4;
  box-shadow: 0 8px 20px rgba(46,125,50,.08);
}

.catalog-product-presentation-option input {
  margin-top: 4px;
}

.catalog-product-presentation-option span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catalog-product-presentation-option small {
  color: #64748b;
}

.catalog-product-presentation-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d7e6da;
  background: #fff;
}

.catalog-product-presentation-row__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catalog-product-presentation-row__info small {
  color: #64748b;
}

.catalog-product-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: #f8faf8;
  border: 1px solid #d7e6da;
}

.catalog-product-qty__btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #2e7d32;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.catalog-product-qty input {
  width: 56px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
}

.catalog-product-qty--inline {
  flex-shrink: 0;
}

.catalog-product-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .catalog-product-modal {
    padding: 20px;
    max-height: calc(100vh - 28px);
  }

  .catalog-product-modal__grid {
    grid-template-columns: 1fr;
  }

  .catalog-product-presentation-row {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-product-qty--inline {
    width: 100%;
    justify-content: center;
  }

  .catalog-product-modal__image img {
    max-height: 260px;
  }
}

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

  .row {
    flex-direction: column;
    gap: 0;
  }

  .contacto-form,
  .contacto-info {
    padding: 16px;
    min-width: 0;
  }

  .contact-office__item {
    align-items: flex-start;
  }

  .mapa {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .map-actions .btn,
  .contact-form-actions .btn {
    width: 100%;
  }

  .contact-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form-message {
    width: 100%;
  }

  .catalog-product-modal-overlay {
    align-items: flex-start;
    padding: 10px;
  }

  .catalog-product-modal {
    max-height: calc(100vh - 20px);
    padding: 16px;
    border-radius: 20px;
  }

  .catalog-product-modal__close {
    top: 10px;
    right: 10px;
  }

  .catalog-product-modal__image img {
    max-height: 220px;
  }

  .catalog-product-modal__actions .btn {
    width: 100%;
  }

  .catalog-product-qty {
    width: 100%;
    justify-content: center;
  }
}


.carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.72));
  color: #fff;
}

.carousel__caption h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.carousel__caption p {
  margin: 0;
  line-height: 1.5;
}

.about-teasers {
  padding: 24px 0 40px;
}

.about-teasers__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-teasers__card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.about-teasers__card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.about-teasers__card h3 {
  margin: 0 0 8px;
  color: var(--color-primary);
}

.about-teasers__card p {
  margin: 0 0 14px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .about-teasers__grid {
    grid-template-columns: 1fr;
  }
}

.contact-office__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.contact-office__icon {
  width: 28px;
  min-width: 28px;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e7e34;
}

.contact-office__icon--svg svg {
  width: 24px;
  height: 24px;
  display: block;
}

.contact-office__icon--whatsapp {
  color: #25d366;
}

.contact-office__link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.contact-office__link:hover {
  color: #1e7e34;
  text-decoration: underline;
}

.contact-office__link--whatsapp:hover {
  color: #1ea952;
}



.header__inner--with-brand {
  justify-content: space-between;
}

.brand__link--inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__logo--header-page {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.brand__text--header-page {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .brand__logo--header-page {
    width: 40px;
    height: 40px;
  }

  .brand__text--header-page {
    font-size: 0.9rem;
    white-space: normal;
    line-height: 1.1;
  }
}
