/* En esta parte del root lo defini para que el diseño se más responsivo */
/* Para darle un tono ambiestalista a la página, y que se vea más amigable */
:root {
  --eco-primary: #198754;
  --eco-primary-strong: #157347;
  --eco-dark: #0f5132;
  --eco-soft: #e9f7ef;
  --eco-soft-2: #f4fff8;
  --text-soft: #3f5f50;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}

.eco-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e2f2e8;
}

.navbar-brand {
  color: var(--eco-dark);
  letter-spacing: 0.2px;
}

.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(21, 115, 71, 0.28);
}

.brand-phrase {
  margin-left: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f7a4d;
  border-left: 2px solid #9be7bc;
  padding-left: 0.6rem;
  opacity: 0.9;
}

.nav-link {
  font-weight: 600;
  color: #265f46;
  position: relative;
}

.nav-link:hover {
  color: var(--eco-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--eco-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.hero-section {
  background: linear-gradient(180deg, #c8f8d9 0%, #c3f8d5 45%, #cffade 100%);
}

.eco-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #4ab36f;
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.hero-copy {
  max-width: 60ch;
  line-height: 1.75;
  color: var(--text-soft);
}

.eco-highlight-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fff9 100%);
  border: 1px solid #ddf3e4 !important;
  border-radius: 1rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--eco-dark);
}

.impact-card {
  background: linear-gradient(180deg, #ecfdf3 0%, #e3f7ec 100%);
  border: 1px solid #bfe7ce;
  border-radius: 0.9rem;
  padding: 0.75rem;
  height: 100%;
  font-weight: 500;
  line-height: 1.6;
  box-shadow: 0 8px 20px rgba(16, 70, 40, 0.09);
}

.impact-card p {
  margin: 0;
  padding: 0.5rem 0.25rem 0.2rem;
  font-weight: 600;
  color: #11412b;
}

.impact-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.65rem;
  border: 1px solid #caeeda;
}

.impact-card-carousel {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 1rem;
}

.impact-image-lg {
  height: 300px;
  object-position: center 35%;
}

.impact-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: linear-gradient(180deg, rgba(18, 90, 56, 0.68) 0%, rgba(12, 76, 45, 0.74) 100%);
  color: #f0fdf4;
  border: 1px solid rgba(167, 243, 208, 0.55);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(2px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.impact-overlay h3 {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  color: #f0fdf4;
}

.impact-overlay p {
  margin: 0;
  color: #f0fdf4;
  line-height: 1.55;
}

.impact-card-carousel:hover .impact-overlay {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

#impactCarousel {
  border: 1px solid #62e099;
  border-radius: 1rem;
  background: linear-gradient(180deg, #abd4b9 0%, #d4f8e0 100%);
  padding: 0.75rem;
}

#resultadoClasificacion {
  font-weight: 600;
}

.card-punto {
  border: 1px solid #dbe7e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(10, 40, 20, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-punto:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(10, 40, 20, 0.12);
}

.card-punto .badge {
  font-size: 0.75rem;
}

.mensaje-ok {
  background: #e9f7ef;
  border: 1px solid #badbcc;
  color: #0f5132;
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
}

.mensaje-error {
  background: #fff3cd;
  border: 1px solid #ffe69c;
  color: #664d03;
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
}

.btn-success {
  background: var(--eco-primary);
  border-color: var(--eco-primary);
}

.btn-success:hover {
  background: var(--eco-primary-strong);
  border-color: var(--eco-primary-strong);
}

.list-group-item {
  border-left: 4px solid #d7f3e3;
}

p,
li {
  line-height: 1.7;
}

.caneca-resultado {
  display: flex;
  justify-content: center;
}

.caneca {
  width: min(260px, 100%);
  text-align: center;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.12));
}

.caneca-tapa {
  height: 16px;
  border-radius: 10px 10px 4px 4px;
  margin: 0 auto;
  width: 84%;
}

.caneca-cuerpo {
  min-height: 130px;
  border-radius: 0 0 24px 24px;
  padding: 1rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1.4;
}

.caneca-blanca .caneca-tapa { background: #e5e7eb; }
.caneca-blanca .caneca-cuerpo {
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
  border: 2px solid #d1d5db;
  color: #1f2937;
}

.caneca-verde .caneca-tapa { background: #047857; }
.caneca-verde .caneca-cuerpo {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border: 2px solid #047857;
  color: #ecfdf5;
}

.caneca-negra .caneca-tapa { background: #111827; }
.caneca-negra .caneca-cuerpo {
  background: linear-gradient(180deg, #374151 0%, #111827 100%);
  border: 2px solid #030712;
  color: #f9fafb;
}

.caneca-roja .caneca-tapa { background: #b91c1c; }
.caneca-roja .caneca-cuerpo {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  border: 2px solid #b91c1c;
  color: #fff1f2;
}

.caneca-neutra .caneca-tapa { background: #64748b; }
.caneca-neutra .caneca-cuerpo {
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
  border: 2px solid #64748b;
  color: #0f172a;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8fff1;
  border: 1px solid #8ed6ac;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(5, 85, 47, 0.25);
  background: #c9f4db;
}

.social-links img {
  width: 17px;
  height: 17px;
  filter: invert(29%) sepia(38%) saturate(1228%) hue-rotate(103deg) brightness(94%) contrast(92%);
}

.social-links a:nth-child(3) img {
  filter: invert(42%) sepia(94%) saturate(697%) hue-rotate(93deg) brightness(92%) contrast(98%);
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.contact-icon {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .impact-image-lg {
    height: 250px;
    object-position: center;
  }

  .impact-card-carousel {
    min-height: 330px;
  }
}
