:root {
  --verde: #86b872;
  --verde-oscuro: #5a8a45;
  --verde-claro: #eef6e9;
  --amarillo: #f5c311;
  --amarillo-claro: #fffbe6;
  --rojo: #e0465f;
  --negro: #1e1e1e;
  --crema: #faf7f2;
  --cafe-oscuro: #2c1a0e;

  --glow-rojo: 0 0 15px rgba(224, 70, 95, 0.6), 0 0 30px rgba(224, 70, 95, 0.2);
  --glow-amarillo:
    0 0 15px rgba(245, 195, 17, 0.6), 0 0 30px rgba(245, 195, 17, 0.2);
  --glow-verde:
    0 0 15px rgba(134, 184, 114, 0.6), 0 0 30px rgba(134, 184, 114, 0.2);
}

/* NAVBAR  */
.navbar-custom {
  background: linear-gradient(
    135deg,
    var(--verde-oscuro) 0%,
    var(--verde) 100%
  ) !important;
  padding: 10px 0;
  min-height: 80px;
}

@media (min-width: 992px) {
  .logo-container {
    position: absolute;
    top: -5px;
    background: var(--crema);
    padding: 8px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .logo-navbar {
    height: 75px;
    width: auto;
    border-radius: 10px;
    transition: transform 0.3s;
  }
  .logo-container:hover .logo-navbar {
    transform: scale(1.05);
  }
  .brand-text {
    color: white !important;
    margin-left: 100px;
    font-size: 1.3rem;
    font-weight: 700;
    display: inline;
  }
}

@media (max-width: 991px) {
  .navbar-custom {
    min-height: 64px;
    padding: 8px 0;
  }
  .logo-container {
    position: static;
    background: var(--crema);
    padding: 4px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 10px;
    flex-shrink: 0;
  }
  .logo-navbar {
    height: 40px;
    width: auto;
    border-radius: 7px;
    transition: transform 0.3s;
  }
  .navbar-brand {
    display: flex !important;
    align-items: center;
    max-width: calc(100% - 60px);
  }
  .brand-text {
    color: white !important;
    margin-left: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .navbar-collapse {
    margin-top: 10px;
    background: var(--verde-oscuro);
    border-radius: 12px;
    padding: 10px 15px;
  }
  .nav-link {
    margin: 4px 0;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s;
  }
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
  }
}

.nav-link {
  color: white !important;
  font-weight: 600;
  margin: 0 10px;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background: var(--amarillo);
  transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-catalogo {
  background: var(--amarillo);
  color: var(--negro);
  border-radius: 50px;
  font-weight: 700;
  padding: 10px 25px;
  border: none;
  transition: 0.3s;
}
.btn-catalogo:hover {
  background: white;
  color: var(--verde-oscuro);
  transform: translateY(-3px);
}

/*  CARRUSEL */
#carruselEufonias {
  height: 85vh;
  min-height: 500px;
  background: var(--cafe-oscuro);
}
.carousel-inner,
.carousel-item {
  height: 100%;
}
.carousel-modern-img,
.carousel-modern-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.overlay-modern {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 26, 14, 0.75) 0%,
    rgba(90, 138, 69, 0.25) 100%
  );
  z-index: 1;
}
.modern-caption {
  z-index: 2;
  bottom: 15% !important;
  left: 8% !important;
  text-align: left !important;
}
.modern-caption h1,
.modern-caption p {
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.8);
}
.caption-box {
  background: rgba(44, 26, 14, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 25px;
  border: 1px solid rgba(245, 195, 17, 0.25);
  display: inline-block;
  max-width: 650px;
}
.custom-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 8px;
  background-color: var(--amarillo);
  border: none;
}
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  #carruselEufonias {
    height: 70vh;
  }
  .modern-caption {
    bottom: 10% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex;
    justify-content: center;
  }
  .caption-box {
    padding: 25px;
    margin: 0 15px;
  }
  .modern-caption h1 {
    font-size: 2.5rem !important;
  }
}

/* PROPÓSITO */
.seccion-proposito {
  background: var(--crema);
}
.img-wrapper {
  border-radius: 20px;
  overflow: hidden;
}
.img-flotante {
  transition: transform 0.4s ease;
}
.img-flotante:hover {
  transform: scale(1.02);
}

.btn-proposito-primario {
  background: var(--verde-oscuro);
  color: white;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 700;
  border: none;
  transition: 0.3s;
}
.btn-proposito-primario:hover {
  background: var(--verde);
  color: white;
  transform: translateY(-3px);
}

.btn-proposito-secundario {
  background: var(--amarillo);
  color: var(--negro);
  border: 2px solid var(--amarillo);
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 700;
  transition: 0.3s;
}
.btn-proposito-secundario:hover {
  background: transparent;
  color: var(--negro);
  transform: translateY(-3px);
}

/* NOSOTRAS */
#nosotras {
  background: var(--verde-claro) !important;
}
#nosotras .text-rojo {
  color: var(--verde-oscuro) !important;
  text-shadow: none;
}
#nosotras h3.text-rojo {
  color: var(--verde-oscuro) !important;
}

.divider-rojo {
  width: 60px;
  height: 5px;
  background: var(--amarillo);
  border-radius: 10px;
  margin-bottom: 20px;
}
.icon-circle-rojo {
  width: 70px;
  height: 70px;
  background: var(--verde-oscuro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}
.card-nosotras-roja {
  background: white;
  border-radius: 25px;
  border-top: 5px solid var(--verde);
  transition: transform 0.3s;
}
.card-nosotras-roja:hover {
  transform: translateY(-10px);
}

/*  PRODUCTOS */
#productos {
  background: var(--crema) !important;
}
#productos .text-rojo {
  color: var(--verde-oscuro) !important;
  text-shadow: none;
}

.producto-card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(134, 184, 114, 0.2);
  height: 100%;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.producto-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(134, 184, 114, 0.2);
}
.producto-img-box {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.producto-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.producto-card:hover .producto-img-box img {
  transform: scale(1.1);
}

.producto-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--amarillo);
  color: var(--negro);
  padding: 8px 15px;
  border-radius: 50px;
  font-weight: 800;
  z-index: 3;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.producto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(90, 138, 69, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.producto-card:hover .producto-overlay {
  opacity: 1;
  transform: translateY(0);
}
.overlay-content {
  color: white;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .producto-overlay {
    position: relative;
    transform: translateY(0);
    opacity: 1;
    background: var(--verde-claro);
    height: auto;
  }
  .overlay-content {
    color: var(--negro);
  }
}

/* Botón global — amarillo por defecto */
.btn-rojo {
  background: var(--amarillo);
  color: var(--negro);
  border: none;
  font-weight: 700;
  transition:
    background 0.3s,
    transform 0.3s,
    color 0.3s;
}
.btn-rojo:hover {
  background: var(--verde-oscuro);
  color: white;
  transform: translateY(-2px);
}

/* Excepción: botón cerrar modal sí puede ser verde oscuro */
.modal .btn-rojo {
  background: var(--verde-oscuro);
  color: white;
}
.modal .btn-rojo:hover {
  background: var(--verde);
  color: white;
}

/* IMPACTO */
#impacto {
  background: var(--cafe-oscuro) !important;
  position: relative;
  overflow: hidden;
}
#impacto::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
#impacto .container {
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 50px 30px;
  border-radius: 30px;
  border: 1px solid rgba(245, 195, 17, 0.15);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.4s,
    box-shadow 0.4s;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(245, 195, 17, 0.07),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(245, 195, 17, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.stat-icon {
  font-size: 2.5rem;
  opacity: 0.85;
}
.stat-value {
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -2px;
  display: block;
  margin-bottom: 5px;
  transition:
    transform 0.5s ease,
    text-shadow 0.5s ease;
}
.stat-card:hover .stat-value {
  transform: scale(1.1);
  text-shadow: 0 0 30px currentColor;
}
.stat-label {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}
.stat-bar {
  height: 5px;
  width: 50px;
  border-radius: 10px;
  margin: 15px auto 0;
  transition: box-shadow 0.4s;
}
.stat-card:hover .bg-rojo {
  box-shadow: 0 0 20px var(--rojo);
}
.stat-card:hover .bg-amarillo {
  box-shadow: 0 0 20px var(--amarillo);
}
.stat-card:hover .bg-verde {
  box-shadow: 0 0 20px var(--verde);
}

.text-rojo {
  color: var(--rojo) !important;
  text-shadow: var(--glow-rojo);
}
.text-amarillo {
  color: var(--amarillo) !important;
  text-shadow: var(--glow-amarillo);
}
.text-verde {
  color: var(--verde) !important;
  text-shadow: var(--glow-verde);
}
.bg-rojo {
  background-color: var(--rojo) !important;
}
.bg-amarillo {
  background-color: var(--amarillo) !important;
}
.bg-verde {
  background-color: var(--verde) !important;
}

/* BLOG / HISTORIAS */
#historias {
  background: var(--crema) !important;
}
#historias .text-rojo {
  color: var(--verde-oscuro) !important;
  text-shadow: none;
}

.story-entry {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(134, 184, 114, 0.15);
  cursor: pointer;
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s;
}
.story-entry:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(134, 184, 114, 0.18);
}
.story-thumb {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.story-entry:hover .story-thumb img {
  transform: scale(1.1);
}
.story-overlay-gradient {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(44, 26, 14, 0.5), transparent);
}
.story-category {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  background: var(--verde-oscuro) !important;
  color: white !important;
}
.story-content h3 {
  transition: color 0.3s;
}
.story-entry:hover .story-content h3 {
  color: var(--verde-oscuro);
}
.btn-read {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--negro);
  display: flex;
  align-items: center;
  margin-top: 15px;
}
.btn-read i {
  transition: transform 0.3s;
  font-size: 1.2rem;
}
.story-entry:hover .btn-read i {
  transform: rotate(90deg) scale(1.2);
  color: var(--verde-oscuro);
}

/* MODAL */
.modal-backdrop.show {
  opacity: 0.8;
  backdrop-filter: blur(5px);
}

/* CONTACTO */
#contacto {
  background: var(--cafe-oscuro) !important;
}
.blob-bg-rojo,
.blob-bg-verde {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.blob-bg-rojo {
  background: var(--amarillo);
  top: -100px;
  left: -100px;
}
.blob-bg-verde {
  background: var(--verde);
  bottom: -100px;
  right: -100px;
}
.contact-glass-card {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}
.border-radius-custom {
  border-radius: 30px 0 0 30px;
}
.border-radius-right {
  border-radius: 0 30px 30px 0;
}

/* Panel lateral → verde oscuro en lugar de rojo */
#contacto .bg-rojo {
  background: var(--verde-oscuro) !important;
}

.custom-input {
  border: 2px solid #e0e0e0;
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--crema);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.custom-input:focus {
  border-color: var(--verde);
  outline: none;
  box-shadow: 0 0 0 3px rgba(134, 184, 114, 0.2);
}
#formContacto button[type="submit"] {
  background: var(--amarillo) !important;
  color: var(--negro) !important;
}
#formContacto button[type="submit"]:hover {
  background: var(--verde-oscuro) !important;
  color: white !important;
}
.icon-box-white {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* FOOTER */
.footer-moderno {
  background-color: var(--cafe-oscuro);
  color: #a0a0a0;
  font-size: 0.95rem;
}
.footer-accent-bar {
  display: flex;
  height: 6px;
  width: 100%;
}
.bar-item {
  flex: 1;
}
.footer-logo-wrapper {
  width: 90px;
  height: 90px;
  background: var(--crema);
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(245, 195, 17, 0.3);
}
.footer-description {
  line-height: 1.8;
  max-width: 350px;
}
.footer-title {
  color: var(--amarillo);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 25px;
}
.footer-menu li {
  margin-bottom: 12px;
}
.footer-menu a {
  color: #a0a0a0;
  text-decoration: none;
  display: inline-block;
  transition:
    color 0.3s,
    transform 0.3s;
}
.footer-menu a:hover {
  color: var(--amarillo);
  transform: translateX(8px);
}
.footer-info {
  font-size: 0.9rem;
  color: #ccc;
}
.footer-info .text-rojo {
  color: var(--amarillo) !important;
  text-shadow: none;
}
.social-circle {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(245, 195, 17, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-circle:hover {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--negro);
  transform: translateY(-5px) rotate(15deg);
}
.footer-divider {
  border-color: rgba(255, 255, 255, 0.05);
  margin: 40px 0 30px;
}
.footer-bottom {
  font-size: 0.8rem;
  opacity: 0.6;
}
.footer-legal a {
  color: inherit;
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--amarillo);
}

@media (max-width: 767px) {
  .footer-moderno {
    text-align: center;
  }
  .footer-description {
    margin: 0 auto 20px;
  }
  .footer-menu a:hover {
    transform: none;
  }
  .footer-title {
    margin-bottom: 15px;
    margin-top: 10px;
  }
}

/*  SCROLL REVEAL */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] {
  transform: translateX(-40px);
}
[data-reveal="right"] {
  transform: translateX(40px);
}
[data-reveal="left"].revealed,
[data-reveal="right"].revealed {
  transform: translateX(0);
}
[data-delay="1"] {
  transition-delay: 0.1s;
}
[data-delay="2"] {
  transition-delay: 0.2s;
}
[data-delay="3"] {
  transition-delay: 0.3s;
}
[data-delay="4"] {
  transition-delay: 0.4s;
}
[data-delay="5"] {
  transition-delay: 0.5s;
}

/* CURSOR PERSONALIZADO */
.cursor-dot,
.cursor-ring {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  z-index: 9999;
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--amarillo);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid var(--verde);
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    border-color 0.2s;
}
.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--amarillo);
}
@media (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}
