/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --color-teal:        #00C4A7;
  --color-teal-dark:   #005C50;
  --color-teal-light:  #E1F5EE;

  --color-navy:        #0D1B2A;
  --color-navy-mid:    #142235;
  --color-navy-light:  #1E3550;

  --color-white:       #FFFFFF;
  --color-gray-100:    #F4F6F8;
  --color-gray-400:    #8899AA;
  --color-gray-700:    #3A4E60;

  --color-text-primary:   #0D1B2A;
  --color-text-secondary: #4A7090;
  --color-text-on-dark:   #FFFFFF;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  --section-py:    5rem;
  --max-width:     1200px;
  --px:            1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; }
ul  { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

.section-light { background: var(--color-white); }
.section-dark  { background: var(--color-navy); color: var(--color-text-on-dark); }
.section-gray  { background: var(--color-gray-100); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}
.section-dark .section-header p { color: var(--color-gray-400); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.btn-outline {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: var(--color-teal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-teal-dark);
  box-shadow: 0 4px 18px rgba(0,196,167,0.35);
}
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--color-teal);
  border: 1.5px solid var(--color-teal);
}
.btn-outline:hover { background: rgba(0,196,167,0.08); }

.btn-block { width: 100%; text-align: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(13,27,42,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: padding 0.3s, background 0.3s;
}
.navbar.scrolled {
  padding: 0.55rem 0;
  background: rgba(13,27,42,0.97);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 70px;
  width: auto;
  display: block;
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}
.logo-tagline {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-top: 3px;
}
.logo-rapid { color: var(--color-text-on-dark); }
.logo-wire  { color: var(--color-teal); }

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-teal); }

.nav-cta {
  margin-left: auto;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
}

.hamburger {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
  padding: 0.25rem;
  display: flex;
  align-items: center;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-navy);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.mobile-menu a:not(.btn-primary) {
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  transition: color 0.2s;
}
.mobile-menu a:not(.btn-primary):hover { color: var(--color-teal); }
.mobile-cta { font-size: 1rem; padding: 0.85rem 2.5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(ellipse at 72% 42%, rgba(0,196,167,0.12) 0%, transparent 52%),
    var(--color-navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-text-on-dark);
  padding-top: 5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 4rem;
}


.hero-content h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  animation: fade-up 0.7s ease both;
}
.highlight { color: var(--color-teal); }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.68);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2rem;
  animation: fade-up 0.7s ease 0.1s both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-up 0.7s ease 0.2s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-up 0.7s ease 0.3s both;
}

.hero-icon-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-signal {
  width: 170px;
  height: 170px;
  position: relative;
  z-index: 2;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,196,167,0.18);
  animation: pulse-ring 3.5s ease-out infinite;
}
.ring-1 { width: 180px; height: 180px; animation-delay: 0s; }
.ring-2 { width: 230px; height: 230px; animation-delay: 1.1s; }
.ring-3 { width: 280px; height: 280px; animation-delay: 2.2s; }

@keyframes pulse-ring {
  0%   { opacity: 0.5; transform: scale(0.88); }
  60%  { opacity: 0.12; }
  100% { opacity: 0;   transform: scale(1.08); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--color-teal);
  padding: 2.5rem 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1rem;
  justify-items: center;
  align-items: center;
}

.stat { text-align: center; }

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-number,
.stat-prefix,
.stat-suffix,
.stat-static {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-navy);
}
.stat-number,
.stat-static { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.stat-prefix,
.stat-suffix { font-size: 1.1rem; vertical-align: baseline; }

.stat-text { font-size: clamp(1.1rem, 2vw, 1.5rem) !important; }

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-navy);
  opacity: 0.65;
}

.stat-divider {
  display: none;
  width: 1px;
  height: 48px;
  background: rgba(13,27,42,0.18);
}
.stat:last-child { grid-column: 1 / -1; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners {
  background: var(--color-white);
  border-top: 1px solid rgba(13,27,42,0.07);
  border-bottom: 1px solid rgba(13,27,42,0.07);
  padding: 2.25rem 0;
}

.partners-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.partners-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-gray-400);
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.partner-logo {
  opacity: 0.55;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.partner-logo:hover { opacity: 1; }
.partner-logo svg { height: 40px; width: auto; }
.partner-logo img { height: 36px; width: auto; object-fit: contain; }

@media (min-width: 768px) {
  .partners-inner { flex-direction: row; justify-content: space-between; }
  .partners-label { white-space: nowrap; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: var(--section-py) 0; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid rgba(13,27,42,0.07);
  box-shadow: 0 4px 24px rgba(13,27,42,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(13,27,42,0.13);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--color-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.service-card p {
  font-size: 0.93rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.card-link {
  color: var(--color-teal);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s, color 0.2s;
}
.card-link:hover { gap: 9px; color: var(--color-teal-dark); }


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { padding: var(--section-py) 0; }

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step {
  text-align: center;
  padding: 1.5rem 0;
  max-width: 210px;
}
.step-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  margin: 0 auto 1rem;
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.step-connector {
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, var(--color-teal), rgba(0,196,167,0.15));
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us { padding: var(--section-py) 0; }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.benefit {
  background: #fff;
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: 0 2px 12px rgba(13,27,42,0.06);
  border: 1px solid rgba(13,27,42,0.05);
}
.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--color-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  margin-bottom: 1rem;
}
.benefit h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.benefit p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ============================================================
   CONTACT (usado por contacto.html)
   ============================================================ */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  transition: color 0.2s;
}
a.contact-detail:hover { color: var(--color-teal); }
.contact-detail svg { color: var(--color-teal); flex-shrink: 0; }

/* Form */
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 2rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.28); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-teal); }

.form-note {
  text-align: center;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
}
.form-note a { color: var(--color-teal); font-weight: 500; }

/* ============================================================
   FIELDWORK
   ============================================================ */
.fieldwork { padding: var(--section-py) 0; }

.fieldwork-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.fieldwork-img {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin: 0;
  background: var(--color-navy);
}

.fieldwork-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ============================================================
   CTA CONTACTO (index)
   ============================================================ */
.cta-contact { padding: var(--section-py) 0; text-align: center; }

.cta-contact-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-contact-inner p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
}
.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HERO (contacto.html)
   ============================================================ */
.page-hero {
  background: var(--color-navy);
  color: #fff;
  padding: 9rem 0 4rem;
  text-align: center;
}
.page-hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   CONTACT PAGE (contacto.html)
   ============================================================ */
.contact-page { padding: var(--section-py) 0; }

.contact-page-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.65rem;
}
.contact-info > p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
}
.contact-wa { margin-top: 2.25rem; }

.label-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  margin-left: 0.3rem;
}

.field-error {
  display: none;
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 0.35rem;
}
.field-error.visible { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #07101A; color: rgba(255,255,255,0.6); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.footer-logo { margin-bottom: 0.5rem; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-teal);
  opacity: 0.65;
  margin-bottom: 0.65rem;
}
.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
  max-width: 270px;
}
.footer-desc + .footer-desc { margin-top: 0.65rem; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col li,
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-teal); }

.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: background 0.2s, color 0.2s;
}
.social-links a:hover { background: var(--color-teal); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer-legal {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.7;
}
.footer-privacy {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.35);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer-privacy:hover { color: var(--color-teal); }

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  z-index: 90;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 26px rgba(37,211,102,0.55);
}

/* ============================================================
   RESPONSIVE — TABLET 768px+
   ============================================================ */
@media (min-width: 768px) {
  :root { --section-py: 6rem; }

  /* Nav */
  .nav-links  { display: flex; }
  .nav-cta    { margin-left: 0; }
  .hamburger  { display: none; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  /* Stats */
  .stats-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
  }
  .stat { padding: 0 1.5rem; }
  .stat-divider { display: block; }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Steps */
  .steps {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }
  .step { padding: 0 0.5rem; }
  .step-connector {
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--color-teal), rgba(0,196,167,0.15));
    margin-top: 2.6rem;
    flex-shrink: 0;
  }

  /* Fieldwork 4 en fila */
  .fieldwork-grid { grid-template-columns: repeat(4, 1fr); }
  .fieldwork-img  { aspect-ratio: 3/2; }

  /* Contact page */
  .contact-page-inner { grid-template-columns: 1fr 1.25fr; }

  /* Benefits */
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Footer */
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — DESKTOP 1024px+
   ============================================================ */
@media (min-width: 1024px) {
  .hero-icon-wrap { width: 360px; height: 360px; }
  .hero-signal    { width: 230px; height: 230px; }
  .ring-1 { width: 240px; height: 240px; }
  .ring-2 { width: 300px; height: 300px; }
  .ring-3 { width: 365px; height: 365px; }

}
