/* ==========================================================
   MANOS Y PUÑOS
   CSS GENERAL DEL SITIO PÚBLICO
========================================================== */

:root {
  --brand: #2f6b59;
  --brand-dark: #1e493d;
  --brand-light: #e6f0eb;

  --earth: #9a6338;
  --earth-light: #eadbc9;

  --gold: #c5964d;

  --cream: #f8f5ee;
  --cream-light: #fcfaf6;

  --text: #252a27;
  --text-soft: #6d726e;

  --white: #ffffff;
  --border: #e7e1d7;

  --footer: #1d2b26;

  --shadow: 0 18px 45px rgba(31, 73, 61, 0.1);

  --shadow-small: 0 8px 25px rgba(31, 73, 61, 0.08);

  --radius: 22px;
}

/* ==========================================================
   RESET
========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  font-family: "DM Sans", sans-serif;

  background: var(--cream);
  color: var(--text);

  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ==========================================================
   HEADER / NAVBAR
========================================================== */

.main-navbar {
  min-height: 76px;

  display: flex;
  align-items: center;

  background: rgba(248, 245, 238, 0.96);

  border-bottom: 1px solid var(--border);

  padding: 10px 0;
}

/* MARCA */
/* ==========================================================
   LOGO HEADER - TAMAÑO DEFINITIVO
========================================================== */

.main-navbar .navbar-brand .logo-header {
  width: 300px !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}

/* MENÚ */

.navbar-nav {
  gap: 3px;
}

.nav-link {
  position: relative;

  padding: 10px 13px !important;

  color: var(--text-soft) !important;

  font-size: 0.91rem;
  font-weight: 500;

  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand) !important;
}

.nav-link.active {
  color: var(--text) !important;
  font-weight: 600;
}

.nav-link.active::after {
  content: "";

  position: absolute;

  left: 13px;
  right: 13px;
  bottom: 3px;

  height: 2px;

  background: var(--brand);

  border-radius: 20px;
}

/* ==========================================================
   BOTONES
========================================================== */

.btn {
  border-radius: 12px;

  font-weight: 600;

  padding: 0.72rem 1.25rem;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-brand {
  background: var(--brand);
  border: 1px solid var(--brand);

  color: var(--white);
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);

  color: var(--white);

  box-shadow: 0 8px 20px rgba(47, 107, 89, 0.18);
}

.btn-outline-brand {
  background: transparent;

  border: 1px solid var(--brand);

  color: var(--brand);
}

.btn-outline-brand:hover {
  background: var(--brand);

  color: var(--white);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.72);

  border: 1px solid var(--border);

  color: var(--text);
}

.btn-soft:hover {
  background: var(--white);

  color: var(--brand);

  box-shadow: var(--shadow-small);
}

/* ==========================================================
   INDEX
========================================================== */

.home-main {
  position: relative;

  flex: 1;

  min-height: calc(100vh - 76px - 74px);

  display: flex;
  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 77% 45%,
      rgba(197, 150, 77, 0.15),
      transparent 24%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(47, 107, 89, 0.07),
      transparent 26%
    ),
    var(--cream);
}

.home-main::before {
  content: "";

  position: absolute;

  width: 520px;
  height: 520px;

  right: -260px;
  top: -180px;

  border: 1px solid rgba(154, 99, 56, 0.1);

  border-radius: 50%;
}

/* ==========================================================
   TEXTO PRINCIPAL
========================================================== */

.home-content {
  position: relative;

  z-index: 3;

  max-width: 670px;

  padding: 40px 0;
}

.eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 17px;

  color: var(--earth);

  font-size: 0.76rem;
  font-weight: 700;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.eyebrow i {
  color: var(--gold);
}

.home-content h1 {
  margin: 0 0 20px;

  max-width: 700px;

  font-family: "Playfair Display", serif;

  font-size: clamp(3rem, 4.4vw, 4.6rem);

  font-weight: 700;

  line-height: 1.02;

  letter-spacing: -0.035em;

  color: var(--text);
}

.home-content h1 span {
  display: block;

  margin-top: 4px;

  color: var(--brand);
}

.home-content > p {
  max-width: 620px;

  margin-bottom: 25px;

  color: var(--text-soft);

  font-size: 1.05rem;

  line-height: 1.7;
}

/* ==========================================================
   ESTAMOS COMENZANDO
========================================================== */

.starting-message {
  max-width: 590px;

  display: flex;

  align-items: center;

  gap: 15px;

  margin: 22px 0;

  padding: 15px 18px;

  background: rgba(255, 255, 255, 0.55);

  border: 1px solid var(--border);

  border-radius: 15px;
}

.starting-icon {
  width: 43px;
  height: 43px;

  flex: 0 0 43px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: var(--brand-light);

  border-radius: 50%;

  color: var(--brand);

  font-size: 18px;
}

.starting-message strong {
  display: block;

  margin-bottom: 3px;

  color: var(--text);

  font-size: 0.92rem;
}

.starting-message p {
  margin: 0;

  color: var(--text-soft);

  font-size: 0.83rem;

  line-height: 1.45;
}

/* ==========================================================
   ACCIONES DEL INDEX
========================================================== */

.home-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 11px;

  margin-top: 22px;
}

.home-actions .btn-lg {
  padding: 0.85rem 1.4rem;

  font-size: 0.98rem;
}

/* ==========================================================
   ELEMENTOS DE CONFIANZA
========================================================== */

.home-trust {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 24px;

  margin-top: 30px;

  padding-top: 20px;

  border-top: 1px solid var(--border);
}

.home-trust div {
  display: flex;

  align-items: center;

  gap: 7px;

  color: var(--text-soft);

  font-size: 0.8rem;

  white-space: nowrap;
}

.home-trust i {
  color: var(--brand);

  font-size: 16px;
}

/* ==========================================================
   PARTE VISUAL DERECHA
========================================================== */

.home-visual {
  position: relative;

  width: min(500px, 100%);

  height: 470px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: center;
}

/* CÍRCULO PRINCIPAL */

.visual-circle {
  position: absolute;

  width: 370px;
  height: 370px;

  border-radius: 50%;

  background: linear-gradient(145deg, #ead8c3, #f5eadc);

  box-shadow:
    inset 0 0 0 1px rgba(154, 99, 56, 0.08),
    0 30px 60px rgba(63, 49, 35, 0.07);
}

.visual-circle::before {
  content: "";

  position: absolute;

  width: 315px;
  height: 315px;

  left: 27px;
  top: 27px;

  border: 1px solid rgba(154, 99, 56, 0.15);

  border-radius: 50%;
}

/* MANOS */

.hands {
  position: relative;

  z-index: 2;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 4px;

  width: 270px;
  height: 220px;

  background: rgba(255, 255, 255, 0.52);

  border: 1px solid rgba(255, 255, 255, 0.75);

  border-radius: 44% 56% 50% 50%;

  box-shadow: var(--shadow);

  backdrop-filter: blur(10px);

  transform: rotate(-3deg);
}

.hands span {
  display: inline-block;

  font-size: 5.5rem;

  line-height: 1;
}

.hand {
  transform: rotate(-12deg);
}

.fist {
  transform: rotate(12deg);
}

/* TARJETAS FLOTANTES */

.info-card {
  position: absolute;

  z-index: 4;

  display: flex;

  align-items: center;

  gap: 11px;

  min-width: 165px;

  padding: 12px 15px;

  background: rgba(255, 255, 255, 0.92);

  border: 1px solid rgba(255, 255, 255, 0.95);

  border-radius: 14px;

  box-shadow: var(--shadow-small);

  backdrop-filter: blur(10px);
}

.info-card > i {
  width: 35px;
  height: 35px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex: 0 0 35px;

  background: var(--brand-light);

  border-radius: 50%;

  color: var(--brand);

  font-size: 17px;
}

.info-card div {
  display: flex;

  flex-direction: column;

  line-height: 1.25;
}

.info-card small {
  color: var(--text-soft);

  font-size: 0.68rem;
}

.info-card strong {
  margin-top: 2px;

  color: var(--text);

  font-size: 0.82rem;
}

.info-person {
  right: 0;

  top: 90px;
}

.info-origin {
  left: 0;

  bottom: 105px;
}

/* MENSAJE INFERIOR */

.project-message {
  position: absolute;

  z-index: 4;

  right: 50px;
  bottom: 30px;

  display: flex;

  flex-direction: column;

  padding: 13px 18px;

  background: var(--brand);

  border-radius: 13px;

  color: var(--white);

  box-shadow: 0 12px 28px rgba(47, 107, 89, 0.18);
}

.project-message span {
  margin-bottom: 3px;

  color: rgba(255, 255, 255, 0.68);

  font-size: 0.62rem;

  font-weight: 700;

  letter-spacing: 0.12em;
}

.project-message strong {
  font-family: "Playfair Display", serif;

  font-size: 1rem;
}

/* ==========================================================
   PÁGINAS INTERIORES
========================================================== */

.page-main {
  flex: 1;

  min-height: calc(100vh - 76px - 74px);

  padding: 45px 0;

  background: var(--cream);
}

/* ==========================================================
   CONTENIDO ADMINISTRATIVO
========================================================== */

.content-wrapper {
  flex: 1;
  width: 100%;

  background: var(--cream);
}

/* ==========================================================
   FOOTER COMPACTO
========================================================== */

.main-footer {
  min-height: 74px;

  display: flex;

  align-items: center;

  background: var(--footer);

  color: rgba(255, 255, 255, 0.68);

  flex-shrink: 0;

  margin-top: auto;
}

.footer-simple {
  min-height: 74px;

  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  gap: 30px;

  font-size: 0.76rem;
}

.footer-simple > div:first-child {
  display: flex;

  align-items: center;

  gap: 12px;
}

.footer-logo {
  color: var(--white);

  font-size: 0.78rem;

  letter-spacing: 0.08em;

  white-space: nowrap;
}

.footer-links {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 22px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);

  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  justify-self: end;

  color: rgba(255, 255, 255, 0.45);

  white-space: nowrap;
}

/* ==========================================================
   RESPONSIVE TABLET
========================================================== */

@media (max-width: 991px) {
  .main-navbar {
    min-height: 70px;
  }

  .navbar-collapse {
    padding: 18px 0 10px;
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .nav-link.active::after {
    display: none;
  }

  .navbar-nav .btn {
    margin-top: 8px;
  }

  .home-main {
    min-height: auto;

    overflow: visible;

    padding: 50px 0;
  }

  .home-content {
    max-width: 760px;

    margin: 0 auto;

    text-align: center;
  }

  .home-content > p {
    margin-left: auto;
    margin-right: auto;
  }

  .starting-message {
    margin-left: auto;
    margin-right: auto;

    text-align: left;
  }

  .home-actions {
    justify-content: center;
  }

  .home-trust {
    justify-content: center;
  }

  .home-visual {
    margin-top: 15px;
  }

  .footer-simple {
    grid-template-columns: 1fr;

    gap: 12px;

    padding: 22px 0;

    text-align: center;
  }

  .footer-simple > div:first-child,
  .footer-links {
    justify-content: center;
  }

  .footer-copy {
    justify-self: center;
  }
}

/* ==========================================================
   CARRUSEL PORTADA
========================================================== */

.home-carousel {
  position: relative;
  width: 100%;
}

.home-carousel .carousel-inner {
  overflow: hidden;
  border-radius: 28px;
}

.home-carousel .carousel-item {
  min-height: 500px;
}

/* ==========================================================
   PRODUCTO EN CARRUSEL
========================================================== */

.producto-slide {
  position: relative;

  min-height: 500px;

  overflow: hidden;

  border-radius: 28px;

  background: var(--white);

  box-shadow: var(--shadow);
}

/* IMAGEN */

.producto-slide-imagen {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;
}

.producto-slide-imagen::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(20, 35, 30, 0.82) 0%,
    rgba(20, 35, 30, 0.58) 40%,
    rgba(20, 35, 30, 0.08) 100%
  );
}

.producto-slide-imagen img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* SIN IMAGEN */

.producto-sin-imagen {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 10px;

  background: linear-gradient(135deg, var(--earth-light), var(--cream));

  color: var(--earth);
}

.producto-sin-imagen i {
  font-size: 4rem;
}

/* ==========================================================
   CATEGORÍAS PÚBLICAS
========================================================== */

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

/* TARJETA */

.categoria-card {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 18px;

  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;

  text-decoration: none;
  color: inherit;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.categoria-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* IMAGEN */

.categoria-imagen {
  width: 95px;
  height: 80px;

  min-width: 95px;

  overflow: hidden;

  border-radius: 12px;

  background: #f1eee7;
}

.categoria-imagen img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}

/* CUANDO NO HAY IMAGEN */

.categoria-sin-imagen {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.6rem;
  color: #777;
}

/* INFORMACIÓN */

.categoria-info {
  flex: 1;
  min-width: 0;
}

.categoria-info h3 {
  margin: 0 0 6px 0;

  font-size: 1.08rem;
  font-weight: 700;
}

.categoria-info p {
  margin: 0 0 8px 0;

  font-size: 0.9rem;
  line-height: 1.4;

  color: #6c6c6c;
}

.categoria-total {
  font-size: 0.82rem;
  font-weight: 600;
}

/* FLECHA */

.categoria-arrow {
  flex-shrink: 0;

  font-size: 1.2rem;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .categorias-grid {
    grid-template-columns: 1fr;
  }

  .categoria-imagen {
    width: 80px;
    height: 70px;
    min-width: 80px;
  }
}

/* ==========================================================
   INFORMACIÓN PRODUCTO
========================================================== */

.producto-slide-info {
  position: relative;

  z-index: 3;

  min-height: 500px;

  width: 62%;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 45px;

  color: var(--white);
}

.producto-slide-label {
  margin-bottom: 10px;

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 0.12em;

  color: #f1d2a5;
}

.producto-slide-info h2 {
  margin-bottom: 10px;

  font-family: "Playfair Display", serif;

  font-size: 2.2rem;

  font-weight: 700;

  color: var(--white);
}

.producto-slide-info p {
  margin-bottom: 14px;

  color: rgba(255, 255, 255, 0.82);

  line-height: 1.6;
}

.producto-slide-precio {
  margin-bottom: 18px;

  font-size: 1.4rem;

  font-weight: 700;
}

.producto-slide-precio small {
  font-size: 0.75rem;

  font-weight: 500;

  opacity: 0.8;
}

/* ==========================================================
   ETIQUETA RECIÉN LLEGADO
========================================================== */

.producto-slide-badge {
  position: absolute;

  z-index: 5;

  top: 22px;
  left: 22px;

  display: flex;
  align-items: center;

  gap: 7px;

  padding: 8px 14px;

  border-radius: 30px;

  background: rgba(255, 255, 255, 0.92);

  color: var(--brand-dark);

  font-size: 0.75rem;

  font-weight: 700;

  box-shadow: var(--shadow-small);
}

/* ==========================================================
   FLECHAS
========================================================== */

.home-carousel-prev,
.home-carousel-next {
  top: 50%;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: var(--white);

  color: var(--brand);

  opacity: 1;

  box-shadow: var(--shadow-small);

  transform: translateY(-50%);
}

.home-carousel-prev {
  left: -20px;
}

.home-carousel-next {
  right: -20px;
}

.home-carousel-prev i,
.home-carousel-next i {
  font-size: 1.2rem;
}

/* ==========================================================
   INDICADORES
========================================================== */

.home-carousel-indicators {
  bottom: 12px;

  margin-bottom: 0;
}

.home-carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;

  margin: 0 4px;

  border: 0;

  border-radius: 50%;

  background-color: rgba(255, 255, 255, 0.7);
}

.home-carousel-indicators .active {
  width: 24px;

  border-radius: 10px;

  background-color: var(--brand);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 991px) {
  .home-carousel .carousel-item,
  .producto-slide,
  .producto-slide-info {
    min-height: 430px;
  }

  .producto-slide-info {
    width: 75%;
    padding: 35px;
  }

  .producto-slide-info h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .home-carousel .carousel-item,
  .producto-slide,
  .producto-slide-info {
    min-height: 390px;
  }

  .producto-slide-info {
    width: 100%;

    padding: 30px 25px 45px;
  }

  .producto-slide-imagen::after {
    background: linear-gradient(
      0deg,
      rgba(20, 35, 30, 0.92) 0%,
      rgba(20, 35, 30, 0.35) 100%
    );
  }

  .producto-slide-info h2 {
    font-size: 1.6rem;
  }

  .home-carousel-prev {
    left: 5px;
  }

  .home-carousel-next {
    right: 5px;
  }
}

/* ==========================================================
   RESPONSIVE MÓVIL
========================================================== */

@media (max-width: 576px) {
  .brand-symbol {
    width: 40px;
    height: 40px;

    flex-basis: 40px;
  }

  .brand-text strong {
    font-size: 0.78rem;
  }

  .brand-text small {
    font-size: 0.6rem;
  }

  .home-main {
    padding: 35px 0;
  }

  .home-content {
    padding: 10px 0;
  }

  .eyebrow {
    font-size: 0.65rem;
  }

  .home-content h1 {
    font-size: 2.65rem;
  }

  .home-content > p {
    font-size: 0.95rem;
  }

  .home-actions {
    flex-direction: column;
  }

  .home-actions .btn {
    width: 100%;
  }

  .home-trust {
    flex-direction: column;

    align-items: center;

    gap: 10px;
  }

  .home-visual {
    height: 350px;
  }

  .visual-circle {
    width: 270px;
    height: 270px;
  }

  .visual-circle::before {
    width: 230px;
    height: 230px;

    left: 20px;
    top: 20px;
  }

  .hands {
    width: 205px;
    height: 170px;
  }

  .hands span {
    font-size: 4rem;
  }

  .info-card {
    min-width: 145px;

    padding: 9px 11px;
  }

  .info-person {
    right: 0;

    top: 40px;
  }

  .info-origin {
    left: 0;

    bottom: 55px;
  }

  .project-message {
    right: 15px;
    bottom: 5px;
  }

  .footer-simple > div:first-child {
    flex-direction: column;

    gap: 5px;
  }

  .footer-links {
    flex-wrap: wrap;

    gap: 10px 18px;
  }
}
