:root {
  --primary-color: #8CC24A;
  --text-dark: #333333;
  --text-muted: #777777;
  --font-heading: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text-dark);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  background: #fff;
}

a,
a:hover,
a:focus,
a:active {
  color: var(--primary-color);
  text-decoration: none;
  outline: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .container { width: 750px; }
}

@media (min-width: 992px) {
  .container { width: 970px; }
}

@media (min-width: 1200px) {
  .container { width: 1170px; }
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-justify { text-align: justify; }

.btn-primary,
.btn-xl {
  display: inline-block;
  border: 1px solid var(--primary-color);
  border-radius: 3px;
  background-color: var(--primary-color);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.42857143;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary {
  padding: 6px 12px;
}

.btn-xl {
  padding: 20px 40px;
  font-size: 18px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-xl:hover,
.btn-xl:focus,
.nav-links a.btn-ingresar:hover {
  color: white;
  background-color: var(--primary-color);
  border-color: #f6bf01;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  min-height: 50px;
  border: none;
  background: #fff;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}

.navbar-brand {
  display: block;
  color: var(--primary-color);
  font-family: "Helvetica Neue", Helvetica, Arial, cursive;
  font-size: 18px;
  line-height: 20px;
}

.navbar-brand img {
  display: none;
}

.navbar-brand span {
  display: block;
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
  padding: 9px 10px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  background-color: var(--primary-color);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-toggle span {
  display: none;
}

.mobile-toggle svg {
  width: 14px;
  height: 14px;
}

.nav-links {
  position: absolute;
  top: 50px;
  left: 0;
  display: none;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  background: #fff;
}

.nav-links.active {
  display: block;
}

.nav-links li {
  display: block;
}

.nav-links a {
  display: block;
  padding: 10px 15px;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary-color);
}

.nav-links li:first-child a.page-scroll {
  color: white;
  background-color: var(--primary-color);
}

.nav-links a.btn-ingresar {
  margin: 0 15px 10px;
  color: white;
}

@media (min-width: 768px) {
  .navbar {
    padding: 25px 0;
    background: rgba(200, 200, 200, .5);
    transition: padding .3s, background-color .3s;
  }

  .navbar.scrolled {
    padding: 10px 0;
    background-color: #fff;
  }

  .navbar .container {
    min-height: 0;
  }

  .navbar-brand img {
    display: block;
  }

  .navbar-brand span,
  .mobile-toggle {
    display: none;
  }

  .nav-links,
  .nav-links.active {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    border: 0;
    background: transparent;
  }

  .nav-links a {
    padding: 15px;
  }

  .nav-links a.btn-ingresar {
    margin: 0 0 0 10px;
    padding: 6px 12px;
    color: white;
  }
}

header .intro-text {
  color: white;
  text-shadow: 2px 2px 1px rgba(150, 150, 150, 1);
}

header .intro-text .intro-lead-in {
  margin-bottom: 25px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  line-height: 22px;
}

header .intro-text .intro-heading {
  margin-bottom: 25px;
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 700;
  line-height: 50px;
  text-transform: uppercase;
}

.container-banner {
  margin-top: 140px;
  margin-left: -7%;
  padding: 30px;
  background: rgba(0, 142, 68, .4);
}

@media (min-width: 768px) {
  header .intro-text .intro-lead-in {
    font-size: 40px;
    line-height: 40px;
  }

  header .intro-text .intro-heading {
    margin-bottom: 50px;
    font-size: 75px;
    line-height: 75px;
  }
}

@media (max-width: 767px) {
  header .overlay {
    display: none;
  }
}

section {
  padding: 0;
}

section h2.section-heading {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 40px;
}

section h3.section-subheading {
  margin-top: 0;
  margin-bottom: 75px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

.decoracion-header {
  width: 100%;
  height: 20px;
  background-image: url('../img/decoracion.jpg');
}

.decoracion-header2 {
  width: 100%;
  height: 80px;
  background-image: url('../img/decoracion2.jpg');
}

#nosotros {
  position: relative;
  z-index: 999;
  padding: 30px;
  background: rgba(0, 142, 68, .8);
  color: white;
  text-align: left;
}

#nosotros .section-heading {
  margin: 10px 0;
  color: white;
  font-size: 18px;
  text-align: left;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.nosotros-content p,
.nosotros-grid p {
  color: white;
}

.nosotros-summary {
  max-width: 980px;
}

.nosotros-more {
  margin-top: 10px;
  max-width: 1040px;
}

.nosotros-more .nosotros-grid {
  display: block;
}

.nosotros-toggle {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 3px;
  background: transparent;
  color: white;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.nosotros-toggle:hover,
.nosotros-toggle:focus {
  background: white;
  color: var(--primary-color);
  outline: none;
}

#servicios {
  padding: 80px 0;
  background: #fff;
}

#servicios .section-heading,
#servicios .section-subheading {
  text-align: center;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  text-align: center;
}

.servicio-item img {
  width: 120px;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

.service-heading {
  margin: 15px 0;
  text-transform: none;
}

#marcas {
  padding: 80px 0;
  background: #fff;
}

.slider-marcas {
  background: white;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05); /* Optional subtle inner shadow */
  height: 100px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 8px;
}

.slider-marcas::before,
.slider-marcas::after {
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 100%;
  position: absolute;
  width: 100px;
  z-index: 2;
  top: 0;
}

.slider-marcas::after {
  right: 0;
  transform: rotateZ(180deg);
}

.slider-marcas::before {
  left: 0;
}

.slide-track {
  animation: scroll 40s linear infinite;
  display: flex;
  width: calc(200px * 24); /* 12 items * 2 = 24 items */
  align-items: center;
  height: 100%;
}

.slide-track:hover {
  animation-play-state: paused; /* Pauses sliding on hover */
}

.slider-marcas .slide {
  height: 80px;
  width: 200px; /* Force consistent width for smooth math */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  flex-shrink: 0;
}

.slider-marcas .slide img {
  max-width: 100%;
  max-height: 100%;
  filter: grayscale(100%) opacity(0.8);
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-marcas .slide img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 12)); } /* scroll by exactly one set of 12 logos */
}

#contact {
  padding: 80px 0;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-dark);
}

#contact .section-heading {
  color: black;
  text-align: left;
}

#contact .section-subheading {
  text-align: left;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact-info {
  color: var(--text-dark);
}

.contact-info iframe {
  width: 100%;
  height: 210px;
  margin-top: 30px;
  border: 0;
}

.contact-form {
  display: block;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #555;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42857143;
  text-transform: uppercase;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: none;
}

.form-group textarea {
  height: 236px;
  resize: vertical;
}

.submit-btn-wrapper {
  display: flex;
  justify-content: flex-end;
}

#success-msg,
#error-msg {
  display: none;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 4px;
  font-weight: bold;
}

#success-msg {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

#error-msg {
  border: 1px solid #dc3545;
  color: #dc3545;
}

footer {
  padding: 25px 0;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  align-items: center;
}

footer span.copyright {
  font-family: var(--font-heading);
  line-height: 40px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.social-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background-color: #222;
  color: white;
  transition: all .3s;
}

.social-buttons a:hover,
.social-buttons a:focus,
.social-buttons a:active {
  background-color: var(--primary-color);
  color: white;
}

.social-buttons svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
}

@media (min-width: 768px) {
  .nosotros-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .nosotros-more .nosotros-grid {
    display: block;
  }

  .nosotros-content {
    max-width: 1040px;
    margin: 0 auto;
  }

  #nosotros .section-heading {
    max-width: 1040px;
    margin-right: auto;
    margin-left: auto;
  }

  .nosotros-grid > div {
    min-width: 0;
    padding-right: 0;
  }

  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
  }


  .contact-grid {
    grid-template-columns: 4fr 2fr 6fr;
    gap: 15px;
  }

  .contact-grid > div:last-child {
    grid-column: 3;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content > div:first-child {
    text-align: left;
  }

  .social-buttons {
    grid-column: 2;
  }
}
