/* =============================================================
   Pixel Waves — IT Consulting
   styles.css
   ============================================================= */

/* ─── RESET & VARIABLES ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sky:     #E8F4FD;
  --sky-mid: #B8DDF7;
  --blue:    #2E8FD4;
  --blue-dk: #1A5F96;
  --navy:    #0D3558;
  --white:   #FFFFFF;
  --mist:    #F4F9FD;
  --text:    #1A2E3D;
  --text-2:  #4A6579;
  --text-3:  #7A9AB0;
  --accent:  #54C5F8;
  --border:  rgba(46, 143, 212, 0.15);

  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
}

html {
  scroll-behavior: smooth;
}

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

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}


/* =============================================================
   NAVIGATION
   ============================================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 4px 24px rgba(13, 53, 88, 0.08);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-logo span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--blue-dk) !important;
  transform: translateY(-1px);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--mist);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.2s;
  user-select: none;
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.lang-flag {
  font-size: 18px;
  line-height: 1;
}

.lang-label {
  font-size: 12px;
  letter-spacing: 0.5px;
}


/* =============================================================
   HERO
   ============================================================= */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 5% 60px;
  gap: 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--white) 55%, var(--sky) 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(84, 197, 248, 0.18) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(46, 143, 212, 0.12) 0%, transparent 70%);
  bottom: -50px; left: 30%;
  animation: float 11s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sky);
  border: 1px solid var(--sky-mid);
  color: var(--blue-dk);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--blue);
}

.hero p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 40px;
  font-weight: 300;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(46, 143, 212, 0.35);
}

.btn-primary:hover {
  background: var(--blue-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(46, 143, 212, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* Hero visual / stats */
.hero-visual {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.7s 0.15s ease both;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(46, 143, 212, 0.12);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--blue));
}

.stat-card.featured {
  background: var(--navy);
  grid-column: span 2;
}

.stat-card.featured .stat-num   { color: var(--accent); }
.stat-card.featured .stat-label { color: rgba(255, 255, 255, 0.6); }
.stat-card.featured .stat-desc  { color: rgba(255, 255, 255, 0.85); }

.stat-icon  { font-size: 28px; margin-bottom: 12px; }
.stat-num   { font-family: var(--serif); font-size: 36px; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.stat-desc  { font-size: 13px; color: var(--text-2); line-height: 1.5; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =============================================================
   SHARED SECTION UTILITIES
   ============================================================= */
section {
  padding: 100px 5%;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.5px;
  max-width: 560px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 56px;
}


/* =============================================================
   SERVICES
   ============================================================= */
#servicios {
  background: var(--mist);
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}

.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding-bottom: 4px;
}

.pill {
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  transition: all 0.2s;
  font-family: var(--sans);
}

.pill:hover,
.pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(84, 197, 248, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(46, 143, 212, 0.14);
  border-color: rgba(46, 143, 212, 0.35);
}

.svc-card:hover::after {
  opacity: 1;
}

.svc-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: var(--sky);
  border: 1px solid var(--sky-mid);
  position: relative;
  z-index: 1;
}

.svc-name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.svc-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.svc-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blue);
  position: relative;
  z-index: 1;
}


/* =============================================================
   WHY US
   ============================================================= */
#nosotros {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#nosotros::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(84, 197, 248, 0.08) 0%, transparent 65%);
  top: -200px; right: -200px;
  pointer-events: none;
}

#nosotros .section-label { color: var(--accent); }
#nosotros .section-title { color: var(--white); max-width: 100%; }
#nosotros .section-sub   { color: rgba(255, 255, 255, 0.6); }

/* Team image banner */
.team-image-banner {
  width: 100%; height: 280px;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 48px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-image-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.82) saturate(0.9);
  transition: transform 0.6s ease;
}

.team-image-banner:hover img {
  transform: scale(1.03);
}

.team-image-banner .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 53, 88, 0.45) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 28px 32px;
}

.team-image-banner .img-caption {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--white);
  font-style: italic;
  opacity: 0.92;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reason-item {
  background: rgba(13, 53, 88, 0.6);
  padding: 36px 32px;
  transition: background 0.3s;
}

.reason-item:hover {
  background: rgba(46, 143, 212, 0.15);
}

.reason-num {
  font-family: var(--serif);
  font-size: 48px;
  color: rgba(84, 197, 248, 0.25);
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
}

.reason-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.reason-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  font-weight: 300;
}


/* =============================================================
   CONTACT
   ============================================================= */
#contacto {
  background: linear-gradient(160deg, var(--sky) 0%, var(--white) 60%);
}

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

.contact-info {
  position: sticky;
  top: 100px;
}

.contact-items {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px; height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(46, 143, 212, 0.08);
}

.contact-item-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}

.contact-item-text span {
  font-size: 14px;
  color: var(--text-2);
}

.contact-item-text a {
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item-text a:hover {
  color: var(--blue-dk);
  text-decoration: underline;
}

/* Form card */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  box-shadow: 0 8px 40px rgba(46, 143, 212, 0.08);
}

.form-title {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--mist);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(46, 143, 212, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(46, 143, 212, 0.3);
}

.form-submit:hover:not(:disabled) {
  background: var(--blue-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(46, 143, 212, 0.4);
}

.form-submit:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

/* Form status messages */
.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
  text-align: center;
}

.form-status.success {
  display: block;
  background: #E6F9F0;
  color: #0F6E56;
  border: 1px solid #A7E8D0;
}

.form-status.error {
  display: block;
  background: #FEE8E8;
  color: #8B1A1A;
  border: 1px solid #FAB4B4;
}


/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.5);
  padding: 48px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--white);
  text-decoration: none;
}

.footer-logo span {
  color: var(--accent);
}

footer p {
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}


/* =============================================================
   SCROLL REVEAL ANIMATION
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
  }

  .hero-visual {
    order: -1;
  }

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

  .stat-card.featured {
    grid-column: span 2;
  }

  .services-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    position: static;
  }

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

  .nav-links {
    display: none;
  }

  .form-card {
    padding: 32px 24px;
  }

  .team-image-banner {
    height: 200px;
  }
}
