/* IBI Technology — estilos compartidos.
   Colores y letras del manual de marca "monte y tajibo" (artifact IBI Technology, v2). */
:root {
  --noche: #0F2A22;        /* noche: encabezado, hero, pie */
  --ink: #14201B;          /* tinta */
  --muted: #55615A;        /* tinta-suave */
  --primary: #1C7451;      /* monte: botones, enlaces */
  --primary-dark: #155A3E; /* monte al pasar el mouse */
  --soft: #E2F2E8;         /* monte-suave */
  --soft-ink: #1C7451;     /* texto sobre monte-suave */
  --aqua: #5CC69A;         /* monte-vivo: acentos sobre noche */
  --tajibo: #F2B705;       /* tajibo: un acento por pantalla */
  --sobre-tajibo: #0F2A22;
  --tajibo-suave: #FDF1C7;
  --tajibo-texto: #7A5600;
  --ground: #F6F7F2;       /* fondo */
  --sunken: #EEF1E9;       /* superficie-hundida */
  --card: #FFFFFF;         /* superficie */
  --line: #E2E6DD;         /* linea */
  --line-strong: #8A968F;  /* linea-fuerte */
  --on-dark: #C3D1C9;      /* texto secundario sobre noche */
  --title: "Sora", "Segoe UI", system-ui, sans-serif;
  --text: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--title); line-height: 1.1; letter-spacing: -0.02em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Barra superior */
.topbar { background: var(--noche); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--title); font-weight: 700; font-size: 20px; }
.brand:hover { color: #fff; }
.brand-mark { width: 40px; height: 40px; display: block; flex-shrink: 0; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--on-dark); text-decoration: none; font-size: 16px; }
.nav a:hover { color: #fff; }
@media (max-width: 640px) { .nav { display: none; } }

/* Portada */
.hero { background: var(--noche); color: #fff; padding: 56px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.phone { width: 280px; border-radius: 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
/* Teléfono del inicio: pasa por capturas de las apps (6 × 4 s) */
.phone-stack { position: relative; aspect-ratio: 1 / 2; overflow: hidden; background: #fff; }
.phone-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; animation: pasar 24s infinite; }
.phone-stack img:first-child { opacity: 1; }
.phone-stack img:nth-child(2) { animation-delay: 4s; }
.phone-stack img:nth-child(3) { animation-delay: 8s; }
.phone-stack img:nth-child(4) { animation-delay: 12s; }
.phone-stack img:nth-child(5) { animation-delay: 16s; }
.phone-stack img:nth-child(6) { animation-delay: 20s; }
@keyframes pasar {
  0% { opacity: 0; transform: translateX(28px); }
  4% { opacity: 1; transform: none; }
  16.7% { opacity: 1; transform: none; }
  20.7% { opacity: 0; transform: translateX(-28px); }
  100% { opacity: 0; transform: translateX(-28px); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-stack img { animation: none; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .phone { display: none; }
}
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aqua); margin: 0 0 16px; }
.hero h1 { margin: 0; font-size: clamp(38px, 7vw, 64px); max-width: 15ch; }
.hero p { margin: 20px 0 0; font-size: clamp(18px, 2.4vw, 21px); color: var(--on-dark); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 17px; }
.btn-light { background: var(--tajibo); color: var(--sobre-tajibo); }
.btn-light:hover { background: #F5C02A; color: var(--sobre-tajibo); }
.btn-ghost { border: 1.5px solid rgba(246, 247, 242, 0.45); color: #fff; }
.btn-ghost:hover { border-color: var(--aqua); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); }

/* Secciones */
section { padding: 64px 0; }
section + section { padding-top: 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 4vw, 36px); }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }

/* App destacada */
.feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.feature-art { background: #10202F; display: grid; place-items: center; }
.feature-art img { width: 100%; height: auto; }
.feature-body { padding: 32px; }
.app-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.app-title img { width: 56px; height: 56px; border-radius: 14px; }
.app-title h3 { margin: 0; font-size: 28px; }
.app-title span { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; padding: 0; list-style: none; }
.chips li { background: var(--soft); color: var(--soft-ink); border-radius: 999px; padding: 4px 12px; font-size: 15px; }
.app-links { margin: 16px 0 0; font-size: 15px; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature-body { padding: 24px; }
}

.soon { margin-top: 16px; border: 1.5px dashed var(--line-strong); border-radius: 20px; padding: 20px 24px; color: var(--muted); }
.soon strong { color: var(--ink); }

/* Próximamente: tarjetas deshabilitadas */
.soon-title { margin: 40px 0 16px; font-size: 22px; color: var(--muted); }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.soon-card { background: var(--sunken); border: 1.5px dashed var(--line-strong); border-radius: 20px; padding: 24px; color: var(--muted); cursor: not-allowed; user-select: none; }
.soon-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.soon-head h4 { margin: 0; font-family: var(--title); font-size: 22px; color: #34413A; }
.soon-head span { font-size: 15px; }
.soon-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--line); color: var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.soon-icon svg { width: 28px; height: 28px; }
.soon-badge { margin-left: auto; align-self: flex-start; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 10px; font-size: 13px !important; font-weight: 700; white-space: nowrap; }
.soon-card p { margin: 0; font-size: 16px; }
.soon-card .chips { margin: 14px 0 0; }
.soon-card .chips li { background: var(--line); color: var(--muted); }
.soon-note { margin: 16px 0 0; color: var(--muted); }

/* Tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--primary); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }

/* Fotos del trabajo de campo (página de Mi Estanque) */
.hero-foto { background: linear-gradient(rgba(15, 34, 51, 0.82), rgba(15, 34, 51, 0.82)), url("mi-estanque/fotos/estanques-aereo.jpg") center 40% / cover; }
.card-foto { padding-top: 0; overflow: hidden; }
.card-foto img { display: block; width: calc(100% + 48px); max-width: none; margin: 0 -24px 16px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
/* Foto grande a la izquierda y 4 chicas en 2×2; todas cortadas a la misma grilla */
.campo { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
.campo figure { position: relative; margin: 0; border-radius: 20px; overflow: hidden; }
.campo-grande { grid-row: 1 / 3; }
.campo img { width: 100%; height: 100%; object-fit: cover; }
.campo figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); background: rgba(15, 34, 51, 0.82); color: #fff; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
@media (max-width: 760px) {
  .campo { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 160px 160px; gap: 12px; }
  .campo-grande { grid-column: 1 / -1; grid-row: auto; }
}

/* Pasos, capturas y planes (página de la app) */
.step { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--primary); font-family: var(--title); font-weight: 800; font-size: 20px; }
.card-dark { background: var(--primary); border-color: var(--primary); }
.card-dark h3 { color: #fff; }
.card-dark p { color: var(--soft); }
.card-dark .step { background: var(--aqua); color: var(--ink); }
.note { margin: 20px 0 0; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shots figure { margin: 0; text-align: center; }
.shots img { width: 100%; border-radius: 24px; border: 1px solid var(--line); }
.shots figcaption { margin-top: 10px; font-weight: 700; color: var(--primary); }
@media (max-width: 760px) {
  .shots { grid-template-columns: repeat(4, 64%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots figure { scroll-snap-align: start; }
}
.plan .price { font-family: var(--title); font-size: 44px; font-weight: 700; color: var(--primary); margin: 4px 0 8px; }
.plan-main { border: 2px solid var(--primary); }
.tag { display: inline-block; background: var(--tajibo-suave); color: var(--tajibo-texto); border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 700; margin-bottom: 8px; }

/* Tarjeta de app: fondo oscuro con dos brillos, texto a la izquierda y abanico de pantallas a la derecha.
   Cada app pone sus colores: --bg (fondo), --g1 y --g2 (brillos), --suave (texto secundario). */
.feature-app { position: relative; background: var(--bg); border-color: var(--bg); color: #fff; }
.feature-app::before, .feature-app::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; pointer-events: none; }
.feature-app::before { width: 320px; height: 320px; background: var(--g1); top: -140px; right: -80px; }
.feature-app::after { width: 280px; height: 280px; background: var(--g2); bottom: -150px; left: -60px; }
.feature-app > * { position: relative; z-index: 1; }
.feature-app .app-title span, .feature-app p { color: var(--suave); }
.feature-app .app-title h3 { color: #fff; }
.feature-app .app-links a { color: var(--suave); }
.feature-app .app-links a:hover { color: #fff; }
.feature-app .btn-ghost:hover { border-color: var(--g1); }
.app-subtitulo { margin: 8px 0 0; font-size: clamp(22px, 2.6vw, 28px); color: #fff; }

/* YaYa Driver: azul marino, naranja y los colores de cada servicio (manual de marca de YaYa) */
.feature-yaya { --bg: #1B2A47; --g1: #F56300; --g2: #2563EB; --suave: #C7D2E3; }
/* Mi Estanque: el azul noche de su gráfico, el verde agua de los peces y el tajibo */
.feature-estanque { --bg: #10202F; --g1: #5CC69A; --g2: #F2B705; --suave: #BFD3D0; }
.estanque-chips li { background: rgba(92, 198, 154, .16); color: #9FE3C4; font-weight: 700; }
.btn-estanque { background: #5CC69A; color: #0F2A22; }
.btn-estanque:hover { background: #7AD6AE; color: #0F2A22; }
.app-title .yaya-marca { display: flex; align-items: center; gap: 3px; margin-bottom: 2px; }
.yaya-marca svg { width: 22px; height: 25px; flex-shrink: 0; }
.app-title .yaya-logo, .app-title .yaya-logo span { font: italic 900 34px/1 "Nunito", system-ui, sans-serif; letter-spacing: -2px; color: #fff; }
.yaya-logo b { color: #F56300; font-weight: 900; }
.yaya-chips li { background: var(--c); color: #fff; font-weight: 700; }
.btn-yaya { background: #F56300; color: #fff; }
.btn-yaya:hover { background: #DC5800; color: #fff; }
/* Abanico de pantallas (como en "Así se ve" de la página de YaYa Driver) */
.abanico { display: flex; justify-content: center; align-items: flex-end; padding: 40px 24px 0; overflow: hidden; }
.abanico img { --r: calc((var(--k) - 1) * 8deg); width: 34%; height: auto; align-self: flex-end; margin: 0 -18px; rotate: var(--r); translate: 0 calc(var(--k) * (2 - var(--k)) * -22px + 26px); border-radius: 22px; border: 5px solid #0B1220; background: #0B1220; box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .6); transform-origin: 50% 100%; transition: transform .4s ease; }
.abanico img:nth-child(2) { z-index: 2; width: 38%; }
.feature-app:hover .abanico img { transform: translateY(-8px); }
.feature-app:hover .abanico img:nth-child(2) { transform: translateY(-16px) scale(1.03); }
@media (prefers-reduced-motion: reduce) { .abanico img { transition: none; } }

/* Equipo */
.person { display: flex; gap: 16px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--noche); color: var(--aqua); display: grid; place-items: center; font-family: var(--title); font-weight: 700; font-size: 22px; flex-shrink: 0; }
.person h3 { margin: 0; }
.person p { margin: 2px 0 0; }

/* Contacto */
.contact { background: var(--primary); color: #fff; border-radius: 24px; padding: 40px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact h2 { margin: 0; font-size: clamp(26px, 4vw, 34px); }
.contact p { margin: 8px 0 0; color: #D2EADD; }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Páginas de texto (app y privacidad) */
.page { padding: 40px 0 64px; }
.page .wrap { max-width: 800px; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 700; text-decoration: none; }
.page h1 { font-size: clamp(32px, 6vw, 46px); margin: 28px 0 8px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; color: var(--primary); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.box { background: var(--soft); border-radius: 14px; padding: 16px 20px; margin: 24px 0; }
.box p { margin: 0; }
.banner { border-radius: 20px; overflow: hidden; }
.meta { color: var(--muted); margin: 0 0 24px; }

/* ===== Parte baja de la portada: menos blanco, más monte ===== */
.kicker { display: inline-block; font: 700 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); margin-bottom: 12px; }
.kicker-oscuro { color: var(--primary); }

/* Próximamente: tarjetas con color propio, todavía "apagadas" con borde punteado */
.soon-card { position: relative; overflow: hidden; background: var(--bg); border-color: rgba(255, 255, 255, .28); color: var(--suave); }
.soon-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px; border-radius: 50%; background: var(--g1); opacity: .35; filter: blur(60px); }
.soon-card > * { position: relative; }
.soon-pina { --bg: #2E2A12; --g1: #F2B705; --suave: #E3DAB4; --chip: rgba(242, 183, 5, .18); --chip-ink: #F6D46A; }
.soon-gerico { --bg: #1E2B1A; --g1: #8CC63F; --suave: #CBD8C2; --chip: rgba(140, 198, 63, .18); --chip-ink: #B9E07F; }
.soon-card .soon-head h4 { color: #fff; }
.soon-card .soon-icon { background: rgba(255, 255, 255, .1); color: var(--chip-ink); }
.soon-card .chips li { background: var(--chip); color: var(--chip-ink); font-weight: 700; }
.soon-card .soon-badge { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }

/* Cómo trabajamos: pasos sobre una línea */
section.como-banda { padding-top: 40px !important; }
.pasos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: paso; }
.pasos::before { content: ""; position: absolute; top: 32px; left: 32px; right: 21%; border-top: 2px dashed var(--line-strong); opacity: .5; }
.pasos li { position: relative; counter-increment: paso; }
.paso-icono { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px var(--ground), 0 14px 28px -10px rgba(28, 116, 81, .6); transition: transform .3s ease, background .3s ease; }
.paso-icono svg { width: 28px; height: 28px; }
.paso-icono::after { content: counter(paso); position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--tajibo); color: var(--sobre-tajibo); font: 800 13px/24px var(--title); text-align: center; }
.pasos li:hover .paso-icono { transform: translateY(-4px); background: var(--noche); }
.pasos h3 { margin: 20px 0 6px; font-size: 21px; }
.pasos p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  .pasos { grid-template-columns: 1fr; gap: 20px; }
  .pasos::before { top: 32px; bottom: 32px; left: 31px; right: auto; border-top: 0; border-left: 2px dashed var(--line-strong); }
  .pasos li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; }
  .pasos .paso-icono { grid-row: span 2; }
  .pasos h3 { margin: 4px 0 2px; }
}

/* Servicios en banda oscura */
section.banda-noche { position: relative; overflow: hidden; background: var(--noche); color: #fff; padding: 88px 0 !important; margin-top: 24px; }
.banda-noche::before, .banda-noche::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .28; }
.banda-noche::before { width: 460px; height: 460px; right: -120px; top: -160px; background: var(--aqua); }
.banda-noche::after { width: 380px; height: 380px; left: -140px; bottom: -180px; background: var(--tajibo); opacity: .18; }
.banda-noche .wrap { position: relative; z-index: 1; }
.banda-noche .section-head p { color: var(--on-dark); }
.servicio { position: relative; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: #fff; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.servicio:hover { transform: translateY(-6px); border-color: var(--aqua); background: rgba(92, 198, 154, .08); }
.servicio h3 { color: #fff; }
.servicio p { color: var(--on-dark); }
.servicio .icon { background: rgba(92, 198, 154, .16); color: var(--aqua); }
.servicio .num { position: absolute; top: 18px; right: 20px; font: 800 30px/1 var(--title); color: rgba(255, 255, 255, .1); }

/* Equipo con foto */
section.banda-equipo { padding: 88px 0 !important; background: linear-gradient(180deg, var(--soft), var(--ground)); }
.equipo-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.personas { display: grid; gap: 14px; }
.personas .person { border-left: 4px solid var(--primary); }
.personas .person:nth-child(2) { border-left-color: var(--tajibo); }
.avatar-tajibo { color: var(--tajibo); }
.equipo-foto { position: relative; margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(15, 42, 34, .5); rotate: 1.5deg; }
.equipo-foto img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.equipo-foto figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--tajibo); color: var(--sobre-tajibo); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 860px) { .equipo-layout { grid-template-columns: 1fr; } .equipo-foto { rotate: 0deg; } }

/* Contacto con foto aérea de fondo */
#contacto { padding: 0 0 72px !important; background: var(--ground); }
.contact { position: relative; overflow: hidden; padding: 64px 48px; background: linear-gradient(100deg, rgba(15, 42, 34, .96) 35%, rgba(28, 116, 81, .7)), url("mi-estanque/fotos/estanques-aereo.jpg") center / cover; }
.contact h2 { font-size: clamp(30px, 4.6vw, 44px); }
@media (max-width: 600px) { .contact { padding: 40px 24px; } }

/* Pie oscuro */
footer { background: var(--noche); color: var(--on-dark); padding: 40px 0; }
footer .wrap { align-items: center; }
.pie-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pie-links a { color: #fff; text-decoration: none; font-weight: 600; }
.pie-links a:hover { color: var(--aqua); }
.pie-legal { flex-basis: 100%; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; margin-top: 8px; }
.personas-titulo { margin: 0 0 12px; font: 700 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
