/* ── INDEX.CSS — Estilos exclusivos de index.html ── */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green-glow); border: 1px solid var(--green-dark);
  border-radius: 999px; padding: 0.35rem 0.9rem;
  font-size: 0.78rem; font-weight: 500; color: var(--green-bright);
  margin-bottom: 1.5rem;
}
.hero-tag::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green-bright);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #fff 0%, #525252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-cursor {
  display: inline-block;
  color: var(--green-bright);
  font-weight: 300;
  animation: cursorBlink 0.75s step-end infinite;
  margin-left: 2px;
}
.hero-cursor.done { animation-duration: 1.2s; opacity: 0.5; }
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-desc { font-size: 1rem; color: var(--muted); max-width: 480px; margin-bottom: 2rem; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-quote {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--s1); border: 1px solid var(--border2);
  border-radius: 999px; padding: 0.45rem 1rem;
  font-size: 0.8rem; color: var(--muted);
}
.hero-quote .dot {
  width: 8px; height: 8px; background: var(--green-bright);
  border-radius: 50%; flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* CSS Sphere */
.hero-visual {
  position: relative; display: flex;
  align-items: center; justify-content: center; height: 480px;
}
.sphere-wrap {
  position: relative; width: 340px; height: 340px;
  animation: sphereFloat 6s ease-in-out infinite;
}
@keyframes sphereFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.sphere-video-clip {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 80px rgba(3,124,70,0.22), 0 0 200px rgba(3,124,70,0.10);
}
.sphere-video-clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sphere-badge {
  position: absolute;
  background: var(--s1); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 0.55rem 0.9rem;
  font-size: 0.75rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.45rem;
  white-space: nowrap; box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.sphere-badge .icon { font-size: 1rem; }
.sphere-badge .val { color: var(--green-bright); }
.badge-1 { top: 8%; right: -5%; }
.badge-2 { bottom: 18%; left: -10%; }
.badge-3 { bottom: 5%; right: 5%; }

/* ── LOGOS ── */
.logos-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-label {
  text-align: center; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 2rem;
}
.logos-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, rgba(0,0,0,0) 100%);
  margin-bottom: 1.2rem;
}
.logos-track {
  display: flex; gap: 3rem; width: max-content;
  animation: scrollLeft 28s linear infinite;
}
.logos-track-rev { animation-direction: reverse; }
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-item {
  display: flex; align-items: center; justify-content: center;
  height: 36px; opacity: 0.45; flex-shrink: 0;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
  padding: 0 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-xs); min-width: 120px;
  transition: opacity 0.2s;
}

/* ── PROCESO (index) ── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step-card {
  position: relative; background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); overflow: hidden; min-height: 460px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  border-color: rgba(50,205,135,0.4);
  box-shadow: 0 0 40px rgba(50,205,135,0.15);
}
.step-anim { position: absolute; inset: 0; overflow: hidden; }
.step-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.92) 38%, rgba(0,0,0,0.55) 62%, transparent 100%);
}
.step-content { position: relative; z-index: 2; padding: 2rem 1.5rem; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(75% 75% at 43% 60%, #000 0%, #5e5e5e 100%);
  border-top: 1.5px solid rgba(165,165,165,0.5);
  -webkit-mask-image: radial-gradient(100% 100% at 98.5% 105.6%, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
  mask-image: radial-gradient(100% 100% at 98.5% 105.6%, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 1.2rem;
}
.step-content h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.55rem; }
.step-content p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* CARD 1 — RADAR */
.radar-anim { display: flex; align-items: center; justify-content: center; }
.radar-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(50,205,135,0.13); }
.radar-ring:nth-child(1) { width: 80px; height: 80px; }
.radar-ring:nth-child(2) { width: 160px; height: 160px; }
.radar-ring:nth-child(3) { width: 240px; height: 240px; }
.radar-ring:nth-child(4) { width: 330px; height: 330px; }
.radar-cross { position: absolute; background: rgba(50,205,135,0.07); }
.radar-cross.h { width: 330px; height: 1px; }
.radar-cross.v { width: 1px; height: 330px; }
.radar-center { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 14px var(--green-bright); }
.radar-sweep {
  position: absolute; width: 165px; height: 165px;
  background: conic-gradient(from 270deg, transparent 0deg, rgba(50,205,135,0.2) 28deg, transparent 29deg);
  border-radius: 50%; animation: radarSpin 4s linear infinite;
}
.radar-blip {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright), 0 0 18px rgba(50,205,135,0.4);
  animation: blipPulse 4s ease-in-out infinite;
}
@keyframes radarSpin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
@keyframes blipPulse {
  0%, 12%, 88%, 100% { opacity: 0; transform: scale(0.4) }
  25%, 72% { opacity: 1; transform: scale(1) }
}

/* CARD 2 — GANTT */
.gantt-anim { display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem 1.5rem 2rem; gap: 13px; }
.gantt-row { display: flex; align-items: center; gap: 10px; }
.gantt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); opacity: .65; flex-shrink: 0; }
.gantt-track { flex: 1; height: 7px; background: var(--s3); border-radius: 4px; overflow: hidden; }
.gantt-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(to right, var(--green-dark), var(--green-bright));
  transform-origin: left; animation: ganttPulse 3.5s ease-in-out infinite alternate;
}
.gantt-row:nth-child(1) .gantt-fill { width: 88%; animation-delay: 0s }
.gantt-row:nth-child(2) .gantt-fill { width: 55%; animation-delay: .25s }
.gantt-row:nth-child(3) .gantt-fill { width: 100%; animation-delay: .5s }
.gantt-row:nth-child(4) .gantt-fill { width: 42%; animation-delay: .75s }
.gantt-row:nth-child(5) .gantt-fill { width: 73%; animation-delay: 1s }
@keyframes ganttPulse {
  from { transform: scaleX(0.35); opacity: .45 }
  to { transform: scaleX(1); opacity: 1 }
}

/* CARD 3 — CODIGO */
.code-anim { display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem 1.5rem 2rem; gap: 8px; }
.code-line { height: 7px; border-radius: 3px; animation: codeReveal 5s ease-in-out infinite both; }
.code-line.indent { margin-left: 16px; }
.code-line.indent2 { margin-left: 32px; }
.code-line.kw { background: rgba(86,156,214,0.55) }
.code-line.fn { background: rgba(220,220,170,0.5) }
.code-line.str { background: rgba(50,205,135,0.52) }
.code-line.var { background: rgba(156,220,254,0.45) }
.code-line.cm { background: rgba(106,153,85,0.42) }
.code-line:nth-child(1) { width: 44%; animation-delay: 0s }
.code-line:nth-child(2) { width: 68%; animation-delay: .3s }
.code-line:nth-child(3) { width: 52%; animation-delay: .6s }
.code-line:nth-child(4) { width: 35%; animation-delay: .9s }
.code-line:nth-child(5) { width: 80%; animation-delay: 1.2s }
.code-line:nth-child(6) { width: 60%; animation-delay: 1.5s }
.code-line:nth-child(7) { width: 42%; animation-delay: 1.8s }
.code-line:nth-child(8) { width: 76%; animation-delay: 2.1s }
.deploy-bar { margin-top: 10px; height: 4px; background: var(--s3); border-radius: 4px; overflow: hidden; }
.deploy-fill {
  height: 100%; background: linear-gradient(to right, var(--green-dark), var(--green-bright));
  border-radius: 4px; animation: deployFill 5s ease-in-out infinite;
}
@keyframes codeReveal {
  0%, 4% { opacity: 0; transform: translateX(-8px) }
  8%, 80% { opacity: 1; transform: translateX(0) }
  92%, 100% { opacity: 0 }
}
@keyframes deployFill {
  0% { width: 0% }
  60%, 82% { width: 100% }
  95%, 100% { width: 0% }
}

/* CARD 4 — BARRAS */
.bars-anim { display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem 1.5rem 2rem; }
.bars-trend { position: relative; height: 22px; margin-bottom: 12px; }
.bars-trend-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, transparent, rgba(50,205,135,.5) 40%, var(--green-bright) 100%);
  border-radius: 2px;
}
.bars-trend-dot {
  position: absolute; right: 0; top: -4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--green-bright);
  box-shadow: 0 0 10px var(--green-bright); animation: pulse 2s ease-in-out infinite;
}
.bars-wrap { display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.bar-col {
  flex: 1; border-radius: 5px 5px 0 0;
  background: linear-gradient(to top, var(--green-dark), var(--green-bright));
  opacity: .75; animation: barGrow 3s ease-in-out infinite alternate;
}
.bar-col:nth-child(1) { height: 32%; animation-delay: 0s }
.bar-col:nth-child(2) { height: 58%; animation-delay: .15s }
.bar-col:nth-child(3) { height: 44%; animation-delay: .3s }
.bar-col:nth-child(4) { height: 83%; animation-delay: .45s }
.bar-col:nth-child(5) { height: 52%; animation-delay: .6s }
.bar-col:nth-child(6) { height: 94%; animation-delay: .75s }
@keyframes barGrow {
  from { transform: scaleY(0.5); opacity: .4 }
  to { transform: scaleY(1); opacity: .85 }
}

/* ── SERVICIOS SLIDES (index) ── */
#servicios { padding: 0 !important; }
#servicios > .container { display: none; }
/* En móvil el padding lo controla .srv-mobile-cards */
.srv-viewport { position: relative; height: 100vh; overflow: hidden; }
.srv-track { display: flex; height: 100%; will-change: transform; }
.srv-slide {
  min-width: 100vw; height: 100vh; display: flex;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.srv-slide::before {
  content: ''; position: absolute; inset: -80px;
  filter: blur(80px); z-index: 0; pointer-events: none;
}
.srv-slide:nth-child(1)::before { background: radial-gradient(ellipse 70% 70% at 20% 30%, rgba(50,205,135,0.35) 0%, transparent 65%), radial-gradient(ellipse 60% 60% at 80% 70%, rgba(3,124,70,0.25) 0%, transparent 60%); }
.srv-slide:nth-child(2)::before { background: radial-gradient(ellipse 70% 70% at 80% 20%, rgba(50,205,135,0.3) 0%, transparent 65%), radial-gradient(ellipse 60% 60% at 20% 80%, rgba(3,124,70,0.2) 0%, transparent 60%); }
.srv-slide:nth-child(3)::before { background: radial-gradient(ellipse 70% 70% at 50% 10%, rgba(50,205,135,0.32) 0%, transparent 65%), radial-gradient(ellipse 60% 60% at 50% 90%, rgba(3,124,70,0.22) 0%, transparent 60%); }
.srv-slide:nth-child(4)::before { background: radial-gradient(ellipse 70% 70% at 10% 70%, rgba(50,205,135,0.28) 0%, transparent 65%), radial-gradient(ellipse 60% 60% at 90% 30%, rgba(3,124,70,0.2) 0%, transparent 60%); }
.srv-slide:nth-child(5)::before { background: radial-gradient(ellipse 70% 70% at 70% 80%, rgba(50,205,135,0.3) 0%, transparent 65%), radial-gradient(ellipse 60% 60% at 30% 20%, rgba(3,124,70,0.22) 0%, transparent 60%); }
.srv-slide:nth-child(6)::before { background: radial-gradient(ellipse 70% 70% at 30% 50%, rgba(50,205,135,0.34) 0%, transparent 65%), radial-gradient(ellipse 60% 60% at 70% 50%, rgba(3,124,70,0.24) 0%, transparent 60%); }
.srv-slide-inner {
  position: relative; z-index: 1; max-width: 820px; width: 100%;
  padding: 0 2.5rem; display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.srv-left { display: flex; flex-direction: column; gap: 1.5rem; }
.srv-num { font-size: 6rem; font-weight: 900; line-height: 1; color: rgba(50,205,135,0.12); letter-spacing: -4px; user-select: none; }
.srv-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green-bright);
  background: rgba(50,205,135,0.1); border: 1px solid rgba(50,205,135,0.25);
  border-radius: 100px; padding: 0.3rem 0.9rem; width: fit-content;
}
.srv-title { font-size: 2.8rem; font-weight: 800; line-height: 1.15; color: #fff; letter-spacing: -0.02em; }
.srv-desc { font-size: 1rem; color: var(--muted); line-height: 1.75; }
.srv-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; font-weight: 600; color: var(--green-bright);
  text-decoration: none; transition: gap 0.2s; width: fit-content;
}
.srv-link:hover { gap: 0.7rem; }
.srv-right { display: flex; align-items: center; justify-content: center; }
.srv-icon-wrap {
  width: 220px; height: 220px; border-radius: 32px;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.06) inset;
}
.srv-icon-wrap svg { width: 90px; height: 90px; }
.srv-dots {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 10;
}
.srv-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.25); transition: background 0.3s, transform 0.3s; }
.srv-dot.active { background: var(--green-bright); transform: scale(1.4); }
.srv-progress { position: absolute; top: 0; left: 0; height: 2px; background: var(--green-bright); z-index: 10; transition: width 0.1s linear; }
.srv-counter { position: absolute; top: 2rem; right: 2.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.35); font-weight: 600; letter-spacing: .05em; z-index: 10; }

/* ── SERVICIOS MOBILE CARDS (ocultas en desktop, visibles en móvil) ── */
.srv-mobile-cards { display: none; }
.srv-stack-item { position: relative; }
.srv-mobile-card { position: relative; }

/* ── PROYECTOS ── */
#proyectos { position: relative; overflow: hidden; padding-top: 6rem; padding-bottom: 6rem; }
#proyectos::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(50,205,135,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(50,205,135,0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
  animation: gridScroll 18s linear infinite; z-index: 0; pointer-events: none;
}
#proyectos::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 55% at 15% 65%, rgba(50,205,135,0.11) 0%, transparent 55%), radial-gradient(ellipse 45% 45% at 82% 25%, rgba(3,124,70,0.13) 0%, transparent 55%), radial-gradient(ellipse 35% 35% at 55% 85%, rgba(50,205,135,0.07) 0%, transparent 50%);
  animation: auroraFloat 10s ease-in-out infinite alternate; z-index: 0; pointer-events: none;
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(50,205,135,0.0) 10%, rgba(50,205,135,0.35) 50%, rgba(50,205,135,0.0) 90%, transparent 100%);
  animation: scanDown 7s linear infinite; z-index: 1; pointer-events: none;
}
#proyectos .container { position: relative; z-index: 2; }
@keyframes gridScroll { from { background-position: 0 0; } to { background-position: 0 52px; } }
@keyframes auroraFloat {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.04); }
  100% { transform: translate(-16px, 12px) scale(0.97); }
}
@keyframes scanDown {
  0% { top: -2px; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.projects-grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 1.5rem; }
.project-card { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.project-card:hover { border-color: var(--border3); }
.project-card.featured { grid-row: span 2; }
.project-img { width: 100%; aspect-ratio: 16/9; background: var(--s3); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--dim); position: relative; overflow: hidden; }
.project-card.featured .project-img { aspect-ratio: 4/5; }
.project-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.project-img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--dim); font-size: 0.78rem; }
.project-img-placeholder .ico { font-size: 2rem; }
.project-info { padding: 1.5rem; }
.project-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-bright); margin-bottom: 0.5rem; }
.project-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.project-info p { font-size: 0.85rem; color: var(--muted); }

/* ── TESTIMONIOS CAROUSEL ── */
#testimonios { position: relative; padding-top: 5rem; padding-bottom: 0; }
#testimonios::before {
  content: ''; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(50,205,135,0.28) 0%, rgba(3,124,70,0.14) 45%, transparent 72%);
  filter: blur(90px); pointer-events: none; z-index: 0;
}
#testimonios .container { position: relative; z-index: 1; }
.testi-pin { overflow: hidden; margin-top: 3rem; min-height: 100vh; display: flex; align-items: center; }
.testi-track { display: flex; gap: 1.2rem; padding: 0 5vw; width: max-content; will-change: transform; }
.testi-card { width: 320px; min-height: 440px; border-radius: 22px; flex-shrink: 0; padding: 1.8rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.testi-card--wide { width: 380px; }
.testi-card--dark { background: #111; border: 1px solid rgba(255,255,255,0.08); }
.testi-card--green { background: linear-gradient(150deg, #024d2e 0%, #037c46 65%, #024d2e 100%); }
.testi-card--teal { background: linear-gradient(150deg, #0a2a24 0%, #0d6e5e 100%); }
.testi-stars { color: var(--green-bright); font-size: 0.85rem; letter-spacing: 3px; margin-bottom: 0.75rem; }
.testi-quote { font-size: 1rem; line-height: 1.65; color: #fff; flex: 1; }
.testi-quote-bottom { font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.88); }
.testi-author { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12); }
.testi-avatar-sm { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: #fff; flex-shrink: 0; letter-spacing: 0.5px; }
.testi-card--dark .testi-avatar-sm { background: var(--green-dark); }
.testi-card-top { display: flex; justify-content: space-between; font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; }
.testi-initials-bg { font-size: 7rem; font-weight: 900; line-height: 1; color: rgba(255,255,255,0.07); letter-spacing: -4px; text-align: center; margin: auto 0; user-select: none; }
.testi-name { font-size: 0.875rem; font-weight: 600; color: #fff; }
.testi-role { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 0.1rem; }

/* ── CALCULADORA ROI 3D ── */
.calc-perspective { perspective: 1400px; perspective-origin: 50% 40%; }
.calc-wrap {
  background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 2.75rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
  transform-style: preserve-3d; transition: transform 0.14s ease-out, box-shadow 0.14s ease-out; will-change: transform;
  box-shadow: 0 2px 0 rgba(255,255,255,0.05) inset, 0 -1px 0 rgba(0,0,0,0.8) inset, 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.3);
  position: relative;
}
.calc-wrap::before {
  content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent); border-radius: 50%;
}
.calc-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.6rem; display: block; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.3rem; }
.btn-opt {
  padding: 0.48rem 0.85rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border2); background: var(--s3); color: var(--muted);
  font-size: 0.78rem; font-weight: 500; font-family: inherit; cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.btn-opt:hover { border-color: var(--border3); color: var(--text); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.06) inset; }
.btn-opt.active { background: var(--green-dark); border-color: var(--green); color: #fff; font-weight: 600; box-shadow: 0 2px 12px rgba(3,124,70,0.4), 0 1px 0 rgba(50,205,135,0.2) inset; }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; margin-bottom: 0.5rem; }
.btn-toggle {
  padding: 0.5rem 0.7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border2); background: var(--s3); color: var(--muted);
  font-size: 0.75rem; font-family: inherit; cursor: pointer; text-align: left;
  transition: all 0.18s; box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.04) inset;
  position: relative;
}
.btn-toggle::before { content: '○'; margin-right: 0.4rem; font-size: 0.65rem; opacity: 0.4; }
.btn-toggle.active { background: rgba(3,124,70,0.18); border-color: var(--green); color: var(--green-bright); box-shadow: 0 2px 10px rgba(3,124,70,0.25), 0 1px 0 rgba(50,205,135,0.1) inset; }
.btn-toggle.active::before { content: '●'; color: var(--green-bright); opacity: 1; }
.calc-result-side { transform: translateZ(28px); transform-style: preserve-3d; }
.calc-result-main {
  background: linear-gradient(145deg, #0a0a0a, #111);
  border: 1px solid var(--green); border-radius: var(--radius); padding: 1.75rem;
  text-align: center; margin-bottom: 1rem;
  box-shadow: 0 0 30px rgba(3,124,70,0.15), 0 1px 0 rgba(50,205,135,0.1) inset;
  position: relative; overflow: hidden;
}
.calc-result-main::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(to right, transparent, rgba(50,205,135,0.3), transparent); }
.calc-result-label-sm { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.calc-result-range { font-size: 2.2rem; font-weight: 700; color: var(--green-bright); letter-spacing: -0.04em; line-height: 1.1; }
.calc-result-market { font-size: 0.78rem; color: var(--dim); margin-top: 0.4rem; text-decoration: line-through; }
.calc-savings {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--green-glow); border: 1px solid var(--green-dark);
  border-radius: 999px; padding: 0.3rem 0.85rem;
  font-size: 0.76rem; font-weight: 600; color: var(--green-bright); margin-top: 0.75rem;
}
.calc-breakdown { display: flex; flex-direction: column; gap: 0.45rem; }
.calc-breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0.9rem; background: rgba(0,0,0,0.4); border: 1px solid var(--border2);
  border-radius: var(--radius-xs); font-size: 0.8rem; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.calc-breakdown-row span:first-child { color: var(--muted); }
.calc-breakdown-row span:last-child { color: var(--text); font-weight: 600; }

/* ── APP PRODUCTO (index precios section) ── */
#precios { position: relative; overflow: hidden; background: #000; padding: 3rem 0 6rem; }
.app-bg-logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 0; opacity: 0.04; }
.app-bg-logo svg { width: 80vw; max-width: 900px; height: auto; }
.app-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.app-left { display: flex; flex-direction: column; gap: 1.5rem; }
.app-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #037c46; background: rgba(3,124,70,0.12); border: 1px solid rgba(3,124,70,0.3);
  border-radius: 100px; padding: 0.35rem 1rem; width: fit-content;
}
.app-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #037c46; display: inline-block; }
.app-title { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.15; color: #fff; letter-spacing: -0.02em; }
.app-title span { color: #037c46; }
.app-desc { font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 480px; }
.app-features { display: flex; flex-direction: column; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.app-features li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.app-features li::before { content: '✓'; width: 20px; height: 20px; border-radius: 50%; background: rgba(3,124,70,0.2); border: 1px solid rgba(3,124,70,0.4); color: #32cd87; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-price-block { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.5rem; }
.app-price { font-size: 3.5rem; font-weight: 900; color: #fff; line-height: 1; }
.app-price sup { font-size: 1.5rem; vertical-align: super; color: #32cd87; }
.app-price-note { font-size: 0.85rem; color: var(--muted); }
.app-cta-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn-blue { background: #037c46; color: #fff; border: none; border-radius: var(--radius-sm); padding: 0.75rem 1.75rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.2s, transform 0.15s; display: inline-flex; align-items: center; gap: 0.4rem; }
.btn-blue:hover { background: #245f37; transform: translateY(-2px); }
.app-right { position: relative; display: flex; flex-direction: column; gap: 1.2rem; }
.dash-card { background: #f0f4f8; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.05); transform: perspective(1000px) rotateY(-4deg) rotateX(2deg); transition: transform 0.3s ease; }
.dash-card:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.01); }
.dash-card-inner { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.dash-layout { display: flex; }
.dash-sidebar { width: 160px; flex-shrink: 0; background: #0d2d3e; padding: 0.75rem 0; min-height: 200px; }
.dash-sidebar-logo { padding: 0.5rem 0.75rem 0.75rem; font-size: 0.65rem; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 0.4rem; }
.dash-sidebar-logo span { color: #f97316; font-size: 0.55rem; display: block; }
.dash-nav-item { padding: 0.35rem 0.75rem; font-size: 0.58rem; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.dash-nav-item.active { background: #f97316; color: #fff; border-radius: 6px; margin: 0 0.4rem; }
.dash-nav-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; flex-shrink: 0; }
.dash-main { flex: 1; padding: 0.75rem; }
.dash-main-title { font-size: 0.7rem; font-weight: 700; color: #1e293b; margin-bottom: 0.2rem; }
.dash-main-sub { font-size: 0.5rem; color: #64748b; margin-bottom: 0.6rem; }
.dash-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.4rem; margin-bottom: 0.6rem; }
.dash-stat-card { background: #fff; border-radius: 8px; padding: 0.5rem 0.6rem; border: 1px solid #e2e8f0; }
.dash-stat-num { font-size: 0.9rem; font-weight: 800; color: #16a34a; line-height: 1; }
.dash-stat-num.orange { color: #f97316; }
.dash-stat-num.dark { color: #1e293b; }
.dash-stat-label { font-size: 0.42rem; color: #64748b; margin-top: 0.15rem; }
.dash-stat-sub { font-size: 0.42rem; color: #16a34a; font-weight: 600; }
.dash-stat-sub.orange { color: #f97316; }
.dash-table { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; }
.dash-table-head { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr 1.2fr; padding: 0.3rem 0.5rem; font-size: 0.4rem; font-weight: 600; color: #64748b; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.dash-table-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr 1.2fr; padding: 0.3rem 0.5rem; font-size: 0.42rem; color: #1e293b; border-bottom: 1px solid #f1f5f9; align-items: center; }
.dash-badge { display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px; border-radius: 4px; font-size: 0.38rem; font-weight: 600; }
.dash-badge.pending { background: #fff7ed; color: #f97316; border: 1px solid #fed7aa; }
.dash-badge.paid { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.dash-btn-mark { background: #16a34a; color: #fff; font-size: 0.38rem; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.dash-summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.4rem; margin-bottom: 0.6rem; }
.dash-sum-card { background: #fff; border-radius: 8px; padding: 0.5rem; border: 1px solid #e2e8f0; }
.dash-sum-icon { font-size: 0.7rem; margin-bottom: 0.2rem; }
.dash-sum-num { font-size: 0.75rem; font-weight: 800; color: #16a34a; }
.dash-sum-num.orange { color: #f97316; }
.dash-sum-num.blue { color: #037c46; }
.dash-sum-label { font-size: 0.38rem; color: #64748b; }
.dash-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.dash-panel { background: #fff; border-radius: 8px; padding: 0.5rem; border: 1px solid #e2e8f0; }
.dash-panel-title { font-size: 0.5rem; font-weight: 700; color: #1e293b; margin-bottom: 0.4rem; }
.dash-list-row { display: flex; justify-content: space-between; font-size: 0.42rem; color: #374151; padding: 0.2rem 0; border-bottom: 1px solid #f1f5f9; }
.dash-list-row span { color: #16a34a; font-weight: 600; }
.dash-action-btn { display: block; text-align: center; padding: 0.3rem; border-radius: 6px; font-size: 0.42rem; font-weight: 600; margin-bottom: 0.3rem; }
.dash-action-btn.dark-btn { background: #0d2d3e; color: #fff; }
.dash-action-btn.orange-btn { background: #f97316; color: #fff; }
.dash-action-btn.light-btn { background: #e2e8f0; color: #374151; }
@media(max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; }
  .dash-card { transform: none; }
  .dash-sidebar { display: none; }
}

/* ── PRECIOS ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: start; }
.pricing-card { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: border-color 0.2s; }
.pricing-card.featured { border-color: var(--green); background: linear-gradient(180deg, rgba(3,124,70,0.08) 0%, var(--s1) 100%); position: relative; }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.85rem; border-radius: 999px; }
.pricing-card h3 { font-size: 0.9rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.pricing-price { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.4rem; }
.pricing-price sup { font-size: 1.2rem; vertical-align: super; }
.pricing-period { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.75rem; }
.pricing-features li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--muted); }
.pricing-features li::before { content: '✓'; color: var(--green-bright); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.pricing-features li.no { color: var(--dim); }
.pricing-features li.no::before { content: '×'; color: var(--dim); }

/* ── FAQ (index) ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; background: none; border: none; color: var(--text); font-size: 0.95rem; font-weight: 500; text-align: left; gap: 1rem; }
.faq-chevron { width: 20px; height: 20px; border-radius: 50%; background: var(--s3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.75rem; transition: transform 0.3s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 1.5rem 1.2rem; font-size: 0.875rem; color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── CTA STRIP ── */
.cta-strip { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); padding: 4rem 3rem; text-align: center; }
.cta-strip h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1rem; }
.cta-strip p { font-size: 1rem; color: var(--muted); margin-bottom: 2rem; }

/* ── CASOS DESTACADOS ── */
#casos-destacados { position: relative; overflow: clip; }
.cd-bg-blob { position: absolute; right: -180px; top: 50%; transform: translateY(-50%); width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(3,124,70,0.45) 0%, rgba(3,124,70,0.18) 45%, transparent 70%); filter: blur(80px); pointer-events: none; z-index: 0; }
.cd-stack { display: block; position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.cd-card { display: grid; grid-template-columns: 1fr 500px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); background: #111; position: sticky; top: 88px; margin-bottom: 2rem; min-height: 380px; }
.cd-card:nth-child(1) { z-index: 1; }
.cd-card:nth-child(2) { z-index: 2; }
.cd-card:nth-child(3) { z-index: 3; }
.cd-card:nth-child(4) { z-index: 4; margin-bottom: 0; }
.cd-card-left { padding: 3rem 3rem 2.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.cd-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; padding: 0.3rem 0.85rem; width: fit-content; }
.cd-title { font-size: 1.55rem; font-weight: 700; line-height: 1.3; color: #fff; }
.cd-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.75; flex: 1; }
.cd-stats { display: flex; gap: 3rem; margin-top: auto; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.07); }
.cd-num { display: block; font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1.1; }
.cd-label { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }
.cd-card-right { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.cd-right--teal { background: linear-gradient(135deg, #0d3d3d 0%, #0d6e6e 100%); }
.cd-right--purple { background: linear-gradient(135deg, #1e0a3c 0%, #5b21b6 100%); }
.cd-right--amber { background: linear-gradient(135deg, #3d1a00 0%, #c2410c 100%); }
.cd-right--blue { background: linear-gradient(135deg, #0a1628 0%, #1d4ed8 100%); }
.cd-arrow { position: absolute; top: 1.25rem; right: 1.25rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 1rem; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background 0.2s; }
.cd-arrow:hover { background: rgba(255,255,255,0.15); }
.cd-logo-block { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }
.cd-logo-name { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.85); letter-spacing: .03em; }
@media(max-width:900px) {
  .cd-card { grid-template-columns: 1fr; }
  .cd-card-right { min-height: 200px; }
  .cd-bg-blob { right: -300px; }
}

/* ── PROCESO MARQUEE (index) ── */
.proceso-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%); margin-bottom: 3rem; position: relative; z-index: 1; }
.proceso-marquee-track { display: flex; width: max-content; animation: procesoMarquee 40s linear infinite; }
.proceso-marquee-track span { font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 800; color: rgba(255,255,255,0.15); white-space: nowrap; padding-right: 3rem; letter-spacing: -0.02em; line-height: 1.1; }
.proceso-marquee-track span.pm-accent { color: rgba(255,255,255,0.5); }
@keyframes procesoMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── CONTACTO ── */
#contacto { position: relative; overflow: hidden; background: linear-gradient(160deg, #012d1a 0%, #024d2e 40%, #037c46 80%, #025c38 100%); padding-top: 5rem; padding-bottom: 5rem; }
#contacto::after { content: ''; position: absolute; right: -150px; top: -150px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(50,205,135,0.2) 0%, transparent 65%); filter: blur(80px); pointer-events: none; z-index: 0; }
.contact-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%); margin-bottom: 3.5rem; position: relative; z-index: 1; }
.contact-marquee-track { display: flex; width: max-content; animation: contactMarquee 22s linear infinite; animation-duration: 38s; }
.contact-marquee-track span { font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 800; color: rgba(255,255,255,0.18); white-space: nowrap; padding-right: 3rem; letter-spacing: -0.02em; line-height: 1.1; }
.contact-marquee-track span.accent { color: rgba(255,255,255,0.55); }
@keyframes contactMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.contact-3d-wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; background: rgba(0,0,0,0.3); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 3rem; box-shadow: 0 40px 80px rgba(0,0,0,0.3); }
.contact-info-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-info-card { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.contact-info-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(50,205,135,0.15); border: 1px solid rgba(50,205,135,0.25); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-info-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.contact-info-val { font-size: 0.9rem; font-weight: 500; color: #fff; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; color: rgba(255,255,255,0.6); font-weight: 500; }
.form-group input, .form-group textarea { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm); padding: 0.7rem 1rem; color: #fff; font-family: inherit; font-size: 0.875rem; transition: border-color 0.2s; appearance: none; -webkit-appearance: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--green-bright); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm); padding: 0.7rem 1rem; color: #fff; font-family: inherit; font-size: 0.875rem; transition: border-color 0.2s; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; }
.form-group select:focus { outline: none; border-color: var(--green-bright); }
.form-group select option { background: #1a1a1a; color: #fff; }

/* ── RESPONSIVE INDEX ── */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .step-card { min-height: 400px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .testi-card { width: 280px; min-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #proyectos { padding-bottom: 2.5rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-row: auto; }
  .testi-card--wide { width: 320px; }
  .calc-wrap { grid-template-columns: 1fr; padding: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-strip { padding: 2.5rem 1.5rem; }

  /* Servicios slides — ocultar en móvil, mostrar cards apiladas */
  .srv-viewport { display: none !important; }

  .srv-mobile-cards {
    display: block;
    padding: 4rem 0 0;
  }
  .srv-mobile-header {
    text-align: center;
    padding: 0 1.25rem 2rem;
  }
  .srv-mobile-header h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0.5rem 0 0.4rem;
    letter-spacing: -0.02em;
  }
  .srv-mobile-header p { font-size: 0.9rem; color: var(--muted); }

  /* Cada item tiene altura para crear espacio de scroll */
  .srv-stack-item {
    min-height: 80vh;
    padding: 0 1.25rem;
  }
  .srv-stack-last { min-height: auto; padding-bottom: 3rem; }

  /* La card es sticky — estilo cd-card + colores contacto */
  .srv-mobile-card {
    position: sticky;
    top: 72px;
    border-radius: 22px;
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    overflow: hidden;
    /* Fondo: gradiente verde de la sección contacto */
    background: linear-gradient(160deg, #012d1a 0%, #024d2e 45%, #037c46 100%);
    /* Glass encima — igual que contact-grid */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  }
  /* Orbe top-right igual que #contacto::after */
  .srv-mobile-card::after {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50,205,135,0.2) 0%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
  }

  /* Z-index incremental — cada card tapa a la anterior */
  .srv-stack-item:nth-child(2) .srv-mobile-card { z-index: 1; }
  .srv-stack-item:nth-child(3) .srv-mobile-card { z-index: 2; }
  .srv-stack-item:nth-child(4) .srv-mobile-card { z-index: 3; }
  .srv-stack-item:nth-child(5) .srv-mobile-card { z-index: 4; }
  .srv-stack-item:nth-child(6) .srv-mobile-card { z-index: 5; }
  .srv-stack-item:nth-child(7) .srv-mobile-card { z-index: 6; }

  /* Tag — igual que cd-tag pero con toque verde */
  .srv-mobile-cards .srv-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 0.3rem 0.85rem;
    width: fit-content;
  }
  .srv-mobile-title {
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }
  .srv-mobile-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
  }
  .srv-mobile-cards .srv-link {
    color: var(--green-bright);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
    width: fit-content;
    margin-top: 0.25rem;
  }
  .srv-mobile-cards .srv-link:hover { gap: 0.7rem; }

  /* Proceso marquee — texto más pequeño en móvil */
  .proceso-marquee-track span { font-size: clamp(1.5rem, 6vw, 2.4rem); }
  .contact-marquee-track span { font-size: clamp(1.8rem, 6vw, 2.8rem); }
}

@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
}
