/* ═══════════════════════════════════════════
   CIRCULAR — Hoja de estilos principal
   Edita colores, tipografías y espaciado aquí
   ═══════════════════════════════════════════ */

:root {
  --cream: #FDFECA;
  --dark: #292A30;
  --blue: #3B5EF5;
  --yellow: #E8D44D;
  --card-bg: #fefee8;
  --dark-card: #1a1b20;
  --font-sans: 'Figtree', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 100px; } }

/* Utility */
.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════
   ANIMACIONES — Fade up al hacer scroll
   ═══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0, 0, 0.2, 1), transform 0.6s cubic-bezier(0, 0, 0.2, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.5s, backdrop-filter 0.5s, box-shadow 0.5s;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(41, 42, 48, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 768px) { .navbar-inner { height: 80px; } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}
.nav-logo svg { height: 20px; }
@media (min-width: 768px) { .nav-logo svg { height: 24px; } }

.nav-tagline {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.3;
  align-self: flex-end;
  margin-bottom: -5px;
  margin-left: 10px;
}
@media (min-width: 1024px) { .nav-tagline { display: block; } }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(12, 49, 122, 0.9);
  text-decoration: none;
  font-weight: 900;
  transition: color 0.2s;
}
.nav-links a:hover { color: white; }

/* Mobile menu */
.hamburger {
  display: block;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
}

.navbar.scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.9);
}
.navbar.scrolled .nav-links a:hover {
  color: white;
}

.navbar.scrolled .nav-tagline {
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 1024px) { .hamburger { display: none; } }

.hamburger svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none;
  background: rgba(41, 42, 48, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px;
}
.mobile-menu.open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

.mobile-menu a {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: white; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-bottom: 64px;
  padding-top: 128px;
  background-image: url('../images/bg-Hero.jpg');
  background-size: cover;
  background-position: center;
}
@media (min-width: 768px) {
  .hero { min-height: 100vh; padding-bottom: 0; }
}

.hero-content { max-width: 1220px; }

.hero-subtitle {
  font-size: 1.875rem;
  color: var(--dark);
  margin-bottom: 0px;
  font-weight: 500;
}
@media (min-width: 640px) { .hero-subtitle { font-size: 2.25rem; } }
@media (min-width: 768px) { .hero-subtitle { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-subtitle { font-size: 3.2rem; } }

.hero-title {
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 32px;
}
@media (min-width: 640px) { .hero-title { font-size: 2.25rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.2rem; } }
@media (min-width: 1280px) { .hero-title { font-size: 3.5rem; } }

.btn-yellow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #FEF772;
  color: var(--dark);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
  text-transform: uppercase;
}
.btn-yellow:hover { background: #d4c244; }

/* ═══════════════════════════════════════════
   NOSOTROS (About)
   ═══════════════════════════════════════════ */
.section-cream { background: var(--cream); padding: 80px 0; }
@media (min-width: 768px) { .section-cream { padding: 112px 0; } }

.section-dark { background: var(--dark); padding: 80px 0; }
@media (min-width: 768px) { .section-dark { padding: 112px 0; } }

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-title { font-size: 2.8rem; } }

.section-text {
  color: rgba(41, 42, 48, 0.7);
  font-size: 1rem;
  line-height: 1.7;
}
@media (min-width: 768px) { .section-text { font-size: 1.125rem; } }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

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

.stat-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
   border: 1px solid #e5e5e5;
}
.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
@media (min-width: 768px) { .stat-value { font-size: 3rem; } }
@media (min-width: 1024px) { .stat-value { font-size: 3.5rem; } }

.stat-label { font-size: 14px; color: rgba(41, 42, 48, 0.6); }

.hitl-box {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
  border: 1px solid #e5e5e5;
}
@media (min-width: 768px) { .hitl-box { padding: 32px; } }
@media (min-width: 1024px) {
  .hitl-box { margin-left: calc(50% + 40px); margin-right: 0; margin-top: 24px; }
}

.hitl-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 12px;
  
}
.hitl-text { font-size: 14px; color: rgba(41, 42, 48, 0.7); line-height: 1.7; }
@media (min-width: 768px) { .hitl-text { font-size: 1rem; } }

/* ═══════════════════════════════════════════
   METODOLOGÍA
   ═══════════════════════════════════════════ */
.section-dark .label { color: rgba(255,255,255,0.4); }
.section-dark .section-title { color: white; }
.section-dark .section-text { color: rgba(255,255,255,0.6); max-width: 768px; margin-bottom: 56px; }

.tabs-row {
  display: none;
  gap: 8px;
  margin-bottom: 32px;
}
@media (min-width: 1024px) { .tabs-row { display: flex; } }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
}
.tab-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.tab-btn.active { background: var(--blue); color: white; }
.tab-btn svg { width: 16px; height: 16px; }

.tab-content {
  display: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
}
@media (min-width: 1024px) { .tab-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; } }

.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.tab-label-human {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 16px;
}
.tab-label-ia {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 16px;
}
.tab-text { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.7; }

/* Accordion (mobile/tablet) */
.accordion-container { display: block; }
@media (min-width: 1024px) { .accordion-container { display: none; } }

.accordion-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}
.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.accordion-header-left svg { width: 18px; height: 18px; color: rgba(255,255,255,0.4); }
.accordion-header-left span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.accordion-chevron {
  width: 18px; height: 18px;
  color: rgba(255,255,255,0.4);
  transition: transform 0.3s;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}
.accordion-item.open .accordion-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.accordion-body .tab-label-human,
.accordion-body .tab-label-ia {
  font-size: 10px;
  opacity: 0.8;
  margin-bottom: 8px;
}
.accordion-body .tab-text { font-size: 14px; color: rgba(255,255,255,0.5); }

/* ═══════════════════════════════════════════
   SERVICIOS
   ═══════════════════════════════════════════ */
.services-grid {
  display: none;
}
@media (min-width: 1024px) {
  .services-grid {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 80px;
  }
}

.service-item { padding: 20px 0; }
.service-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
}
.service-desc { font-size: 16px; color: rgba(41, 42, 48, 0.6); line-height: 1.7; }

/* Services accordion (mobile) */
.services-mobile { display: block; }
@media (min-width: 1024px) { .services-mobile { display: none; } }

.services-mobile .svc-accordion-item {
  border-bottom: 1px solid rgba(41, 42, 48, 0.1);
}
.services-mobile .svc-accordion-item:first-child {
  border-top: 1px solid rgba(41, 42, 48, 0.1);
}
.svc-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.svc-accordion-header span {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.svc-accordion-header svg {
  width: 18px; height: 18px;
  color: rgba(41, 42, 48, 0.4);
  transition: transform 0.3s;
}
.svc-accordion-item.open .svc-accordion-header svg { transform: rotate(180deg); }
.svc-accordion-body {
  display: none;
  padding-bottom: 16px;
}
.svc-accordion-item.open .svc-accordion-body { display: block; }
.svc-accordion-body p { font-size: 14px; color: rgba(41, 42, 48, 0.6); line-height: 1.7; }

/* ═══════════════════════════════════════════
   EQUIPO
   ═══════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: 4fr 8fr; gap: 80px; }
}

.team-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  
  
}
@media (min-width: 640px) { .team-cards { grid-template-columns: 1fr 1fr; } }

.team-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e5e5e5;
}
.team-name { font-size: 1.125rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.team-role { font-size: 14px; color: rgba(41, 42, 48, 0.6); line-height: 1.7; margin-bottom: 24px; }
.team-linkedin img {
  width: 24px; height: 24px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.team-linkedin:hover img { opacity: 1; }

/* ═══════════════════════════════════════════
   CASOS
   ═══════════════════════════════════════════ */
.cases-desktop {
  display: none;
}
@media (min-width: 768px) {
  .cases-desktop { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}

.cases-mobile { display: block; }
@media (min-width: 768px) { .cases-mobile { display: none; } }

.case-col-right { margin-top: 64px; }

.case-card { margin-bottom: 24px; }
.case-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  background-color: #1a1b20; 

}
.case-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
  transform: scale(1.02);
}
.case-card:hover .case-img-wrap img { transform: scale(1.07); }

.case-info {
  background: var(--dark-card);
  border-radius: 16px;
  padding: 20px;
  margin-top: 12px;
}
.case-title { font-size: 1.125rem; font-weight: 700; color: white; margin-bottom: 8px; }
.case-desc { font-size: 16px; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* Mobile cases */
.cases-mobile .case-card { margin-bottom: 24px; }
.cases-mobile .case-img-wrap { border-radius: 12px;   background: #1a1b20; }
.cases-mobile .case-info { border-radius: 12px; padding: 16px; margin-top: 8px; }
.cases-mobile .case-title { font-size: 1rem; margin-bottom: 4px; }

/* ═══════════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 80px; }
}

.contact-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
}
@media (min-width: 768px) { .contact-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .contact-title { font-size: 2.5rem; } }

.form-group { margin-bottom: 32px; }
.form-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(41, 42, 48, 0.5);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(41, 42, 48, 0.2);
  outline: none;
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--dark);
  transition: border-color 0.3s;
  border-radius: 0;
}
.form-input:focus { border-bottom-color: var(--blue); }

textarea.form-input { resize: none; min-height: 60px; }

.form-submit-row { display: flex; justify-content: flex-end; }

.btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--blue);
  color: white;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-blue:hover { background: #2d4bd4; }
.btn-blue:disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer { background: var(--dark); padding: 48px 0; }
@media (min-width: 768px) { .footer { padding: 64px 0; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }

.footer-logo svg { height: 20px; color: white; }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-top: 12px;
}

.footer-contact p { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }

.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.7); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* Section border */
.border-top-light { border-top: 1px solid rgba(41, 42, 48, 0.05); }

/* SVG icons inline */
.icon-chevron-right { width: 16px; height: 16px; vertical-align: middle; }
.icon-arrow-right { width: 16px; height: 16px; vertical-align: middle; }

/* Success message */
.form-success {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.form-success.show { display: block; }



/* ═══════════════════════════════════════════
   STACK TECNOLÓGICO
   ═══════════════════════════════════════════ */
.section-stack {
  background: var(--dark);
  padding: 10px 0 0 40px;
}
@media (min-width: 768px) { .section-stack { padding: 80px 0; } }

.section-stack .label {
  color: rgba(255,255,255,0.4);
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 40px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .stack-grid { gap: 40px 56px; }
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.stack-item:hover {
  color: white;
}

.stack-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .stack-item svg { width: 28px; height: 28px; }
}

.stack-item span {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .stack-item span { font-size: 15px; }
}

/* Para logos que son solo texto (sin SVG disponible) */
.stack-item--text-only span {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
@media (min-width: 768px) {
  .stack-item--text-only span { font-size: 16px; }
}