:root {
  --primary: #111111;
  --primary-2: #2a2a2a;
  --accent: #ef7a00;
  --accent-2: #ff9a2f;
  --dark: #111111;
  --text: #1a1a1a;
  --text-soft: #5f5f5f;
  --white: #ffffff;
  --light: #f7f7f7;
  --light-2: #efefef;
  --peach: #ef7a00;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.10);
  --radius: 22px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo img {
  height: 62px;
  width: auto;
  object-fit: contain;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a,
.nav-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.main-nav a:hover,
.nav-btn:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 28px;
  cursor: pointer;
}

/* PANEL NOSOTROS */
.dropdown-panel {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.dropdown-panel.active {
  display: block;
}

.panel-box {
  padding: 28px 0 32px;
  color: var(--text);
}

.panel-box h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.panel-box p {
  max-width: 980px;
  color: var(--text-soft);
}

/* DROPDOWN SERVICIOS */
.dropdown-service {
  position: relative;
}

.services-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 260px;
  background: #f4f4f4;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  padding: 10px 0;
  display: none;
  z-index: 1000;
}

.services-dropdown.active {
  display: block;
}

.dropdown-service-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 14px 18px;
  color: #333;
  font-size: 0.96rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dropdown-service-item:hover {
  background: rgba(239, 122, 0, 0.10);
  color: var(--accent);
}

/* HERO */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.52)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  max-width: 920px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(239, 122, 0, 0.28);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 1.04rem;
  color: rgba(255,255,255,0.9);
}

.hero-dots {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
}

/* BUTTON */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(239, 122, 0, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

/* SECTIONS */
.section {
  padding: 90px 0;
}

.section-heading {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 46px;
}

.section-heading.left {
  text-align: left;
  margin: 0;
}

.section-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-kicker.light {
  color: #ffd3aa;
}

.section-heading h2,
.ethics-left h2,
.contact-info h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--primary);
}

.section-heading p {
  color: var(--text-soft);
}

/* SOLUTIONS */
.solutions-overview {
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  padding-bottom: 60px;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.solution-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.solution-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 3;
}

.solution-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.5s ease;
  border-radius: 24px;
}

.solution-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.86));
  border-radius: 24px;
}

.solution-overlay {
  position: absolute;
  z-index: 4;
  inset: auto 0 0 0;
  padding: 22px 18px 18px;
  color: #fff;
  transform: translateY(12px);
  transition: var(--transition);
}

.solution-overlay h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.solution-overlay p {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
}

.solution-card:hover .solution-image,
.solution-card.active .solution-image {
  transform: scale(1.05);
}

.solution-card:hover .solution-overlay,
.solution-card.active .solution-overlay {
  transform: translateY(0);
}

.solution-card:hover .solution-overlay p,
.solution-card.active .solution-overlay p {
  opacity: 1;
  max-height: 120px;
  margin-bottom: 12px;
}

.card-link {
  background: rgba(239,122,0,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
}

/* ELIMINADO EL EMBUDO */
.service-connector {
  display: none !important;
}

/* SERVICES DETAIL */
.services-detail {
  background: #ef7a00;
  padding-top: 90px;
  position: relative;
  z-index: 2;
}

.services-detail .container {
  position: relative;
  z-index: 5;
}

.services-detail-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.services-detail .section-kicker {
  color: #ffd2a8;
}

.services-detail .section-heading h2 {
  color: #ffffff;
}

.services-detail .section-heading p {
  color: rgba(255, 255, 255, 0.88);
}

.service-content {
  display: none;
}

.service-content.active {
  display: block;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-item {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 22px 22px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: start;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
  background: rgba(255, 255, 255, 0.18);
}

.service-item-icon {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.service-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-item-content h3,
.service-item h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.service-item-content p,
.service-item p {
  color: rgba(255, 255, 255, 0.90);
  font-size: 0.96rem;
}

.service-image-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 520px;
  background: rgba(255,255,255,0.18);
}

.service-image-frame img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

/* ETHICS */
.ethics-section {
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 50%, #2a2a2a 100%);
  color: white;
}

.ethics-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: center;
}

.ethics-left h2 {
  color: #fff;
  margin-bottom: 0;
}

.ethics-right p {
  color: rgba(255,255,255,0.88);
  font-size: 1.02rem;
}

/* CLIENTS */
.clients-section {
  background: #f8f8f8;
}

.clients-carousel {
  overflow: hidden;
  position: relative;
  margin-top: 20px;
}

.clients-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: scrollClients 28s linear infinite;
}

.client-logo {
  width: 220px;
  height: 110px;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.client-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

@keyframes scrollClients {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* CONTACT */
.contact-section {
  position: relative;
  color: white;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.5)),
    url('img/contacto-bg.jpg') center/cover no-repeat;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact-info h2 {
  color: white;
}

.contact-info p,
.contact-info a {
  color: rgba(255,255,255,0.92);
}

.contact-form {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.96);
  color: #222;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.95rem;
}

.form-grid textarea {
  min-height: 136px;
  resize: vertical;
  grid-row: span 2;
}

.form-btn {
  width: fit-content;
  min-width: 160px;
}

/* FOOTER */
.site-footer {
  background: #111111;
  padding: 24px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,0.72);
}

.footer-content img {
  height: 46px;
  object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .solution-cards,
  .service-grid,
  .contact-wrapper,
  .ethics-box {
    grid-template-columns: 1fr;
  }

  .services-detail-top {
    flex-direction: column;
    align-items: start;
  }

  .service-image-frame,
  .service-image-frame img {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 18px 0;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: min(1180px, 92%);
    margin: 0 auto;
    gap: 16px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid textarea {
    grid-row: auto;
  }

  .form-btn {
    width: 100%;
  }

  .services-dropdown {
    position: static;
    margin-top: 10px;
    width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 72px 0;
  }

  .solution-card {
    min-height: 260px;
  }

  .solution-overlay h3 {
    font-size: 1.05rem;
  }

  .client-logo {
    width: 180px;
    height: 100px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .services-detail {
    padding-top: 72px;
  }

  .service-item {
    grid-template-columns: 68px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .service-item-icon {
    width: 68px;
    height: 68px;
    padding: 2px;
  }

  .service-item-content h3 {
    font-size: 1rem;
  }

  .service-item-content p {
    font-size: 0.9rem;
  }
}

.service-image-frame img {
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

@media (max-width: 560px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
}