:root {
  --bg-primary: #efefef;
  --bg-secondary: #f5f5f5;
  --bg-dark: #2c2c2c;
  --text-primary: #000;
  --text-secondary: #4f4f4f;
  --text-light: #757575;
  --text-white: #fff;
  --nav-bg: black;
  --border-color: #ddd;
  --bg-card-color: #2b2b2b;
  --text-color-card:var(--bg-primary);
  --chat-bot-text: #3e6213;
}

html.dark-mode {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-dark: #0f0f0f;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-light: #888;
  --text-white: #e0e0e0;
  --nav-bg: #1a1a1a;
  --border-color: #444;
  --bg-card-color: #e8e8e8;
  --text-color-card: #383838;
  --chat-bot-text: #81d61b;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
  view-transition-name: root;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

body {
  font-family: "Geist", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  height: 100%;
  margin: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  height: 100vh;
  position: relative;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.fade-in.animated {
  opacity: 1;
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.animated {
  opacity: 1;
  transform: scale(1);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.scale-x {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease-out;
}

.scale-x.animated {
  transform: scaleX(1);
}

.call-to-action {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
}

/* Hero Section */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 90vh;
  opacity: 0.91;
  background: url(./images/hero-bg-img.png) no-repeat center center;
  background-size: cover;
  background-color: black;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-blur {
  position: absolute;
  top: 170px;
  left: 0;
  width: 100%;
  height: 315px;
  backdrop-filter: blur(18.35px);
  background: rgba(0, 0, 0, 0.09);
}

nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: end;
  background: black;
  align-items: center;
  min-height: 4rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  margin-left: 1rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle-bar {
  width: 26px;
  height: 2px;
  background: white;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.2) rotate(20deg);
}

.logo {
  height: 80px;
}

.nav-menu {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin-right: 2rem;
  align-items: center;
}


.nav-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 1.4px;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: white;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 0 5rem;
}

.hero-phrases {
  position: relative;
  min-height: 120px;
  display: flex;
  place-content: center;
}

.hero-title {
  font-weight: 100;
  font-size: 29px;
  color: white;
  letter-spacing: 5.22px;
  text-transform: uppercase;
  text-shadow: 0px 8px 20.5px rgba(0, 0, 0, 0.45);
  margin-top: 6rem;
  position: absolute;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-title.active {
  opacity: 1;
}

.hero-cta {
 position: absolute;
    bottom: 1rem;
        left: 77%;
    max-width: 1474px;
    display: flex;
    align-items: center;
    z-index: 2;
    background: #f5f5f533;
    padding: 5px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
}

.cta-banner {
  height: 50px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-banner h1 {
  font-weight: 600;
  font-size: 24px;
  color: white;
  letter-spacing: -0.48px;
  text-transform: capitalize;
  text-shadow: 0px 8px 20.5px rgba(0, 0, 0, 0.45);
}

.cta-text {
margin-left: 1rem;
    font-weight: 500;
    font-size: 16px;
color: var(--chat-bot-text);
    letter-spacing: -0.4px;
    text-shadow: 0px 8px 20.5px rgba(0, 0, 0, 0.45);
    font-family: 'Montserrat', sans-serif;
    mix-blend-mode: plus-lighter;
}

.main-hero-logo {
  display: flex;
  align-self: center;
  place-content: center;
}

/* About Section */
#nosotros {
  padding: 5rem;
  background: var(--bg-primary);
  margin-top: 2rem;
      display: flex;
    flex-wrap: wrap;
    place-content: space-between;
}

.section-title {
  font-weight: 700;
  font-size: 40px;
  color: var(--text-primary);
  letter-spacing: 7.2px;
  text-transform: uppercase;
  margin-bottom: 3rem;
  margin-top: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem; 
   p {
    margin: 0;
    text-align: justify;
    font-weight: 500;  
  }
}

.about-text {
  font-family: "Montserrat", sans-serif;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.4px;
  line-height: 1.35;
}

.mission-vision {
  position: relative;
  margin-top: 5rem;
}

.mvp-bg {
  position: relative;
  backdrop-filter: blur(9.85px);
  background: #76BC21;
  height: 100px;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.mvp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 0.5rem;
}

.banner-bottom-bg {
  background: url(./images/bg-metal.png) top center no-repeat;
  height: 9rem;
  place-content: center;
}

.mvp-label {
  font-weight: 200;
  font-size: 24px;
  color: var(--text-light);
  text-align: center;
  letter-spacing: 4.32px;
}

.mvp-text {
  font-weight: 500;
  font-size: 30px;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: -1.5px;
}

.mvp-value {
  font-weight: 200;
  font-size: 30px;
  color: var(--text-white);
  text-align: center;
  letter-spacing: -1.5px;
}

.cta-button {
  background: var(--bg-dark);
  padding: 18px 24px;
  border-radius: 500px;
  color: var(--text-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.32px;
  cursor: pointer;
  border: none;
  box-shadow: 3px 1px 10px darkslategray;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #0f0f0f;
}

/* Services Section */
#servicios {
  position: relative;
  padding: 5rem 5rem;
  background: var(--bg-primary);
}

.services-overlay {
 position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 97%;
    height: 73vh;
    backdrop-filter: blur(9.85px);
  background: rgba(0, 0, 0, 0.66);
}

.services-one {
    padding: 1rem;
}

.services-two {
  backdrop-filter: blur(9.85px);
    background: rgb(0 0 0 / 57%);
    padding: 1rem;
    border-radius: 1rem;
}

.services-content {
position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    place-items: center;
    height: 100%;
    padding: 1rem;
  /* Dark gray overlay + semi-transparent background image */
  background: linear-gradient(rgb(45 45 45 / 48%), rgb(45 45 45 / 65%)), url(./images/services-bg.jpeg) -2px -139px no-repeat;
    background-size: cover;
  background-color: #2b2b2b; /* fallback dark gray */
}


.services-title {
  font-weight: 700;
  font-size: 64px;
  color: var(--text-white);
  letter-spacing: -3.2px;
  margin-bottom: 2rem;
}

.services-description {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  color: var(--text-white);
  letter-spacing: -0.4px;
  line-height: 1.35;
  max-width: 403px;
  margin: 0 auto 2rem;
}

.services-subtitle {
  font-weight: 700;
  font-size: 35px;
  color: var(--text-white);
  letter-spacing: 6.3px;
  margin-bottom: 1rem;
}

.pagination-dots {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #d9d9d9;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.dot.inactive {
  opacity: 0.5;
}

.dot.active {
  opacity: 1;
}

.dot:hover {
  opacity: 0.8;
}

/* Hidden class for toggling content */
.hidden {
  display: none;
}

/* Services content transition */
.services-description {
  transition: opacity 0.5s ease-in-out;
}

/* Dot animation on click */
@keyframes dotPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(118, 188, 33, 0.7);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(118, 188, 33, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(118, 188, 33, 0);
  }
}

.dot.animate-pulse {
  animation: dotPulse 0.6s ease-out;
}

/* Text fade and slide animation */
@keyframes textSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-description.text-animate {
  animation: textSlideIn 0.6s ease-out;
}

/* Materials Section */
#materiales {
  padding: 5rem;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  place-content: center;
  margin: 1rem;
  margin-top: 3.3rem;
}

.materials-title {
  font-size: 5rem;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -1.8px;
  line-height: 95px;
  margin-bottom: 1rem;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.material-card {
 background: var(--bg-card-color);
    border-radius: 12px;
    height: 299px;
    position: relative;
    overflow: hidden;
    display: flex;
    place-content: center;
    flex-direction: column;
    align-items: center;
}

.material-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 156px;
}

.material-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--text-color-card);
  text-align: center;
}

.material-image {
    width: 100%;
    height: 20%;
    margin-top: 0rem;
    margin-bottom: 1rem;
}

.cobre-cu {
    background: url(./images/cobre.jpg) repeat center center;
    background-size: contain;

}

.cobre-molido-cm {
    background: url(./images/cobremolido.jpeg) no-repeat center center;
    background-size: 100%;
}
.aluminio-al {
    background: url(./images/aluminio.jpeg) no-repeat center center;
    background-size: 100%;

}
.acero-inoxidable-ss {
    background: url(./images/acero.jpeg) no-repeat center center;
    background-size: 100%;
}
.hierro-fe {
    background: url(./images/fierro.jpeg) no-repeat center center;
    background-size: 100%;
}  

.material-items {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: var(--text-color-card);
  text-align: center;
  line-height: 1.1;
}

.material-arrow {
  width: 22px;
  height: 11px;
}

/* Solutions Section */
.solutions-title {
  font-size: 5rem;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -1.8px;
  line-height: 95px;
  margin-bottom: 4rem;
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.icon-wrapper {
    position: relative;
    top: -3rem;
    text-align: center;
}

.icon-wrapper img {
  height: 174px;
  width: auto;
  object-fit: contain;
}

.green-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.green-bar {
  background: #76bc21;
  height: 14px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.solution-card {
  background: #2b2b2b;
  border-radius: 8px;
  box-shadow: 4px 5px 4.5px 4px rgba(0, 0, 0, 0.25);
  height: 293.31px;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  place-content: space-between;

}

.solution-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-white);
  text-align: center;
  letter-spacing: -0.32px;
      margin-top: -3rem;
  line-height: 1.35;
}

#soluciones {
  display: flex;
  flex-direction: column;
  place-content: center;
  background: var(--bg-primary);
  margin: 1rem;
  margin-top: 3.3rem;
}

.recepcion-icon {
    background: url(./images/boxes.png) no-repeat center center;
    background-size: contain;
       width: 100%;
    height: 7rem;
    margin-top: -1rem;
}

.residuo-icon {
    background: url(./images/reciclying1.png) no-repeat center center;
    background-size: contain;
     width: 100%;
    height: 7rem;
    margin-top: -1rem;
} 

.rentabilidad-icon{
    background: url(./images/volteo.png) no-repeat center center;
    background-size: contain;
    width: 100%;
    height: 7rem;
    margin-top: -1rem;
}

.infraestructura-icon {
    background: url(./images/manochango.png) no-repeat center center;
    background-size: contain;
    width: 100%;
    height: 7rem;
    margin-top: -1rem;
}


/* What Moves Us Section */
#what-moves-us {
  padding: 5rem;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  place-content: center;
  margin-top: 1.5rem;
  height: 130vh;
}


.what-moves-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.what-title {
  font-size: 3rem;
  color: var(--text-primary);
  letter-spacing: -1.8px;
  line-height: 5rem;
  margin-bottom: 0.25rem;
}

.what-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.what-moves-image {
    background: url(images/almacencobre.jpg) repeat center center;
    background-size: 100%;
}

.normativa {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.normativa-text {
  font-family: "Montserrat", sans-serif;
  font-size: small;
  color: var(--text-primary);
  text-align: center;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 10px;
}

.bullet-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.bullet-icon {
  background: var(--bg-secondary);
  padding: 17.723px;
  border-radius: 36px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bullet-text {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.1;
  flex: 1;
}

/* Contact Section */
#contacto {
  padding: 5rem;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  place-content: center;
  padding-top: 10rem;
  margin-top: 5rem;
  height: 103vh;
}

.contact-email {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #76BC21;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  margin: 0 auto 3rem;
}

.contact-map {
  width: 100%;
  min-height: 320px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  background: var(--bg-secondary);
  border: 0.5px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.15);
  height: 56px;
  padding: 0 1rem;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.form-textarea {
  background: var(--bg-secondary);
  border: 0.5px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0px 0px 3px 2px rgba(0, 0, 0, 0.15);
    height: 230px;
    padding: 1rem;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    resize: none;
    font-family: "Geist", sans-serif;
}

.form-button {
  background: #76BC21;
  height: 54px;
  border-radius: 5px;
  width: 273px;
  border: none;
  cursor: pointer;
  margin: 0 auto;
  font-family: "Inria Sans", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text-white);
  letter-spacing: 3.36px;
  transition: background 0.3s;
}

.form-button:hover {
  background: #5f9619;
}

.contact-info-text {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.4;
  max-width: 420px;
}

/* Footer */
footer {
  background: black;
  height: 61px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  margin-top: 5rem;
}

footer p {
  font-family: "EB Garamond", serif;
  font-weight: 600;
  font-size: 15px;
  color: white;
  text-align: center;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--bg-dark);
  color: var(--text-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-hidden {
  display: none;
}

.cookie-consent-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

.cookie-btn-primary {
  background: var(--chat-bot-text);
  color: var(--text-white);
  border-color: var(--chat-bot-text);
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--text-white);
}

.cookie-consent-ack {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-white);
  min-width: 160px;
  text-align: right;
}

@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }

  .cookie-consent-ack {
    min-width: 0;
    text-align: left;
  }
}

/* Responsive */
@media (max-width: 1000px) {
  .materials-grid,
  .solutions-grid,
  .icons-grid,
  .green-bars {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .about-grid,
  .mvp-grid {
    grid-template-columns: 1fr;
  }

  .what-moves-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .materials-title,
  .solutions-title,
  .what-title {
    font-size: 48px;
    line-height: 52px;
  }

  .services-title {
    font-size: 40px;
    letter-spacing: 1.8px;

  }

  footer {
    margin-top: 13rem;
  }
}

@media (max-width: 992px) {
  section {
    height: auto;
    min-height: 100vh;
  }

  nav {
    justify-content: space-between;
    padding: 0 1rem;
  }

  .nav-menu {
    gap: 1.5rem;
    margin-right: 0;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }

  .hero-content {
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 24px;
    letter-spacing: 3px;
    margin-top: 4rem;
  }

  .main-hero-logo svg {
    width: 240px;
    height: auto;
  }

  .hero-cta {
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
  }

  #nosotros,
  #servicios,
  #contacto {
    padding: 0rem 1rem;
    margin-top: 5rem;
  }
 

  #materiales, #what-moves-us, #soluciones{
    padding: 1rem;
    margin-top: 5rem;
  }

  #what-moves-us {
   margin-top: 22.5rem
  }

  #contacto {
    margin-top: 37rem;
  }

  .bullet-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .solution-card {
    width: 154%;
  }

  .material-card {
        width: 100%;
  }

}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    margin-right: 0;
    z-index: 9;
  }

  .nav-menu.nav-open {
    transform: translateY(0);
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 0.5rem 0;
  }

  .hero-bg {
    height: 100vh;
  }

  .hero-blur {
    top: 120px;
    height: 260px;
  }

  .hero-phrases {
    min-height: 100px;
  }

  .hero-title {
    font-size: 20px;
    letter-spacing: 2.5px;
  }

  .cta-text {
    font-size: 14px;
  }

  .call-to-action {
    margin-top: 3rem;
  }

  .section-title {
    font-size: 32px;
    letter-spacing: 4px;
  }

  .materials-title,
  .solutions-title,
  .what-title {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -1px;
  }

  .contact-email {
    font-size: 20px;
  }

  .form-input,
  .form-textarea {
    font-size: 16px;
  }

  .form-button {
    width: 100%;
    max-width: 320px;
  }
  .services-content {
    flex-wrap: wrap;
  }
  .banner-bottom-bg {
    height: 15rem;
  }
  .solution-card {
    width: 155%;
  }
  
}

@media (max-width: 576px) {
  .nav-menu a {
    font-size: 16px;
  }

  .theme-toggle {
    font-size: 20px;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .mvp-text,
  .mvp-value {
    font-size: 22px;
  }

  .cta-button {
    width: 100%;
    max-width: 280px;
    margin-top: 10rem;
  }
}

/* Chatbot Modal Styles */
.chatbot-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.chatbot-modal-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.chatbot-modal-content {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
  border: 1px solid var(--border-color);
}

.chatbot-header {
  background: linear-gradient(135deg, #76BC21 0%, #5a9419 100%);
  color: white;
  padding: 1.25rem;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.close-chatbot {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.close-chatbot:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.chatbot-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.chatbot-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--bg-primary);
}

.chatbot-messages::-webkit-scrollbar {
  width: 8px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #76BC21;
  border-radius: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: #5a9419;
}

.bot-message,
.user-message {
  padding: 0.875rem 1rem;
  border-radius: 12px;
  max-width: 80%;
  animation: messageSlide 0.3s ease-out;
}

.bot-message {
  background-color: var(--bg-secondary);
  align-self: flex-start;
  border: 1px solid var(--border-color);
}

/* Indicador de escritura */  
.typing-indicator {
  opacity: 0.7;
}

.typing-indicator p::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% {
    content: '.';
  }
  40% {
    content: '..';
  }
  60%, 100% {
    content: '...';
  }
}

.user-message {
  background: linear-gradient(135deg, #76BC21 0%, #5a9419 100%);
  color: white;
  align-self: flex-end;
}

.bot-message p,
.user-message p {
  margin: 0;
  line-height: 1.5;
}

.chatbot-input-container {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 12px 12px;
}

.chatbot-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chatbot-input:focus {
  border-color: #76BC21;
  box-shadow: 0 0 0 3px rgba(118, 188, 33, 0.1);
}

.chatbot-send-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #76BC21 0%, #5a9419 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chatbot-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(118, 188, 33, 0.3);
}

.chatbot-send-btn:active {
  transform: translateY(0);
}

#chat-bot-selector {
  cursor: pointer;
  transition: transform 0.2s;
}

#chat-bot-selector:hover {
  transform: scale(1.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes messageSlide {
  from {
    transform: translateX(-10px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .chatbot-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .chatbot-header h3 {
    font-size: 1.1rem;
  }

  .bot-message,
  .user-message {
    max-width: 85%;
  }
}
