/* Reset y estilos globales */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background-color: #121629; color: white; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
section[id], main[id] { scroll-margin-top: 100px; }
:focus-visible { outline: 3px solid #f5b700; outline-offset: 5px; }
p a { text-decoration: underline; text-underline-offset: 3px; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-definitions { position: absolute; overflow: hidden; pointer-events: none; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 2000; padding: 12px 18px; background: #f5b700; color: #121629; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
[hidden] { display: none !important; }

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 31, 59, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
}
.header .logo {
  color: #f5b700;
  font-size: 28px;
  font-weight: bold;
}
.header .logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header .logo .icon {
  font-size: 24px;
}
.header nav a {
  position: relative;
  margin: 0 15px;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.header nav a:hover, p a {
  color: #f5b700;
}

.header nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #f5b700;
  transition: width 0.3s ease;
}

.header nav a:hover::after {
  width: 100%;
}
.menu-toggle { display: none; font-size: 28px; cursor: pointer; background: none; border: 0; color: white; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: url('../img/background.webp') center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}
.hero-content h1 { font-size: 48px; margin-bottom: 20px; color: #f5b700; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); }
.hero-content h1 span {
  display: block;
  line-height: 1.08;
}
.hero-content p { font-size: 20px; max-width: 760px; margin: 0 auto 6px; }
.btn {
  background: linear-gradient(45deg, #f5b700, #e0a800);
  color: #1e223e;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  margin-top: 30px;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0px 8px 20px rgba(245, 183, 0, 0.4);
}

.btn:active {
  transform: scale(0.95);
}

/* Secciones */
section { padding: 100px 20px; text-align: center; }
.section-title {
  font-size: 36px;
  margin-bottom: 30px;
  color: #f5b700;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  justify-content: center;
  gap: 48px;
  background: linear-gradient(180deg, #121629 0%, #171b34 100%);
  padding: 34px 20px;
  border-top: 1px solid rgba(245, 183, 0, 0.18);
  border-bottom: 1px solid rgba(245, 183, 0, 0.18);
}

.trust-item {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 20px;
  background: rgba(26, 31, 59, 0.78);
  border: 1px solid rgba(245, 183, 0, 0.22);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.trust-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f5b700, transparent);
}

.trust-item:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 183, 0, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.trust-item .icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #f5b700;
  font-size: 22px;
  background: rgba(245, 183, 0, 0.1);
  border: 1px solid rgba(245, 183, 0, 0.28);
  border-radius: 50%;
  padding: 11px;
}

.trust-item span {
  display: block;
  color: #f5b700;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 6px;
}

.trust-item p {
  color: #ddd;
  font-size: 15px;
  line-height: 1.45;
}

/* About Section */
.about p { font-size: 18px; max-width: 820px; margin: 0 auto 18px; }
.about p:last-child { margin-bottom: 0; }

/* Services Section */
#services {
  background-color: #161a31;
  padding: 60px 20px;
  text-align: center;
}

.services-header-container{
  margin-bottom: 30px;
}

.services-intro {
  color: #fff;
  font-size: 18px;
  max-width: 760px;
  margin: 0 auto 8px;
}

.services .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.services .card {
  background: rgba(26, 31, 59, 0.9);
  padding: 25px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.services .card:hover {
  transform: translateY(-7px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.services .card .icon {
  font-size: 45px;
  color: #f5b700;
  margin-bottom: 15px;
  align-self: center;
}

.services .card h3 {
  font-size: 22px;
  color: #f5b700;
  margin-bottom: 10px;
}

.services .card p {
  font-size: 16px;
  color: #ddd;
  line-height: 1.4;
}

.services-cta {
  margin-top: 10px;
}

/* Contact Section */
/* Estilos para la Sección de Contacto */
.contact {
  background: linear-gradient(to right, #1b1f3b, #2a2f4a);
  padding: 100px 20px;
  text-align: center;
}
.contact .contact-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.contact .contact-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s;
}
.contact .contact-item:hover {
  transform: translateY(-5px);
}
.contact .contact-item .icon {
  font-size: 40px;
  margin-bottom: 10px;
  color: #f5b700;
}
.contact .contact-item h3 {
  margin-bottom: 10px;
}
.contact .contact-item a {
  color: white;
  font-size: 18px;
  transition: color 0.3s;
  overflow-wrap: anywhere;
}

.contact .contact-item p {
    font-size: 18px;
  }
.contact .contact-item a:hover {
  color: #f5b700;
}

/* Footer */
.footer {
  background: #15182e;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #b8bac5;
}
.privacy-note { max-width: 760px; margin: 12px auto 0; }
.privacy-note summary { width: fit-content; margin: auto; padding: 8px 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.privacy-content { padding: 16px; text-align: left; background: #121629; border-radius: 8px; }
.privacy-content p + p { margin-top: 12px; }
.privacy-content a { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .header .logo {
    font-size: 21px;
  }
  .header nav {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  .js .header nav {
    display: none;
    flex-direction: column;
    background: rgba(26, 31, 59, 0.9);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    text-align: center;
    padding: 10px;
    border-radius: 0 0 0 10px;
  }
  .js .header nav.active { display: flex; }
  .header nav a {
    display: block;
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(245,183,0,0.3);
  }
  .js .menu-toggle { display: inline-flex; }
  .hero { background-image: url('../img/background-mobile.webp'); }
  .trust-strip { grid-template-columns: 1fr; gap: 22px; }
  .hero-content h1 { font-size: 36px; }
  .hero-content p { font-size: 18px; }
}

@media (max-width: 768px) {
  html:not(.js) .header { position: static; }
  html:not(.js) .header nav a { margin: 4px 8px; padding: 4px 0; }
  html:not(.js) section[id] { scroll-margin-top: 20px; }
}

@media (max-width: 480px) {
  .header .logo {
    font-size: 18px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .section-title {
    font-size: 30px;
  }
}
