/* ===== Variables ===== */
:root {
  --orange: #e56500;
  --orange-dark: #c45500;
  --black: #0a0a0a;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-3: #222222;
  --gray: #888888;
  --gray-light: #cccccc;
  --white: #ffffff;
  --light: #f5f5f5;
  --light-2: #eeeeee;
  --text-dark: #1a1a1a;
  --text-mid: #444444;
  --font: 'Montserrat', sans-serif;
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-orange {
  color: var(--orange);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border: 2px solid var(--orange);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.7rem;
}

.btn--header {
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 0.65rem;
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* ===== Header ===== */
.header {
  background: #000;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
}

.header__brand {
  display: block;
  flex-shrink: 0;
}

.header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  transition: var(--transition);
}

.header__phone:hover {
  color: var(--orange);
}

.header__phone svg {
  color: var(--orange);
  flex-shrink: 0;
}

.logo {
  display: block;
  line-height: 0;
}

.logo__img {
  display: block;
  height: 72px;
  width: auto;
}

/* Alternativa CSS sprite directo desde demo.png:
.logo--sprite {
  width: 289px;
  height: 88px;
  background: url('../demo.png') no-repeat;
  background-size: 1024px 1536px;
  background-position: -15px -24px;
}
*/

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
}

.nav__link {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  color: var(--white);
  transition: var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  aspect-ratio: 1024 / 386;
  min-height: 620px;
  background: url('../img/hero-drovert-industrial.png') center/cover no-repeat;
  overflow: hidden;
}

.hero__hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  overflow: hidden;
  color: transparent;
  text-indent: -9999px;
}


.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 60px 20px;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.05) 100%);
}

.hero__content {
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.4rem, 3.2vw, 3.6rem);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
  color: var(--orange);
}

.hero__copy {
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.btn--hero {
  padding: 16px 32px;
  font-size: 0.85rem;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__features {
  display: flex;
  align-items: stretch;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  width: fit-content;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  position: relative;
}

.hero__feature + .hero__feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}

.hero__feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  color: var(--orange);
  flex-shrink: 0;
}

.hero__feature p {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.45;
}

/* ===== Service Sections ===== */
.service-section {
  padding: clamp(40px, 5vw, 70px) 0;
  background: var(--light);
  color: var(--text-dark);
}

.service-section--dark {
  background: var(--dark);
  color: var(--white);
}

.service-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-section--reverse .service-section__content {
  order: 2;
}

.service-section--reverse .service-section__visual {
  order: 1;
}

.service-section__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.service-section__head .section-title {
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-section__head .section-title::after {
  display: none;
}

.service-section__icon {
  width: 52px;
  height: 52px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-section__icon svg {
  width: 26px;
  height: 26px;
}

.service-section__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* texto en secciones claras */
.service-section:not(.service-section--dark) .service-section__desc {
  color: var(--text-mid);
}

/* texto en secciones oscuras */
.service-section--dark .service-section__desc {
  color: var(--gray-light);
}

.service-section:not(.service-section--dark) .check-list li {
  color: var(--text-mid);
}

.service-section:not(.service-section--dark) .section-title {
  color: var(--text-dark);
}

.service-section__visual img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===== Section Titles ===== */
.section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.03em;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  display: none;
}

.section-title--left {
  text-align: left;
}

.section-title--left::after {
  left: 0;
  transform: none;
}

/* ===== Why Choose Us ===== */
.why {
  padding: clamp(36px, 4.5vw, 60px) 0;
  background: var(--dark);
}

.why .section-title {
  color: var(--white);
  margin-bottom: 40px;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.why__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 16px;
  position: relative;
}

.why__item + .why__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}

.why__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.why__icon svg {
  width: 42px;
  height: 42px;
}

.why__item span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.5;
}

/* ===== Smart Control ===== */
.smart-control {
  padding: clamp(40px, 5vw, 70px) 0;
  background: var(--light);
  color: var(--text-dark);
}

.smart-control__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.smart-control__desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 30px;
  line-height: 1.7;
}

.smart-control .section-title {
  color: var(--text-dark);
}

.check-list li {
  font-size: 0.85rem;
  color: var(--gray-light);
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
}

.smart-control .check-list li {
  color: var(--text-mid);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
  font-size: 1rem;
}

.check-list--cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.smart-control__visual img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ===== Projects ===== */
.projects {
  padding: clamp(40px, 5vw, 70px) 0;
  background: var(--light-2);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.projects .section-title {
  color: var(--text-dark);
}

.project-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: rgba(229, 101, 0, 0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Swiper dentro del card */
.project-card__slider {
  position: relative;
}

.project-card__slider .swiper {
  aspect-ratio: 4 / 3;
  background: var(--black);
}

.project-card__slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flechas */
.project-card__slider .swiper-button-prev,
.project-card__slider .swiper-button-next {
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  color: var(--white);
  transition: background var(--transition);
}

.project-card__slider .swiper-button-prev:hover,
.project-card__slider .swiper-button-next:hover {
  background: var(--orange);
}

.project-card__slider .swiper-button-prev::after,
.project-card__slider .swiper-button-next::after {
  font-size: 0.75rem;
  font-weight: 700;
}

/* Paginación dots */
.project-card__slider .swiper-pagination-bullet {
  background: rgba(0,0,0,0.25);
  opacity: 1;
}

.project-card__slider .swiper-pagination-bullet-active {
  background: var(--orange);
}

/* Body */
.project-card__body {
  padding: 24px;
}

.project-card__title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--text-dark);
}

.project-card__desc {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card__tags span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255, 102, 0, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ===== Contact ===== */
.contact {
  position: relative;
  padding: clamp(40px, 5vw, 70px) 0;
}

.contact__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.85) 100%),
    url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?w=1600&h=900&fit=crop') center/cover no-repeat;
  z-index: 0;
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__desc {
  font-size: 0.9rem;
  color: var(--gray-light);
  margin-bottom: 30px;
  line-height: 1.7;
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--gray-light);
}

.contact__details svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
  flex-shrink: 0;
}

.contact__details a:hover {
  color: var(--orange);
}

.contact__form {
  background: rgba(26,26,26,0.8);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--dark-3);
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--dark-3);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--white);
  transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== Footer ===== */
.footer {
  background: var(--black);
  border-top: 1px solid var(--dark-3);
  padding: 20px 0;
}

.footer__inner {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray);
}

/* ===== Brands Strip ===== */
.brands-strip {
  background: #ebebeb;
  border-top: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  padding: 28px 0;
  overflow: hidden;
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: brands-scroll 30s linear infinite;
}

.brands-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 48px;
  width: 140px;
}

.brands-item img {
  max-height: 48px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ===== Responsive ===== */
@media (max-width: 1220px) {
  /* Hero */
  .hero {
    aspect-ratio: auto;
    min-height: 760px;
  }

  .hero__overlay {
    padding: 50px 20px;
  }

  .hero__copy {
    font-size: 0.98rem;
  }

  .btn--hero {
    padding: 14px 26px;
  }

  /* Header / Nav */
  .header__inner {
    align-items: center;
    padding: 12px 20px;
  }

  .header__brand {
    flex: 1;
    min-width: 0;
  }

  .header__right {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .header__actions {
    gap: 10px;
  }

  .header__phone {
    display: none;
  }

  .btn--header {
    padding: 8px 14px;
    font-size: 0.6rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 100vw);
    height: 100vh;
    background: #000;
    padding: 80px 30px 30px;
    transition: right var(--transition);
    z-index: 150;
    border-left: 1px solid var(--dark-3);
  }

  .nav--open {
    display: block;
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--dark-3);
  }

  .logo__img {
    height: 58px;
  }
}

@media (max-width: 1024px) {
  .service-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-section--reverse .service-section__content,
  .service-section--reverse .service-section__visual {
    order: unset;
  }

  .why__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .smart-control__inner {
    grid-template-columns: 1fr;
  }

  .projects__grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 820px;
  }

  .hero__overlay {
    padding: 40px 18px;
  }

  .hero__title {
    font-size: 2.4rem;
  }

  .hero__copy {
    font-size: 0.95rem;
  }

  .btn--hero {
    width: 100%;
    padding: 14px 22px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__feature {
    width: 100%;
    justify-content: flex-start;
  }

  .hero__features {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .hero__feature + .hero__feature::before {
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
  }

  /* Header mobile: logo centrado arriba, CTA + burger abajo */
  .header__inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
  }

  .header__brand {
    flex: unset;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .header__right {
    flex: unset;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .logo__img {
    height: 52px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 900px;
  }

  .hero__feature {
    padding: 12px 14px;
  }

  .hero__feature p {
    font-size: 0.72rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}


@media (max-width: 768px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .check-list--cols {
    grid-template-columns: 1fr;
  }

  .project-feature__thumbs {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  }
}

@media (max-width: 480px) {
  .btn {
    text-align: center;
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card__body {
    padding: 16px;
  }
}
