:root {
  --primary: #0B1C30;
  --primary-light: #132F4F;
  --primary-dark: #070F1A;
  --secondary: #2EC4B6;
  --secondary-dark: #22A89B;
  --secondary-15: rgba(46, 196, 182, 0.15);
  --gold: #C9A96E;
  --white: #FFFFFF;
  --cream: #F8F6F1;
  --text: #0F1A2B;
  --text-light: #687485;
  --text-lighter: #9AA5B5;
  --border: #E8E4DC;
  --shadow: 0 8px 40px rgba(11, 28, 48, 0.06);
  --shadow-lg: 0 24px 80px rgba(11, 28, 48, 0.1);
  --radius: 8px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1140px;
  --pad: 24px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 3px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--secondary); color: var(--white); }

::placeholder { transition: opacity 0.3s ease; }
:focus::placeholder { opacity: 0.4; }

a, button, input, textarea, .servicio-item, .job-card, .cliente-logo, .contact-card, .mvv-card, .valor-item {
  transition: color 0.35s ease, background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  margin-bottom: 20px;
  position: relative;
  padding-left: 48px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 1.5px;
  background: var(--secondary);
}

.section-title {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.section-title span { color: var(--secondary); }

.section-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 520px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 72px;
}

.section-header.centered { text-align: center; }
.section-header.centered .section-label { padding-left: 0; }
.section-header.centered .section-label::before { display: none; }
.section-header.centered .section-desc { margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.78rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.btn:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-primary {
  background: var(--secondary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(46, 196, 182, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: none;
  position: relative;
}

/* ========== NOISE OVERLAY ========== */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.015;
  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)'/%3E%3C/svg%3E");
}

/* ========== NAVBAR ========== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 1px;
  transition: var(--transition);
}

nav.scrolled .nav-brand { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--secondary);
  transition: width 0.4s ease;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

nav.scrolled .nav-links a { color: var(--text-light); }
nav.scrolled .nav-links a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--white);
}

nav.scrolled .nav-toggle { color: var(--primary); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(170deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(12rem, 20vw, 22rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.025);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero-lines-bg {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  opacity: 0;
  transform: translateY(40px);
  animation: heroIn 1s ease forwards;
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-content .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--secondary);
  padding: 8px 16px;
  border: 1px solid rgba(46, 196, 182, 0.2);
  margin-bottom: 28px;
}

.hero-content .hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  color: var(--white);
  margin-bottom: 8px;
}

.hero-content h1 span {
  color: var(--secondary);
  position: relative;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--secondary);
  opacity: 0.3;
}

.hero-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 460px;
  margin: 24px 0 40px;
  line-height: 1.9;
}

.hero-btns {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-btns .btn-outline {
  color: rgba(255, 255, 255, 0.7);
}

.hero-btns .btn-outline:hover {
  color: var(--white);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: heroIn 1s ease 0.2s forwards;
}

.hero-logo-frame {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 24px;
  border: 1px solid rgba(46, 196, 182, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-logo-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  border: 1px solid rgba(46, 196, 182, 0.08);
  pointer-events: none;
}

.hero-logo-frame .corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--secondary);
  border-style: solid;
  opacity: 0.5;
}

.hero-logo-frame .corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 24px 0 0 0; }
.hero-logo-frame .corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-radius: 0 24px 0 0; }
.hero-logo-frame .corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-radius: 0 0 0 24px; }
.hero-logo-frame .corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 24px 0; }

.hero-logo-frame img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .hero-logo-frame { width: 220px; height: 220px; border-radius: 20px; }
  .hero-logo-frame::before { border-radius: 14px; }
  .hero-logo-frame .corner-tl, .hero-logo-frame .corner-tr,
  .hero-logo-frame .corner-bl, .hero-logo-frame .corner-br { border-radius: 20px 0 0 0; }
  .hero-logo-frame .corner-tr { border-radius: 0 20px 0 0; }
  .hero-logo-frame .corner-bl { border-radius: 0 0 0 20px; }
  .hero-logo-frame .corner-br { border-radius: 0 0 20px 0; }
}

@media (max-width: 480px) {
  .hero-logo-frame { width: 170px; height: 170px; border-radius: 16px; padding: 0; }
  .hero-logo-frame::before { border-radius: 10px; inset: 5px; }
  .hero-logo-frame img { padding: 0; }
}

/* ========== SECTION DIVIDERS ========== */
.section-divider {
  width: 100%;
  height: 60px;
  position: relative;
  overflow: hidden;
  margin-top: -1px;
}

.section-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========== QUIENES SOMOS ========== */
#about {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about-stats .stat {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.about-stats .stat .num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 4px;
}

.about-stats .stat .lbl {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image {
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-graphic {
  width: 100%;
  max-width: 400px;
  transition: var(--transition);
}

.about-graphic svg,
.about-graphic img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== TESTIMONIOS ========== */
#clientes {
  padding: 120px 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

#clientes::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: var(--secondary-15);
  pointer-events: none;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cliente-logo {
  background: var(--white);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  min-height: 140px;
}

.cliente-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cliente-logo img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%) opacity(0.8);
  transition: var(--transition);
}

.cliente-logo:hover img {
  filter: grayscale(0%) opacity(1);
}

.cliente-mas {
  background: var(--primary);
  cursor: default;
}

.cliente-mas:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.cliente-mas span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  opacity: 0.7;
}

/* ========== SERVICIOS ========== */
#servicios {
  padding: 120px 0;
  background: var(--cream);
  position: relative;
}

.servicios-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
}

.servicio-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  transition: var(--transition);
  cursor: default;
}

.servicio-item:nth-child(even) {
  direction: rtl;
}

.servicio-item:nth-child(even) .servicio-content {
  direction: ltr;
}

.servicio-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.servicio-content {
  padding: 48px 40px;
  transition: var(--transition);
}

.servicio-content .icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.servicio-item:hover .icon-wrap svg { stroke: var(--secondary) !important; }

.servicio-content h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 16px;
  transition: var(--transition);
}

.servicio-content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.servicio-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  transition: var(--transition);
}

.servicio-content ul li svg {
  flex-shrink: 0;
  margin-top: 4px;
}

/* ========== MISION / VISION / VALORES ========== */
#mision {
  padding: 120px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

#mision::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--secondary-15);
  pointer-events: none;
}

.mvv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  z-index: 1;
}

.mvv-card {
  padding: 56px 48px;
  transition: var(--transition);
}

.mvv-card.mision {
  background: var(--primary);
  color: var(--white);
  position: relative;
}

.mvv-card.mision::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary);
}

.mvv-card.vision {
  background: var(--cream);
}

.mvv-card .icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.mvv-card.mision .icon-wrap { border-bottom: 2px solid var(--secondary); padding-bottom: 16px; }
.mvv-card.vision .icon-wrap { border-bottom: 2px solid var(--secondary); padding-bottom: 16px; }

.mvv-card.mision .icon-wrap svg { stroke: var(--secondary); }
.mvv-card.vision .icon-wrap svg { stroke: var(--secondary); }

.mvv-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.mvv-card.vision h3 { color: var(--primary); }

.mvv-card p {
  font-size: 0.92rem;
  line-height: 1.8;
}

.mvv-card.mision p { color: rgba(255, 255, 255, 0.75); }
.mvv-card.vision p { color: var(--text-light); }

/* VALORES */
.valores-wrap {
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.valores-wrap .section-label {
  padding-left: 0;
}

.valores-wrap .section-label::before { display: none; }

.valores-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.valor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.valor-item:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  z-index: 1;
}

.valor-item:hover span {
  color: var(--white);
}

.valor-item:hover .dot {
  background: var(--white);
}

.valor-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
  transition: var(--transition);
}

.valor-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

/* ========== CONTACTO ========== */
#contacto {
  padding: 120px 0;
  background: var(--cream);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 600px);
  gap: 48px;
  justify-content: center;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 44px 40px;
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow);
}

.cc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.cc-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.cc-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.cform .input-group {
  margin-bottom: 16px;
  position: relative;
}

.cform input,
.cform textarea {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  border-radius: 0;
}

.cform input:focus,
.cform textarea:focus {
  border-bottom-color: var(--secondary);
}

.cform input::placeholder,
.cform textarea::placeholder {
  color: var(--text-lighter);
}

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

.cform button {
  width: 100%;
  padding: 16px;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.82rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
}

.cform button:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.contact-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(11, 28, 48, 0.08);
}

.cb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.contact-map-wrap {
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.contact-map-wrap iframe {
  width: 100%;
  height: 280px;
  border: none;
  filter: grayscale(0.3) contrast(1.05);
  transition: var(--transition);
}

.contact-map-wrap iframe:hover {
  filter: grayscale(0) contrast(1);
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary-dark);
  padding: 48px 0 28px;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 24px;
}

footer .f-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

footer .f-brand span { color: var(--secondary); }

footer .f-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  transition: var(--transition);
}

footer .f-social a:hover {
  color: var(--secondary);
}

footer .copy {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ========== FLOATING BUTTONS ========== */
.float-buttons {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.float-btn:hover {
  transform: scale(1.08);
}

.float-btn svg {
  width: 22px;
  height: 22px;
}

.float-whatsapp {
  background: #25D366;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.25);
}

.float-whatsapp:hover {
  box-shadow: 0 8px 36px rgba(37, 211, 102, 0.35);
}

.float-instagram {
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCAF45);
  box-shadow: 0 6px 28px rgba(131, 58, 180, 0.25);
}

.float-instagram:hover {
  box-shadow: 0 8px 36px rgba(131, 58, 180, 0.35);
}

.float-top {
  background: var(--primary);
  box-shadow: 0 6px 28px rgba(11, 28, 48, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

.float-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.float-top:hover {
  background: var(--primary-light);
  box-shadow: 0 8px 36px rgba(11, 28, 48, 0.3);
}

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-l {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1), transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-l.visible { opacity: 1; transform: translateX(0); }

.reveal-r {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1), transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-r.visible { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.servicio-item.reveal-l, .servicio-item.reveal-r {
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1), transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.servicio-item:nth-child(1) { transition-delay: 0s; }
.servicio-item:nth-child(2) { transition-delay: 0.15s; }
.servicio-item:nth-child(3) { transition-delay: 0.3s; }
.servicio-item:nth-child(4) { transition-delay: 0.45s; }

/* ========== TOAST ========== */
#formToast {
  position: fixed;
  bottom: 90px;
  right: 28px;
  transform: translateY(20px);
  background: var(--primary);
  color: white;
  padding: 14px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 9999;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

#formToast.show { opacity: 1; transform: translateY(0); }

/* ========== CARRERAS / TRABAJÁ CON NOSOTROS ========== */
#carreras {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}

#carreras::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--secondary-15);
  pointer-events: none;
}

.careers-form-wrap {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.careers-form-wrap .cform {
  border: 1px solid var(--border);
  padding: 48px 44px;
  background: var(--white);
  transition: var(--transition);
}

.careers-form-wrap .cform:hover {
  box-shadow: var(--shadow);
}

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

.file-group {
  margin-top: 4px;
}

.file-drop {
  border: 1.5px dashed var(--border);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.file-drop:hover,
.file-drop.dragover {
  border-color: var(--secondary);
  background: var(--secondary-15);
}

.file-drop svg {
  margin-bottom: 12px;
}

.file-drop p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.file-drop span {
  font-size: 0.72rem;
  color: var(--text-lighter);
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-name {
  font-size: 0.82rem;
  color: var(--secondary);
  margin-top: 8px;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 6px;
}

.file-name.show {
  display: flex;
}

.file-name::before {
  content: '✓';
  font-weight: 700;
  color: var(--secondary);
}

.file-error {
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 6px;
  display: none;
}

.file-error.show {
  display: block;
}

.cform-msg {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
  border-radius: 0;
}

.cform-msg.success {
  display: block;
  background: rgba(46, 196, 182, 0.1);
  color: var(--secondary-dark);
  border: 1px solid rgba(46, 196, 182, 0.2);
}

.cform-msg.error {
  display: block;
  background: rgba(231, 76, 60, 0.08);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 60, 0.15);
}

/* ========== BÚSQUEDAS LABORALES ========== */
#busquedas {
  padding: 120px 0;
  background: var(--cream);
  position: relative;
}

body.jobs-view .hero,
body.jobs-view #about,
body.jobs-view #servicios,
body.jobs-view #mision,
body.jobs-view #clientes,
body.jobs-view #testimonios-breves,
body.jobs-view #faq,
body.jobs-view #contacto,
body.jobs-view #carreras {
  display: none;
}

body.jobs-view #busquedas {
  display: block;
  min-height: calc(100vh - var(--nav-h));
  padding-top: calc(var(--nav-h) + 60px);
}

body:not(.jobs-view) #busquedas {
  display: none;
}

.jobs-back-header {
  margin-bottom: 24px;
}

.jobs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 0;
  transition: var(--transition);
}

.jobs-back-btn:hover {
  color: var(--secondary);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.jobs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  background: var(--white);
  border: 1px solid var(--border);
}

.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.job-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.job-card-header h3 {
  font-size: 1.1rem;
  color: var(--primary);
  flex: 1;
}

.job-badge-modalidad {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--secondary-15);
  color: var(--secondary-dark);
  white-space: nowrap;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.job-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.job-card-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card-reqs {
  margin-bottom: 20px;
}

.job-card-reqs summary {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.job-card-reqs ul {
  margin-top: 8px;
  padding-left: 16px;
  list-style: disc;
}

.job-card-reqs ul li {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 4px;
  line-height: 1.5;
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.job-card-date {
  font-size: 0.72rem;
  color: var(--text-lighter);
}

.job-card-footer .btn {
  padding: 10px 24px;
  font-size: 0.7rem;
}

.job-card-flyer {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 16px;
}

/* ========== MODAL POSTULACIÓN ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(7, 15, 26, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease;
}

.modal-overlay.open {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--white);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-lighter);
  padding: 4px;
  transition: var(--transition);
  line-height: 0;
}

.modal-close:hover {
  color: var(--text);
}

.modal-header {
  margin-bottom: 28px;
  padding-right: 32px;
}

.modal-header h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.modal-content .cform {
  border: none;
  padding: 0;
}

.modal-content .cform input,
.modal-content .cform textarea {
  border-bottom: 1px solid var(--border);
}

.modal-content .file-drop {
  border: 1.5px dashed var(--border);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.modal-content .file-drop:hover,
.modal-content .file-drop.dragover {
  border-color: var(--secondary);
  background: var(--secondary-15);
}

.modal-content .file-drop svg {
  margin-bottom: 8px;
}

.modal-content .file-drop p {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.modal-content .file-drop span {
  font-size: 0.7rem;
  color: var(--text-lighter);
}

.modal-content .file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ========== COUNTERS ========== */
.counter-value {
  display: inline-block;
}

/* ========== SPINNER ========== */
.jobs-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 0;
  color: var(--text-lighter);
  font-size: 0.85rem;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== TOAST ========== */
#formToast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--primary);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

#formToast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

#formToast.show.error {
  background: #DC2626;
}

.toast-icon {
  flex-shrink: 0;
  display: none;
}

#formToast.show.success .toast-success,
#formToast.show.error .toast-error {
  display: block;
}

/* ========== TESTIMONIOS BREVES ========== */
#testimonios-breves {
  padding: 60px 0;
  background: var(--white);
}

.testimonios-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ts-item {
  text-align: center;
  padding: 0 16px;
}

.ts-item svg {
  margin-bottom: 16px;
}

.ts-item p {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.ts-item span {
  font-size: 0.78rem;
  color: var(--text-lighter);
  font-weight: 500;
}

/* ========== FAQ ========== */
#faq {
  padding: 100px 0;
  background: var(--cream);
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: none;
  padding: 20px 28px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.faq-question:hover {
  background: var(--cream);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 28px;
  background: var(--white);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 300px;
  padding: 0 28px 20px;
}

.faq-answer p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== CONTACT FORM LOADING ========== */
.cform button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========== HASH OFFSET ========== */
section[id] {
  scroll-margin-top: var(--nav-h);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero .container { gap: 40px; }
  .hero-logo-frame { width: 240px; height: 240px; }
  .servicio-number { font-size: 3.5rem; }
  .section-title { font-size: 2.2rem; }
  .clientes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --pad: 20px; }

  .reveal, .reveal-l, .reveal-r {
    opacity: 1 !important;
    transform: none !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 28px var(--pad);
    gap: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  }

  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-light) !important; font-size: 0.85rem; }
  .nav-toggle { display: block; }

  .hero-lines-bg { display: none; }
  .hero-watermark { display: none; }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-content h1 { font-size: 2rem; text-align: center; }
  .hero-content p { margin: 20px 0 32px; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-badge { margin: 0 auto; }

  .about-image { max-width: 280px; margin: 0 auto; }
  .about-stats { justify-content: center; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }

  .section-header { text-align: center; }

  .servicio-item { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .servicio-item:nth-child(even) .servicio-content { text-align: center; }
  .servicio-content { text-align: center; }
  .servicio-number { font-size: 2.5rem; padding: 20px; margin: 0 auto; }
  .servicio-content .btn-outline { margin: 0 auto; }

  .mvv-grid { grid-template-columns: 1fr; }
  .mvv-card { text-align: center; }
  .mvv-card.mision::after { top: auto; bottom: 0; right: 0; left: 0; width: 100%; height: 3px; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .valor-item { text-align: center; }

  #about, #servicios, #mision, #clientes, #faq, #contacto, #carreras, #busquedas { padding: 64px 0; }

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

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

  .contact-map-wrap iframe { height: 240px; }

  .clientes-grid { grid-template-columns: 1fr; gap: 16px; }
  .cliente-logo { padding: 24px; min-height: 90px; }
  .cliente-mas span { font-size: 1rem; }

  .faq-question { font-size: 0.85rem; padding: 16px 20px; }
  .faq-answer { padding: 0 20px; }
  .faq-question[aria-expanded="true"] + .faq-answer { padding: 0 20px 16px; }

  .careers-form-wrap { padding: 0; }
  .cform-grid { grid-template-columns: 1fr; }

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

  .float-buttons { bottom: 20px; right: 20px; gap: 10px; }
  .float-btn { width: 44px; height: 44px; }

  footer .container { flex-direction: column; gap: 12px; text-align: center; }
  .f-social a { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.7rem; }
  .hero-badge { font-size: 0.65rem; padding: 6px 14px; }
  .section-title { font-size: 1.5rem; }
  .valores-grid { grid-template-columns: 1fr; }
  #formToast { width: calc(100% - 24px); font-size: 0.8rem; padding: 12px 16px; bottom: 20px; }
  .modal-content { padding: 24px 20px; margin: 16px; }
  .job-card { padding: 20px; }
}
