/* Base */
:root {
  /* Paleta tipo Google */
  --google-yellow: #FBBC05;
  --google-red: #EA4335;
  --google-blue: #4285F4;
  --google-green: #34A853;

  /* Tema claro por defecto */
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111827;
  --muted: #374151;
  --primary: var(--google-blue);
  --primary-contrast: #e7f0ff;
  --border: #e5e7eb;
  --accent: var(--google-red);
  /* Global ticker speed (slower for readability) */
  --ticker-speed: 120s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Title underline utility */
.title-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.title-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  /* Wider by default for better visibility, scales under the text */
  width: min(100%, 120px);
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: left center;
  will-change: transform, opacity;
  animation: underline-sweep 3.2s ease-in-out infinite;
}

@keyframes underline-sweep {
  0% { transform: scaleX(0.25) translateX(0); opacity: 0.9; }
  25% { transform: scaleX(1) translateX(0); opacity: 1; }
  50% { transform: scaleX(1) translateX(12px); opacity: 1; }
  75% { transform: scaleX(0.6) translateX(0); opacity: 0.95; }
  100% { transform: scaleX(0.25) translateX(0); opacity: 0.9; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .title-underline::after { animation: none; }
  html { scroll-behavior: auto; }
  .ticker-track { animation: none !important; }
  .reveal { transition: none; }
}

/* (Removed duplicate early reveal styles; consolidated below in Section reveal animations) */

/* Mobile tweaks to keep showcases tidy */
@media (max-width: 480px) {
  .showcase { gap: 28px; }
  /* Limit max sizes per device to avoid overflow on phones */
  .device-ipad,
  .device-imac,
  .device-iphone { max-width: 92vw; margin-left: auto; margin-right: auto; }
  .device-ipad .screen { height: 180px; max-height: 46vh; }
  .device-imac .screen { height: 180px; max-height: 46vh; }
  .device-iphone { width: 220px; max-width: 70vw; }
  .device-iphone .screen { max-height: 70vh; }
  /* Ensure image stays contained inside screens on small widths */
  .device-ipad .screen img,
  .device-imac .screen img,
  .device-iphone .screen img { object-fit: cover; }
  .project h4 { font-size: 15px; }
  /* Thicker and slightly longer underline on small screens */
  .title-underline { padding-bottom: 8px; }
  .title-underline::after { height: 5px; width: min(100%, 132px); }
}

/* Page-specific accent colors */
body.page-portfolio { --accent: #f59e0b; }
body.page-equipo { --accent: #2563eb; }
body.page-contacto { --accent: #16a34a; }
body.page-clientes { --accent: #ef4444; }
main { background: var(--bg); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: #f7fafc; }
.section.cta { background: #f3f4f6; }
.section.portfolio-section { background: #fffaf0; }
.section + .section { border-top: 1px solid var(--border); }
.section h2 { margin: 0 0 12px; font-size: 30px; letter-spacing: -0.2px; }
.section-lead { color: var(--muted); margin-bottom: 28px; max-width: 880px; }

/* Removed old marquee band styles (unused) */

/* Header */
.site-header { position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); color: var(--text); padding: 8px 10px; border-radius: 8px; }
.nav-menu { display: flex; gap: 12px; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-menu a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.nav-menu a:hover { background: #eef2ff; }
.nav-menu a.active { background: var(--primary); color: #ffffff; border: 1px solid transparent; }
.nav-menu a.active.green { background: var(--google-green); color: #ffffff; border: 1px solid transparent; }
/* Portfolio page: active tab uses yellow */
.page-portfolio .nav-menu a.active { background: var(--google-yellow); color: #111827; border-color: transparent; box-shadow: 0 6px 16px rgba(251,188,5,0.26); }

/* Hero */
.hero { padding: 64px 0; border-bottom: 1px solid var(--border); }
.hero-split .hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.hero-big { font-size: 54px; line-height: 1.05; margin: 0 0 8px; }
.line-hero { width: 64px; height: 4px; background: var(--google-red); border-radius: 2px; margin: 10px 0 12px; }
.hero-sub { color: var(--muted); margin: 0 0 16px; font-size: 20px; }
.hero-left { align-self: start; }
.hero-right { align-self: center; }
.hero-copy p { color: var(--muted); margin: 0 0 16px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.hero-actions .btn { padding: 12px 16px; border-radius: 12px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat h3 { margin: 0; font-size: 28px; }
.stat p { margin: 6px 0 0; color: var(--muted); }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(4, 1fr); }
.portfolio { grid-template-columns: repeat(3, 1fr); }
.team { grid-template-columns: repeat(3, 1fr); }
.clients { grid-template-columns: repeat(4, 1fr); }
.cards .card, .portfolio .card, .team .card { min-height: 100%; }

/* Equipo: cards rellenas azules, como referencia enviada */
/* Equipo: estética tipo "tarjeta" (gradiente + brillo + patrón tipo QR) */
#equipo .team .card.person {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1a3a 0%, #0b2a6e 55%, #0c3b86 100%);
  border: 1px solid rgba(255,255,255,0.14);
  color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(2,6,23,0.28);
}
#equipo .team .card.person:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(2,6,23,0.34);
}
#equipo .team .card.person .tags { color: rgba(255,255,255,0.84); }

#equipo .team .card.person > * { position: relative; z-index: 1; }

/* Equipo page standalone */
.page-equipo .team .card.person {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1a3a 0%, #0b2a6e 55%, #0c3b86 100%);
  border: 1px solid rgba(255,255,255,0.14);
  color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(2,6,23,0.28);
}
.page-equipo .team .card.person:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(2,6,23,0.34);
}
.page-equipo .team .card.person .tags { color: rgba(255,255,255,0.84); }
.page-equipo .team .card.person > * { position: relative; z-index: 1; }

/* Force readable typography inside dark team cards */
#equipo .team .card.person .person-name,
.page-equipo .team .card.person .person-name { color: #ffffff; }

#equipo .team .card.person .person-role,
.page-equipo .team .card.person .person-role { color: rgba(255,255,255,0.82); }

#equipo .team .card.person .person-bio,
.page-equipo .team .card.person .person-bio { color: rgba(255,255,255,0.92); }

#equipo .team .card.person .person-icon,
.page-equipo .team .card.person .person-icon {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
}

#equipo .team .card.person .tags,
.page-equipo .team .card.person .tags {
  flex: 1 1 auto;
  max-width: 100%;
  color: rgba(255,255,255,0.90);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 5px 9px;
  border-radius: 999px;
  line-height: 1.1;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Team member photo */
.person-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0;
  border: 2px solid rgba(255,255,255,0.86);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

/* Equipo: layout tipo tarjeta */
.person-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.person-meta { min-width: 0; }
.person-name {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.2px;
}
.person-role {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.86;
}
.person-bio {
  margin: 10px 0 0;
  line-height: 1.6;
}
.person-foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.person-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.person-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.person-icon svg { width: 16px; height: 16px; }

.person-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}
.person-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.person-cta--secondary {
  background: rgba(0,0,0,0.18);
  border-color: rgba(255,255,255,0.16);
}
.person-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.20);
}
.person-cta:active { transform: translateY(0); }
.person-cta:focus-visible {
  outline: 3px solid rgba(255,255,255,0.35);
  outline-offset: 2px;
}

.person-cta { flex: 0 0 auto; }

@media (max-width: 420px) {
  .person-foot { align-items: stretch; }
  .person-cta { width: 100%; justify-content: center; }
}

/* Clients page: red-themed badges */
#clientes.section.alt { background: var(--bg); }
#clientes .clients .card.logo {
  border: 2px solid var(--google-red);
  background: transparent;
  color: #111827;
  border-radius: 16px;
  box-shadow: none;
  padding: 16px;
}
#clientes .clients .card.logo:hover {
  transform: none;
  box-shadow: none;
}

/* Ensure red badges also apply on clientes.html if IDs differ */
.clients .card.logo {
  border: 2px solid var(--google-red);
  background: transparent;
  border-radius: 16px;
  box-shadow: none;
}
.clients .card.logo:hover { box-shadow: none; }

/* Do not force full-height cards inside pricing grid */
.pricing .card, .pricing .pricing-card { min-height: auto; }

.card { 
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

/* Google palette card variants */
.card--blue { background: #3369E8; color: #fff; border-color: transparent; box-shadow: 0 10px 24px rgba(51,105,232,0.28); }
.card--red { background: #D50F25; color: #fff; border-color: transparent; box-shadow: 0 10px 24px rgba(213,15,37,0.28); }
.card--yellow { background: #EEB211; color: #222; border-color: transparent; box-shadow: 0 10px 24px rgba(238,178,17,0.30); }
.card--green { background: #009925; color: #fff; border-color: transparent; box-shadow: 0 10px 24px rgba(0,153,37,0.28); }
.card--blue h3, .card--red h3, .card--green h3 { color: #fff; }
.card--yellow h3 { color: #111; }
.card--blue a.btn, .card--red a.btn, .card--green a.btn { background:#000; color:#fff; border-radius: 999px; }
.card--yellow a.btn { background:#111; color:#fff; border-radius: 999px; }
.card--blue .tags, .card--red .tags, .card--green .tags { color: rgba(255,255,255,0.85); }
.card--yellow .tags { color: rgba(0,0,0,0.7); }

/* Services: apply colors to first four cards */
#servicios .cards article.card:nth-child(1) { background:#3369E8; color:#fff; border-color:#3369E8; }
#servicios .cards article.card:nth-child(1) h3 { color:#fff; }
#servicios .cards article.card:nth-child(2) { background:#009925; color:#fff; border-color:#009925; }
#servicios .cards article.card:nth-child(2) h3 { color:#fff; }
#servicios .cards article.card:nth-child(3) { background:#EEB211; color:#111; border-color:#EEB211; }
#servicios .cards article.card:nth-child(3) h3 { color:#111; }
#servicios .cards article.card:nth-child(4) { background:#D50F25; color:#fff; border-color:#D50F25; }
#servicios .cards article.card:nth-child(4) h3 { color:#fff; }

/* Ensure list items contrast inside colored cards */
#servicios .cards article.card li { color: inherit; }
#servicios .cards article.card p { color: inherit; }

/* Typography polish inside colored service cards */
#servicios .cards article.card h3 {
  font-family: "Poppins", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}
#servicios .cards article.card p {
  line-height: 1.6;
  font-weight: 500;
}
#servicios .cards article.card ul {
  margin-top: 10px;
}
#servicios .cards article.card li {
  line-height: 1.6;
  font-weight: 600;
}
#servicios .cards article.card:nth-child(1) h3,
#servicios .cards article.card:nth-child(2) h3,
#servicios .cards article.card:nth-child(4) h3 { text-shadow: 0 1px 0 rgba(0,0,0,0.15); }
#servicios .cards article.card:nth-child(1) p,
#servicios .cards article.card:nth-child(2) p,
#servicios .cards article.card:nth-child(4) p { color: rgba(255,255,255,0.92); }
#servicios .cards article.card:nth-child(1) li,
#servicios .cards article.card:nth-child(2) li,
#servicios .cards article.card:nth-child(4) li { color: rgba(255,255,255,0.95); }
#servicios .cards article.card:nth-child(3) p { color: rgba(0,0,0,0.85); }
#servicios .cards article.card:nth-child(3) li { color: rgba(0,0,0,0.9); }

/* Pricing cards on planes */
/* Pricing cards on planes */
.pricing-card { border-radius: 18px; }
.pricing-card .price { font-size: 38px; font-weight: 800; margin: 8px 0 14px; }
.pricing-card { max-width: 420px; margin: 0 auto; }
.pricing-grid.original { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.pricing-card.original { display: flex; flex-direction: column; padding: 24px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); border: 1px solid var(--border); }
.pricing-card.original.basic { background: var(--google-green); color:#ffffff; border-color: transparent; box-shadow: 0 8px 24px rgba(52,168,83,0.36); }
.pricing-card.original.basic .title { color:#ffffff; }
.pricing-card.original.basic .subtitle { color: rgba(255,255,255,0.92); }
.pricing-card.original.haztap { background:#3369E8; color:#ffffff; border-color:#3369E8; box-shadow: 0 8px 28px rgba(51,105,232,0.35); }
.pricing-card.original.plus { background:#D50F25; color:#ffffff; border-color:#D50F25; box-shadow: 0 8px 28px rgba(213,15,37,0.35); }
.pricing-card.original .title { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.pricing-card.original .subtitle { margin: 0 0 10px; color: rgba(17,24,39,0.8); }
.pricing-card.original.haztap .subtitle,
.pricing-card.original.plus .subtitle { color: rgba(255,255,255,0.92); }
.pricing-card.original .cta { display:inline-block; background:#111; color:#fff; text-decoration:none; padding:12px 16px; border-radius:12px; margin: 8px 0 10px; }
.pricing-card.original .list { margin: 10px 0 0; padding-left: 20px; }
.pricing-card.original .list li { margin: 6px 0; color: inherit; }
.pricing-card.original .more { margin-top: auto; font-weight: 600; color: inherit; text-decoration: none; }
.pricing-card.original .badges img { height: 28px; margin-right: 8px; }

/* Layout fixes for pricing cards */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.pricing .pricing-card { display: flex; flex-direction: column; padding: 24px; height: auto; max-width: 100%; box-sizing: border-box; }
.pricing .pricing-card .features { margin-top: 12px; padding-left: 18px; }
.pricing .pricing-card .more { margin-top: auto; display: inline-block; }
.pricing .pricing-card.card--blue,
.pricing .pricing-card.card--red,
.pricing .pricing-card.card--yellow { overflow: hidden; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.10); border-color: #d1d5db; }

/* Portfolio cards: yellow outlined with soft fill */
.portfolio .card { border: 2px solid var(--google-yellow); background: rgba(251,188,5,0.10); border-radius: 16px; box-shadow: 0 4px 12px rgba(251,188,5,0.10); }
.portfolio .card:hover { box-shadow: 0 8px 20px rgba(251,188,5,0.16); transform: translateY(-2px); }
.portfolio .card h3 { color: #111827; }
.portfolio .card .tags { color: #374151; }
.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.2px; font-weight: 700; }
.card p { margin: 0 0 10px; line-height: 1.7; color: #374151; }

/* Ensure text stays readable on colored cards (Servicios) */
.card--blue p, .card--green p, .card--red p { color: rgba(255,255,255,0.92); }
.card--blue li, .card--green li, .card--red li { color: rgba(255,255,255,0.92); }
.card--blue a:not(.btn), .card--green a:not(.btn), .card--red a:not(.btn) { color: rgba(255,255,255,0.96); }

.card--yellow p { color: rgba(17,24,39,0.92); }
.card--yellow li { color: rgba(17,24,39,0.92); }
.card--yellow a:not(.btn) { color: rgba(17,24,39,0.95); }
.card ul { margin: 6px 0 0; padding-left: 18px; }
.card li { margin: 6px 0; }
.tags { color: var(--muted); font-size: 13px; }

/* Portfolio: simple photo grid (replaces device frames) */
.portfolio-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.photo-card { text-align: center; }
.photo-card h4 { margin: 12px 0 6px; font-size: 16px; }
.photo-card a { color: #374151; text-decoration: none; font-weight: 600; }
.photo-card a:hover { color: var(--primary); text-decoration: underline; }
.photo { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #f3f4f6; border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1024px) { .portfolio-photos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio-photos { grid-template-columns: 1fr; gap: 24px; } }

/* Portfolio showcase with iMac-like frames */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: end; }
.project { text-align: center; }
.project h4 { margin: 12px 0 6px; font-size: 16px; letter-spacing: 0; }
.project a { color: #374151; text-decoration: none; font-weight: 600; }
.project a:hover { color: var(--primary); text-decoration: underline; }

/* Triple-device portfolio: one project shows Desktop + iPad + Mobile */
.showcase--triple { grid-template-columns: 1fr; gap: 44px; align-items: stretch; }
.project--triple { text-align: left; }
.project--triple .project-hit { display: block; text-decoration: none; }
.project--triple .project-devices {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.62fr;
  gap: 22px;
  align-items: end;
}
.project--triple .project-meta { margin-top: 14px; text-align: center; }
.project--triple .project-summary { margin: 6px auto 8px; max-width: 62ch; color: #374151; line-height: 1.7; }

/* Scale device frames down inside the triple layout */
.project--triple .device-imac,
.project--triple .device-ipad,
.project--triple .device-iphone { margin: 0; max-width: none; }
.project--triple .device-imac { margin-bottom: 44px; }
.project--triple .device-imac .screen { height: 240px; }
.project--triple .device-ipad { margin-bottom: 28px; }
.project--triple .device-ipad .screen { height: 210px; }
.project--triple .device-iphone { width: 230px; justify-self: center; }
.project--triple .device-iphone .screen { height: 420px; }

@media (max-width: 1024px) {
  .project--triple .project-devices { grid-template-columns: 1fr 1fr; }
  .project--triple .device-iphone { grid-column: 1 / -1; width: 240px; }
  .project--triple .device-iphone .screen { height: 400px; }
}

@media (max-width: 640px) {
  .project--triple .project-devices { grid-template-columns: 1fr; gap: 18px; }
  .project--triple .device-imac { margin-bottom: 36px; }
  .project--triple .device-imac .screen { height: 190px; }
  .project--triple .device-ipad { margin-bottom: 24px; }
  .project--triple .device-ipad .screen { height: 190px; }
  .project--triple .device-iphone { width: 220px; }
  .project--triple .device-iphone .screen { height: 380px; }
}

/* Keep device frames at sensible widths so screens look like real devices */
.device-imac { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
.device-ipad  { width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }
.device-iphone { width: 260px; max-width: 90vw; margin-left: auto; margin-right: auto; }

.device-imac { position: relative; background: #0a1b2f; border-radius: 20px; padding: 12px; border: 1px solid #0e223a; box-shadow: 0 14px 34px rgba(2,6,23,0.35); margin-bottom: 52px; transition: transform .2s ease, box-shadow .2s ease; }
.device-imac:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(2,6,23,0.4); }
.device-imac .screen { position: relative; height: 220px; aspect-ratio: 16 / 10; background: #0b1220; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.device-imac .screen img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s ease; }
.device-imac .screen.is-loaded img { opacity: 1; }
/* skeleton shimmer while loading */
.device-imac .screen::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.16) 40%, rgba(255,255,255,0.04) 80%); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
.device-imac .screen.is-loaded::after, .device-imac .screen.is-error::after { display: none; }
.device-imac .screen.no-loader::after { display: none; }
.device-imac .screen .screen-fallback { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#94a3b8; font-weight:600; background: linear-gradient(180deg, rgba(148,163,184,0.08), rgba(148,163,184,0.06)); }
@keyframes shimmer { to { transform: translateX(100%); } }
/* camera dot */
.device-imac .screen::before { content:""; position:absolute; top:8px; left:50%; transform:translateX(-50%); width:6px; height:6px; background:#0ea5e9; border-radius:50%; box-shadow: 0 0 0 2px #0b1220; z-index:2; }
/* stand */
.device-imac::after { content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:-24px; width:120px; height:18px; background: linear-gradient(#e5e7eb, #cbd5e1); border-radius: 0 0 10px 10px; box-shadow: 0 6px 14px rgba(0,0,0,0.15); }
.device-imac::before { content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:-42px; width:220px; height:12px; background:#e5e7eb; border-radius: 12px; box-shadow: 0 6px 12px rgba(0,0,0,0.14); }

@media (max-width: 1024px) {
  .showcase { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .showcase { grid-template-columns: 1fr; }
  .device-imac .screen { height: 180px; }
}

/* Make each device crop a different zone on small screens for clearer distinction */
@media (max-width: 640px) {
  .device-imac .screen img { object-position: center top; }
  .device-ipad .screen img { object-position: center center; }
  .device-iphone .screen img { object-position: center top; }
}

/* iPad (landscape) frame */
.device-ipad { position: relative; background: #0a1322; border-radius: 28px; padding: 14px; border: 1px solid #0e223a; box-shadow: 0 14px 34px rgba(2,6,23,0.35); margin-bottom: 36px; }
.device-ipad .screen { position: relative; height: 220px; aspect-ratio: 4 / 3; background: #0b1220; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.device-ipad .screen img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s ease; }
.device-ipad .screen.is-loaded img { opacity: 1; }
.device-ipad .screen::before { content:""; position:absolute; top:8px; left:50%; transform:translateX(-50%); width:7px; height:7px; background:#38bdf8; border-radius:50%; box-shadow: 0 0 0 2px #0a1322; z-index:2; }
.device-ipad .screen.no-loader::after { display: none; }

/* iPhone (portrait) frame */
.device-iphone { position: relative; width: 260px; margin: 0 auto 36px; background: #0a1322; border-radius: 36px; padding: 12px; border: 1px solid #0e223a; box-shadow: 0 14px 34px rgba(2,6,23,0.35); }
.device-iphone .screen { position: relative; height: 500px; aspect-ratio: 9 / 19.5; background: #0b1220; border-radius: 28px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.device-iphone .screen img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s ease; }
.device-iphone .screen.is-loaded img { opacity: 1; }
/* notch */
.device-iphone .screen::before { content:""; position:absolute; top:0; left:50%; transform:translate(-50%, 0); width:120px; height:18px; background:#0a1322; border-bottom-left-radius:14px; border-bottom-right-radius:14px; }
/* home indicator */
.device-iphone .screen::after { content:""; position:absolute; bottom:10px; left:50%; transform:translateX(-50%); width:110px; height:4px; background:#e5e7eb; border-radius: 999px; opacity: .75; }
.device-iphone .screen.no-loader::after { display: none; }

/* Simple YouTube logo placeholder */
.yt-placeholder { width: 140px; height: 98px; background: #ff0000; border-radius: 16px; position: relative; box-shadow: 0 8px 18px rgba(0,0,0,0.25); }
.yt-placeholder::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-45%, -50%); border-left: 28px solid #fff; border-top: 18px solid transparent; border-bottom: 18px solid transparent; }

@media (max-width: 640px) {
  .device-iphone .screen { height: 420px; }
}
.logo { display: grid; place-items: center; font-size: 18px; }
.person h3 { margin: 0 0 8px; }
.person p { color: var(--muted); margin: 0 0 8px; }

/* Timeline */
.timeline { border-left: none; margin-left: 0; padding-left: 0; display: grid; gap: 18px; }
.timeline-item { position: relative; padding-left: 0; }
.timeline-dot { display: none; }
.timeline-content { position: relative; border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 22px 24px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); overflow: hidden; transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease; }
.timeline-content { position: relative; border: 1px solid var(--border); background: var(--surface); border-radius: 18px; padding: 22px 24px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); overflow: hidden; transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease; }
.timeline-item .timeline-content:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.timeline-content .step-iconbox { width: 52px; height: 52px; border-radius: 14px; border: 2px solid #dbeafe; background: transparent; color: var(--google-blue); display: grid; place-items: center; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(66,133,244,0.08); }
.timeline-content .step-iconbox svg { width: 26px; height: 26px; }
.timeline-content h3 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.timeline-content p { margin: 0; color: #374151; line-height: 1.75; }
.step-num { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 30px; padding: 0 12px; border-radius: 999px; background: #eaf2ff; color: #1e3a8a; border: 1px solid #cfe0ff; font-weight: 700; }
/* Large translucent watermark number in card */
.step-watermark { position: absolute; right: 18px; top: 12px; font-size: 82px; font-weight: 800; opacity: 0.20; pointer-events: none; line-height: 1; letter-spacing: -0.5px; z-index: 0; color: #4b5563; -webkit-text-stroke: 0; filter: none; }
/* Timeline colored outline variants: yellow, red, green */
.timeline-item:nth-child(1) .timeline-content { border: 2px solid rgba(251,188,5,1); background: rgba(251,188,5,0.10); box-shadow: 0 6px 18px rgba(251,188,5,0.12); }
.timeline-item:nth-child(2) .timeline-content { border: 2px solid rgba(234,67,53,1); background: rgba(234,67,53,0.12); box-shadow: 0 6px 18px rgba(234,67,53,0.16); }
.timeline-item:nth-child(2) .timeline-content:hover { box-shadow: 0 10px 24px rgba(234,67,53,0.22); }
.timeline-item:nth-child(3) .timeline-content { border: 2px solid rgba(52,168,83,1); background: rgba(52,168,83,0.10); box-shadow: 0 6px 18px rgba(52,168,83,0.12); }
.timeline-item:nth-child(1) .step-watermark { color: var(--google-yellow); opacity: 0.28; }
.timeline-item:nth-child(2) .step-watermark { color: var(--google-red); opacity: 0.32; }
.timeline-item:nth-child(3) .step-watermark { color: var(--google-green); opacity: 0.28; }
.timeline-item:nth-child(1) .step-iconbox { border-color: rgba(251,188,5,0.65); background: rgba(251,188,5,0.10); color: var(--google-yellow); box-shadow: 0 2px 8px rgba(251,188,5,0.14); }
.timeline-item:nth-child(2) .step-iconbox { border-color: rgba(234,67,53,0.75); background: rgba(234,67,53,0.12); color: var(--google-red); box-shadow: 0 3px 10px rgba(234,67,53,0.18); }
.timeline-item:nth-child(3) .step-iconbox { border-color: rgba(52,168,83,0.65); background: rgba(52,168,83,0.10); color: var(--google-green); box-shadow: 0 2px 8px rgba(52,168,83,0.14); }
/* Optional icon circle to the left of title */
.step-icon { display: none; }

/* Form */
.form { padding: 20px; }
.form-grid { grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
input, textarea { width: 100%; background: #ffffff; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 10px 12px; }
input:focus, textarea:focus { outline: 2px solid var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: #ffffff; color: var(--text); text-decoration: none; padding: 12px 18px; border-radius: 999px; cursor: pointer; transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.btn-primary { background: var(--primary); color: #ffffff; border-color: transparent; box-shadow: 0 4px 10px rgba(66,133,244,0.25); }
.btn-secondary { background: #ffffff; color: var(--primary); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn:hover { filter: brightness(1.03); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--primary-contrast); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-accent { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 4px 10px rgba(234,67,53,0.25); }

/* Google color button variants */
.btn-blue { background: var(--google-blue); color: #ffffff; border-color: transparent; box-shadow: 0 4px 10px rgba(66,133,244,0.25); }
.btn-green { background: var(--google-green); color: #ffffff; border-color: transparent; box-shadow: 0 4px 10px rgba(52,168,83,0.25); }
.btn-yellow { background: var(--google-yellow); color: #111827; border-color: transparent; box-shadow: 0 4px 10px rgba(251,188,5,0.28), 0 0 0 0 rgba(251,188,5,0.0); }
.btn-red { background: var(--google-red); color: #ffffff; border-color: transparent; box-shadow: 0 4px 10px rgba(234,67,53,0.25); }
.btn-blue:hover { box-shadow: 0 6px 16px rgba(66,133,244,0.35); }
.btn-green:hover { box-shadow: 0 6px 16px rgba(52,168,83,0.35); }
.btn-yellow:hover { box-shadow: 0 10px 24px rgba(251,188,5,0.42), 0 0 0 6px rgba(251,188,5,0.18); }
.btn-yellow:focus-visible { box-shadow: 0 8px 20px rgba(251,188,5,0.38), 0 0 0 8px rgba(251,188,5,0.22); }
.btn-red:hover { box-shadow: 0 6px 16px rgba(234,67,53,0.35); }
.btn-secondary:hover { border-color: var(--google-blue); box-shadow: 0 4px 12px rgba(66,133,244,0.18); background: #f5f8ff; }
.line-hero { width: 64px; height: 4px; background: var(--google-red); border-radius: 2px; margin: 10px 0 12px; animation: linePulse 2.6s ease-in-out infinite; transform-origin: left; }
@keyframes linePulse {
  0% { transform: scaleX(1); }
  50% { transform: scaleX(1.25); }
  100% { transform: scaleX(1); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 1rem; align-items: center; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 920px) {
  .hero-split .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .portfolio { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-block; }
  .nav-menu { display: none; position: absolute; right: 20px; top: 64px; flex-direction: column; background: var(--surface); border: 1px solid var(--border); padding: 12px; border-radius: 12px; }
  .nav-menu.open { display: flex; }

  .hero-stats { grid-template-columns: 1fr; }
  .cards, .portfolio, .team, .clients { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Single-theme: dark mode removed */

/* Colored card variants (Google palette) */
.card-blue {
  background: var(--google-blue);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(66,133,244,0.32);
}
.card-blue h3, .card-blue p, .card-blue li, .card-blue .tags { color: #ffffff; }

/* Blue outline variant (transparent fill) */
.card-blue-outline {
  background: transparent;
  border: 2px solid var(--google-blue);
  color: #111827;
  box-shadow: 0 2px 12px rgba(66,133,244,0.18);
}
.card-blue-outline h3 { color: #111827; }
.card-blue-outline p, .card-blue-outline li, .card-blue-outline .tags { color: #374151; }

/* Equipo page: active tab uses blue (keep default) */
.page-equipo .nav-menu a.active { background: var(--google-blue); color: #ffffff; border-color: transparent; box-shadow: 0 6px 16px rgba(66,133,244,0.26); }

.card-green {
  background: var(--google-green);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(52,168,83,0.32);
}
.card-green h3, .card-green p, .card-green li, .card-green .tags { color: #ffffff; }

.card-red {
  background: var(--google-red);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(234,67,53,0.32);
}
.card-red h3, .card-red p, .card-red li, .card-red .tags { color: #ffffff; }

/* Red outline variant (transparent fill) */
.card-red-outline {
  background: transparent;
  border: 2px solid var(--google-red);
  color: #111827;
  box-shadow: 0 2px 12px rgba(234,67,53,0.18);
}
.card-red-outline h3 { color: #111827; }
.card-red-outline p, .card-red-outline li, .card-red-outline .tags { color: #374151; }

/* Clientes page: active tab uses red */
.page-clientes .nav-menu a.active { background: var(--google-red); color: #ffffff; border-color: transparent; box-shadow: 0 6px 16px rgba(234,67,53,0.26); }

.card-yellow {
  background: var(--google-yellow);
  border-color: transparent;
  color: #111827;
  box-shadow: 0 8px 24px rgba(251,188,5,0.36);
}
.card-yellow h3, .card-yellow p, .card-yellow li, .card-yellow .tags { color: #111827; }

/* Portfolio: yellow outline variant (transparent fill) */
.card-yellow-outline {
  background: transparent;
  border: 2px solid var(--google-yellow);
  color: #111827;
  box-shadow: 0 2px 12px rgba(251,188,5,0.18);
}
.card-yellow-outline h3, .card-yellow-outline p, .card-yellow-outline li, .card-yellow-outline .tags { color: #111827; }

/* Ensure list bullets contrast on colored backgrounds */
.card-blue ul, .card-green ul, .card-red ul, .card-yellow ul { padding-left: 20px; }
.card-blue li::marker, .card-green li::marker, .card-red li::marker { color: rgba(255,255,255,0.9); }
.card-yellow li::marker { color: #111827; }

/* Contact page layout (Bigwise-inspired) */
.contact-hero { padding: 56px 0 24px; border-bottom: 1px solid var(--border); }
.contact-hero h1 { font-size: 40px; margin: 0 0 10px; }
.contact-hero .section-lead { max-width: 720px; }

.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.contact-card { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.contact-info { display: grid; gap: 16px; }
.contact-info .info-block { border: 1px dashed var(--border); border-radius: 12px; padding: 16px; background: #fff; }
.contact-info h3 { margin: 0 0 8px; font-size: 16px; }
.contact-info p { margin: 0; color: var(--muted); }
.contact-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.contact-meta .tag { background: #eef2ff; color: var(--text); border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; font-size: 13px; }

/* Contact page: green accents like screenshot */
.page-contacto .contact-card {
  background: var(--google-green);
  border-color: transparent;
  color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(52,168,83,0.32);
}
.page-contacto .contact-card h3,
.page-contacto .contact-card p,
.page-contacto .contact-card li,
.page-contacto .contact-card .tags { color: #ffffff; }
.page-contacto .contact-card ul { padding-left: 20px; }
.page-contacto .contact-card li::marker { color: rgba(255,255,255,0.95); }
/* Keep inputs readable on green card */
.page-contacto .contact-card input,
.page-contacto .contact-card textarea {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
}
/* Labels and hints readable on green */
.page-contacto .contact-card label { color: #ffffff; font-weight: 700; }
.page-contacto .contact-card .hint { color: rgba(255,255,255,0.92); }
/* Form spacing on green card */
.page-contacto .contact-form { padding: 24px; }
.page-contacto .form-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
.page-contacto .form-grid .full { grid-column: 1 / -1; }
.page-contacto .contact-actions { margin-top: 16px; }
/* Info blocks: high contrast white cards over green */
.page-contacto .contact-info .info-block {
  background: #ffffff;
  border: 1px solid #d1fae5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.page-contacto .contact-info h3 { color: #111827; }
.page-contacto .contact-info p { color: #374151; }
.page-contacto .contact-meta .tag { background: #eaf8f0; color: var(--google-green); border-color: rgba(52,168,83,0.35); }
/* Green button contrast on green background */
.page-contacto .btn-green { box-shadow: 0 6px 16px rgba(52,168,83,0.35); }
.page-contacto .contact-info .info-block {
  border-color: rgba(52,168,83,0.55);
  background: #ffffff;
}
.page-contacto .contact-meta .tag {
  background: #eaf8f0;
  color: var(--google-green);
  border-color: rgba(52,168,83,0.35);
}

/* Contact form tweaks */
.form.contact-form { padding: 0; box-shadow: none; border: none; }
.contact-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.form .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Contact page: mobile improvements */
@media (max-width: 640px) {
  .contact-hero { padding: 40px 0 18px; }
  .contact-hero h1 { font-size: 32px; line-height: 1.1; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-card { padding: 16px; border-radius: 16px; }
  .page-contacto .contact-form { padding: 16px; }
  .page-contacto .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .page-contacto .form-grid .full { grid-column: auto; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { width: 100%; }
  .contact-card label,
  .contact-card input,
  .contact-card textarea { min-width: 0; }
}

/* Section reveal animations */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 400ms ease, transform 400ms ease; }
.reveal.in { opacity: 1; transform: none; }
.fade-up { transform: translateY(24px); }
.fade-left { transform: translateX(24px); }
.fade-right { transform: translateX(-24px); }
.fade-up.in, .fade-left.in, .fade-right.in { transform: none; }

/* Scrolling red ticker */
.ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--google-red);
  border-top: 4px solid #b91c1c;
  border-bottom: 4px solid #b91c1c;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-left var(--ticker-speed) linear infinite;
  padding: 14px 0;
}
.ticker-item {
  font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ffffff;
  -webkit-text-stroke: 1px #ffffff; /* subtle edge while filled */
  filter: none;
  text-shadow: none;
}
.ticker-sep { color: #fff; opacity: 0.95; font-size: clamp(1rem, 2.5vw, 1.4rem); }
@keyframes ticker-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Blue variant + rightward movement */
.ticker--blue { background: var(--google-blue); border-top-color: rgba(255,255,255,0.25); border-bottom-color: rgba(255,255,255,0.25); }
.ticker--blue .ticker-item { color: #ffffff; -webkit-text-stroke: 1px #ffffff; }
.ticker--blue .ticker-sep { color: #ffffff; opacity: 0.95; }

.ticker--rtl .ticker-track { animation: ticker-right var(--ticker-speed) linear infinite; }
@keyframes ticker-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* Yellow variant for "Cómo trabajamos" */
.ticker--yellow { background: var(--google-yellow); }
.ticker--yellow .ticker-item { color: #111827; -webkit-text-stroke: 1px #111827; }
.ticker--yellow .ticker-sep { color: #111827; opacity: 0.95; }

/* Green variant for footer area */
.ticker--green { background: var(--google-green); border-top: 4px solid #0f6b2a; border-bottom: 4px solid #0f6b2a; }
.ticker--green .ticker-item { color: #ffffff; -webkit-text-stroke: 1px #ffffff; }
.ticker--green .ticker-sep { color: #ffffff; opacity: 0.95; }
