:root {
  --primary: #F4B400;
  --secondary: #E97A2E;
  --black: #000000;
  --gray: #E5E5E5;
  --white: #FFFFFF;
  --text-dark: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-weight: 900;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: 100px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--black);
  box-shadow: 0 4px 15px rgba(244, 180, 0, 0.4);
}

.btn-primary:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233, 122, 46, 0.5);
}

.btn-secondary {
  background-color: var(--black);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(244, 180, 0, 0.4);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 80px;
}

.header-contact {
  display: flex;
  gap: 20px;
}

/* Hero Section with Slider */
#hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
}

.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay-box {
  position: relative;
  z-index: 2;
  background-color: rgba(51, 51, 51, 0.7);
  padding: 30px 50px;
  border-radius: 15px;
  text-align: center;
  max-width: 90%;
  width: fit-content;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  margin-top: 55px; /* Compensa la altura del header fijo */
}

.hero-brand-clean {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero-title-clean {
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 3.5rem;
  cursor: pointer;
  padding: 15px;
  transition: all 0.3s ease;
  user-select: none;
}

.slider-arrow:hover {
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
  left: 25px;
}

.next-arrow {
  right: 25px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: var(--primary);
  transform: scale(1.2);
}

/* Hero Section original (now secondary) */
#hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('../images/hero.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding-top: 80px;
}

#hero-secundario {
  min-height: 550px;
  padding: 120px 0 100px 0;
  display: flex;
  align-items: center;
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)), url('../images/hero.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-text {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 20px;
}

/* Sections Background Alternation */
.bg-light {
  background-color: var(--white);
}

.bg-gray {
  background-color: var(--gray);
}

.bg-dark {
  background-color: var(--black);
  color: var(--white);
}

.bg-dark h2 {
  color: var(--white);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  color: var(--text-dark);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-card:hover .arrow {
  transform: translateX(10px);
}

.service-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  margin-bottom: 15px;
  color: var(--black);
  font-size: 1.5rem;
}

.service-content p {
  font-size: 1.1rem;
  color: #555;
}

/* Two Column Layout */
.two-col-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.two-col-layout.align-center {
  align-items: center;
}

.image-content img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

@media (min-width: 769px) {
  .two-col-layout.row-reverse .text-content {
    order: 2;
  }

  .two-col-layout.row-reverse .image-content {
    order: 1;
  }
}

/* Badges */
.badge {
  background-color: var(--white);
  color: var(--black);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 900;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Problem Items */
.problem-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem-item {
  display: flex;
  gap: 20px;
  background-color: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.problem-item:hover {
  transform: translateX(10px);
  border-color: var(--primary);
}

.problem-icon {
  background-color: var(--black);
  color: var(--primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.problem-text h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: var(--black);
}

.problem-text p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Benefits Card */
.benefit-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.benefit-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: inline-block;
  line-height: 1;
}

/* Form */
.contact-form {
  background: var(--white);
}

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

.input-focus {
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1.05rem;
  border: 2px solid transparent;
  background: #f4f4f4;
  transition: all 0.3s ease;
}

.input-focus:focus {
  border-color: var(--primary) !important;
  outline: none;
  background: var(--white) !important;
  box-shadow: 0 0 15px rgba(244, 180, 0, 0.2);
}

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

.contact-card-hover {
  border-left: 4px solid transparent;
}

.contact-card-hover:hover {
  transform: translateX(10px) !important;
  border-left: 4px solid var(--primary);
}

/* Footer */
footer {
  background-color: var(--black);
  color: var(--gray);
  text-align: center;
  padding: 60px 20px;
}

.footer-attribution {
  margin-top: 20px;
  font-size: 0.9rem;
}

.footer-attribution a {
  color: var(--primary);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.project-carousel-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  opacity: 0;
}

.carousel-wrapper:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--black);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 12px;
  border-radius: 20px;
}

.carousel-indicators .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
  background: var(--primary);
  transform: scale(1.2);
}

.project-info {
  padding: 25px;
  background: var(--white);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-info h3 {
  font-size: 1.35rem;
  color: var(--black);
  margin-bottom: 8px;
  font-weight: 900;
}

.project-info p {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  #hero-slider {
    height: 70vh;
    min-height: 450px;
  }

  .hero-overlay-box {
    padding: 25px 35px;
    width: fit-content;
    max-width: 90%;
    margin-top: 40px; /* Ajuste para header en móvil */
  }

  .hero-brand-clean {
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 8px;
  }

  .hero-title-clean {
    font-size: 1.8rem;
  }

  .slider-arrow {
    font-size: 2.2rem;
    padding: 10px;
  }

  .prev-arrow {
    left: 10px;
  }

  .next-arrow {
    right: 10px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-text {
    font-size: 1.2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .header-contact .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .services-grid,
  .benefits-grid,
  .projects-grid,
  .two-col-layout {
    grid-template-columns: 1fr !important;
  }

  .promo-banner {
    padding: 40px 20px !important;
  }

  .carousel-wrapper {
    height: 280px;
  }

  .carousel-btn {
    opacity: 0.8;
  }
}