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

@font-face {
  font-family: 'moderat-medium';
  src: url('fonts/moderat-medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


body {
  scroll-padding-top: 100px;
}

#home {
  scroll-margin-top: 100px;
}

    body {
      font-family: 'moderat-medium', sans-serif;
      background-color: #E9E3DB;
      color: #DA7A42;
    }

    /* GRID BACKGROUND (softer + tighter) */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
      background-size: 70px 70px;
      z-index: -1;
    }

    /* NAVBAR */
    .navbar {
      position: sticky;
      top: 0;
      z-index: 1000;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 80px;
      background: #03283E;
      border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .logo {
      font-family: 'moderat-medium', sans-serif;
      font-size: 26px;
      font-weight: 600;
    }

    .nav-links {
      display: flex;
      gap: 34px;
      align-items: center;
    }

    .nav-links a {
      text-decoration: none;
      color: #DA7A42;
      font-size: 14px;
    }

    .contact-btn {
      background: #DA7A42;
      color: #fff !important;
      padding: 9px 18px;
      border-radius: 6px;
      font-size: 14px;
    }

    /* HERO */
    /* HERO VIDEO BACKGROUND */

/* VIDEO */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -2;
}

/* OVERLAY (clave para que se lea el texto) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* CONTENT encima del video */
.hero-content {
  position: relative;
  z-index: 1;
}

/* Ajustes de botones en hero oscuro */
.hero .btn-secondary {
  border: 1px solid #DA7A42;
  color: #fff;
}

.hero .btn-primary {
  background: #DA7A42;
  color: #2A1F19;
}

    .hero {
      text-align: center;
      padding: 170px 20px 120px;
      max-width: 920px;
      margin: 0 auto;
      height: 85%;
      overflow: hidden;
      color: #fff; /* texto blanco sobre video */
    }

    .subtitle {
      color: #fff;
      font-size: 13px;
      letter-spacing: 1.5px;
      margin-bottom: 24px;
    }

    .title {
      font-family: 'moderat-medium', sans-serif;
      font-size: 70px;
      line-height: 1.08;
      margin-bottom: 28px;
    }

    .description {
      font-size: 17px;
      color: #fff;
      max-width: 520px;
      margin: 0 auto 42px;
    }

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

    .btn-primary {
      background: #2A1F19;
      color: #fff;
      padding: 14px 26px;
      border-radius: 6px;
      font-size: 14px;
      cursor:pointer;
    }

    .btn-secondary {
      border: 1px solid #D4CBC2;
      padding: 14px 26px;
      border-radius: 6px;
      font-size: 14px;
      background: transparent;
      cursor: pointer;
    }

    /* APPROACH */
    .approach {
      padding: 120px 80px 140px;
      background-color: #faf8f5;
    }

    .approach-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .approach-subtitle {
      color: #03283E;
      font-size: 13px;
      letter-spacing: 1.5px;
      margin-bottom: 18px;
    }

    .approach-title {
      font-family: 'moderat-medium', sans-serif;
      font-size: 44px;
      margin-bottom: 70px;
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 34px;
    }

    .card {
      border: 1px solid #D8D0C8;
      padding: 44px 42px 46px;
      position: relative;
      background: #f6f1eb;
    }

    .card-number {
      font-family: 'moderat-medium', sans-serif;
      font-size: 52px;
      color: #DA7A42;
      margin-bottom: 26px;
    }

    .card-icon {
      position: absolute;
      top: 28px;
      right: 28px;
      width: 22px;
      height: 22px;
      border: 2px solid #03283E;
      border-radius: 50%;
    }

    .card h3 {
      font-family: 'moderat-medium', sans-serif;
      font-size: 24px;
      margin-bottom: 14px;
    }

    .card p {
      color: #6A6058;
      line-height: 1.7;
      font-size: 15px;
      max-width: 300px;
    }

  

    /* ================= SERVICES MOBILE (SIMPLE STACK FIX) ================= */

@media (max-width: 768px) {

  .services-content {
    display: flex !important;
    flex-direction: column;
    gap: 30px;
  }

  .accordion {
    order: 1;
  }

  .service-detail {
    order: 2;
    display: block !important;
  }

}

  .services-right {
    display: none;
  }

  .accordion-item.active + .services-right {
    display: block;
  }



/* ================= RESPONSIVE (FIXED) ================= */
* { box-sizing: border-box; }
img, svg { max-width: 100%; }

/* Tablet */
@media (max-width: 1024px) {

  .nav, header {
    padding: 16px 24px !important;
  }

  .hero, .approach, .services, .sectors, .contact, .footer {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .hero h1 { font-size: 42px; line-height: 1.2; }

  .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-container,
  .sectors-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sectors-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {

  body { overflow-x: hidden; }

  .nav-links { display: none; }

  .hero h1 { font-size: 34px; }
  .hero p { font-size: 15px; }

  .approach-title,
  .services-title,
  .sectors-title,
  .contact-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .services-container {
    gap: 30px;
  }

  .accordion-item {
    font-size: 16px;
    padding: 18px 0;
  }

  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

/* Small mobile */
@media (max-width: 480px) {

  .hero h1 { font-size: 28px; }

  h2 { font-size: 26px !important; }

  .btn, .submit-btn {
    width: 100%;
  }

  .sectors,
  .contact,
  .footer {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
}

@media (max-width: 768px) {

  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #DA7A42;
  transition: 0.3s;
}

/* MOBILE */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #E9E3DB;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    display: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

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

  .menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

}

/* SERVICES */
    .services {
      padding: 120px 80px 140px;
      background: #E9E3DB;
    }

    .services-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .services-subtitle {
      color: #03283E;
      font-size: 13px;
      letter-spacing: 1.5px;
      margin-bottom: 18px;
    }

    .services-title {
      font-family: 'moderat-medium', sans-serif;
      font-size: 48px;
      line-height: 1.2;
      margin-bottom: 60px;
    }

    .services-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
    }

    /* ACCORDION */
    .accordion {
      border-top: 1px solid #D8D0C8;
    }

    .accordion-item {
      border-bottom: 1px solid #D8D0C8;
      padding: 22px 0;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #6A6058;
    }

    .accordion-item.active {
      color: #2A1F19;
    }

    .accordion-header {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-family: 'moderat-medium', sans-serif;
      font-size: 22px;
    }

    .icon {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .chevron {
      transition: transform 0.3s ease;
      transform: rotate(-90deg);
    }

    .accordion-item.active .chevron {
      transform: rotate(0deg);
    }

    /* RIGHT SIDE */
    .service-detail h3 {
      font-family: 'moderat-medium', sans-serif;
      font-size: 34px;
      margin-bottom: 20px;
    }

    .service-detail p {
      color: #6A6058;
      line-height: 1.7;
      margin-bottom: 30px;
      max-width: 480px;
    }

    .service-list {
      display: flex;
      gap: 60px;
      color: #6A6058;
    }

    .service-list ul {
      list-style: none;
    }

    .service-list li {
      margin-bottom: 12px;
      position: relative;
      padding-left: 16px;
    }

    .service-list li::before {
      content: "";
      width: 6px;
      height: 6px;
      background: #DA7A42;
      border-radius: 50%;
      position: absolute;
      left: 0;
      top: 8px;
    }

    @media (max-width: 768px) {
  .sectors-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px;
  }

  .sectors-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .sector-card {
    width: 100%;
  }
}

.sectors {
      background: #faf8f5;
      padding: 140px 80px;
    }

    .sectors-container {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
    }

    .sectors-subtitle {
      color: #03283E;
      font-size: 13px;
      letter-spacing: 1.5px;
      margin-bottom: 18px;
    }

    .sectors-title {
      font-family: 'moderat-medium', sans-serif;
      font-size: 52px;
      line-height: 1.15;
      margin-bottom: 28px;
    }

    .sectors-text {
      color: #6A6058;
      line-height: 1.7;
      max-width: 520px;
    }

    .sectors-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
    }

    .sector-card {
      border: 1px solid #03283E;
      padding: 30px;
      transition: all 0.3s ease;
    }

    .sector-card:hover {
      border-color: #DA7A42;
      transform: translateY(-4px);
    }

    .sector-icon {
      font-size: 22px;
      margin-bottom: 18px;
      opacity: 0.8;
    }

    .sector-card h3 {
      font-family: 'moderat-medium', sans-serif;
      font-size: 24px;
      margin-bottom: 10px;
    }

    .sector-card p {
      color: #6A6058;
      font-size: 14px;
      line-height: 1.6;
    }

    .contact {
      background: #E9E3DB;
      padding: 140px 20px 160px;
      text-align: center;
    }

    .contact-container {
      max-width: 900px;
      margin: 0 auto;
    }

    .contact-subtitle {
      color: #03283E;
      font-size: 13px;
      letter-spacing: 1.5px;
      margin-bottom: 18px;
    }

    .contact-title {
      font-family: 'moderat-medium', sans-serif;
      font-size: 52px;
      margin-bottom: 16px;
    }

    .contact-text {
      color: #6A6058;
      max-width: 520px;
      margin: 0 auto 50px;
      line-height: 1.7;
    }

    .contact-form {
      text-align: left;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-bottom: 20px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
    }

    .form-group label {
      font-size: 13px;
      margin-bottom: 6px;
      color: #2A1F19;
    }

    .form-group input,
    .form-group textarea {
      border: 1px solid #D8D0C8;
      padding: 14px;
      font-size: 14px;
      font-family: 'Inter', sans-serif;
    }

    .form-group textarea {
      min-height: 140px;
      resize: none;
    }

    .form-group.full {
      margin-bottom: 30px;
    }

    .form-actions {
      display: flex;
      justify-content: center;
    }

    .submit-btn {
      background: #DA7A42;
      color: #fff;
      padding: 14px 26px;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .submit-btn:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    .contact-btn:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    .btn-primary:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    .btn-secondary:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    @media (max-width: 768px) {

  .contact-container {
    padding: 0 10px;
  }

  .contact-title {
    font-size: 34px;
    line-height: 1.2;
  }

  .contact-text {
    font-size: 15px;
  }

  /* FORM EN UNA COLUMNA */
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
  }

  .submit-btn {
    width: 100%;
  }

}

.footer {
      background: #faf8f5;
      padding: 100px 80px 40px;
    }

    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-top {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 60px;
      margin-bottom: 50px;
    }

    .footer-logo {
      font-family: 'moderat-medium', sans-serif;
      font-size: 26px;
      margin-bottom: 16px;
    }

    .footer-desc {
      color: #6A6058;
      line-height: 1.7;
      max-width: 320px;
    }

    .footer-title {
      font-family: 'moderat-medium', sans-serif;
      font-size: 18px;
      margin-bottom: 16px;
    }

    .footer-col ul {
      list-style: none;
    }

    .footer-col li {
      margin-bottom: 10px;
      color: #6A6058;
      font-size: 14px;
    }

    .footer-divider {
      border: none;
      border-top: 1px solid #E0D8CF;
      margin: 40px 0 20px;
    }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      color: #6A6058;
    }

    .footer-right {
      display: flex;
      gap: 30px;
    }

    @media (max-width: 768px) {

  .footer-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px;
  }

  .footer-col {
    width: 100%;
  }

}

:root {
  --primary: #DA7A42;
  --bg: #000000;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s;
}

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

.logo {
  width: 220px;
  margin-bottom: 30px;
  animation: pulse 2s infinite ease-in-out;
}

/* BARRAS */
.bars {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.bars span {
  width: 6px;
  height: 40px;
  background: var(--primary);
  animation: bounce 1.2s infinite ease-in-out;
  border-radius: 3px;
}

/* Delay para efecto dinámico */
.bars span:nth-child(1) { animation-delay: 0s; }
.bars span:nth-child(2) { animation-delay: 0.1s; }
.bars span:nth-child(3) { animation-delay: 0.2s; }
.bars span:nth-child(4) { animation-delay: 0.3s; }
.bars span:nth-child(5) { animation-delay: 0.4s; }

/* Animaciones */
@keyframes bounce {
  0%, 100% {
    transform: scaleY(0.4);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1.4);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px var(--primary));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px var(--primary));
  }
}