:root{
  --bg: #fff7ed;
  --bg2: #fef3c7;
  --panel: rgba(255,255,255,.72);
  --panel2: rgba(255,255,255,.86);
  --text: #0f172a;
  --muted: rgba(15,23,42,.72);
  --border: rgba(15,23,42,.10);

  --accent: #f97316;
  --accentDark: #ea580c;
  --accent2: #fbbf24;

  --shadow: 0 18px 55px rgba(15,23,42,.14);
  --radius: 18px;
  --radius2: 26px;

  --header-h: 72px;

  color-scheme: light;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top: var(--header-h); }
body{
  margin:0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height:1.5;
  background:
    radial-gradient(1000px 700px at 10% 0%, rgba(249,115,22,.18), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(251,191,36,.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100vh;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
.container{ width:min(1100px, 92%); margin-inline:auto; }

:where(a, button, input, textarea, select):focus-visible{
  outline: 3px solid rgba(249,115,22,.55);
  outline-offset: 3px;
  border-radius: 14px;
}

.skip-link{
  position:absolute; left:-9999px; top:10px;
  background: var(--text);
  color: white;
  padding:10px 14px;
  border-radius: 12px;
}
.skip-link:focus{ left:10px; z-index:9999; }

/* TOPBAR */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}
.brandline{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.brandline__mark{
  width:34px; height:34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(249,115,22,.18), rgba(251,191,36,.16));
  padding: 6px;
  transition: all 0.3s ease;
}
.brandline:hover .brandline__mark{
  transform: rotate(5deg) scale(1.1);
  border-color: rgba(249,115,22,.35);
}
.brandline__text{ white-space:nowrap; }

.topbar__actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.topbar i{ font-size: .98em; }

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.70);
  font-weight: 900;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.btn::before{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 0;
}
.btn:hover::before{
  width: 200px;
  height: 200px;
}
.btn > *{ position: relative; z-index: 1; }
.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15,23,42,.12);
  border-color: rgba(249,115,22,.26);
}
.btn--ghost{
  background: transparent;
  color: rgba(15,23,42,.75);
}
.btn--accent{
  color: white;
  border-color: rgba(255,255,255,.35);
  background: linear-gradient(135deg, rgba(249,115,22,.96), rgba(234,88,12,.96));
  box-shadow: 0 16px 34px rgba(249,115,22,.20);
  animation: gentlePulse 3s ease-in-out infinite;
}
.btn--accent:hover{
  box-shadow: 0 20px 44px rgba(249,115,22,.26);
  animation: none;
  filter: brightness(1.05);
}

@keyframes gentlePulse{
  0%, 100% { box-shadow: 0 16px 34px rgba(249,115,22,.20); }
  50% { box-shadow: 0 16px 34px rgba(249,115,22,.28); }
}
.btn--pulse{
  position: relative;
}
.btn--pulse::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius: inherit;
  border: 2px solid rgba(249,115,22,.25);
  opacity: .0;
  transform: scale(.98);
  transition: opacity .18s ease;
  pointer-events:none;
}
@media (hover:hover) and (pointer:fine){
  .btn--pulse:hover::after{ opacity: 1; }
}

/* HERO */
.hero{
  position:relative;
  overflow:hidden;
  padding: 70px 0 46px;
}
.hero__bg{
  position:absolute;
  inset:-30% -20% auto -20%;
  height: 520px;
  background:
    radial-gradient(600px 320px at 30% 30%, rgba(249,115,22,.20), transparent 60%),
    radial-gradient(520px 280px at 70% 20%, rgba(251,191,36,.18), transparent 60%);
  filter: blur(10px);
  pointer-events:none;
  z-index:-1;
}
.hero__grid{
  display:grid;
  gap:26px;
  align-items:center;
}
@media(min-width: 980px){
  .hero__grid{ grid-template-columns: 1.05fr .95fr; gap:40px; }
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:max-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(249,115,22,.22);
  background: rgba(255,255,255,.62);
  color: rgba(234,88,12,.92);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown{
  from{ opacity: 0; transform: translateY(-10px); }
  to{ opacity: 1; transform: translateY(0); }
}
h1{
  margin: 14px 0 10px;
  font-size: clamp(2.2rem, 4.8vw, 4.0rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  animation: fadeInUp 0.7s ease-out 0.1s both;
}

@keyframes fadeInUp{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}
.lead{
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
  animation: fadeInUp 0.7s ease-out 0.2s both;
}
.hero__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 18px;
  animation: fadeInUp 0.7s ease-out 0.3s both;
}

.proof{
  list-style:none;
  padding:0;
  margin: 18px 0 0;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
.proof li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.62);
  transition: all 0.25s ease;
}
.proof li:hover{
  transform: translateY(-3px);
  border-color: rgba(249,115,22,.35);
  background: rgba(255,255,255,.8);
  box-shadow: 0 10px 25px rgba(249,115,22,.15);
}
.proof__icon{
  width:38px; height:38px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(249,115,22,.18);
  background: linear-gradient(135deg, rgba(249,115,22,.10), rgba(251,191,36,.10));
  color: rgba(234,88,12,.92);
  flex: 0 0 auto;
}
.proof strong{ display:block; font-weight: 950; color: rgba(234,88,12,.94); letter-spacing: -.01em; }
.proof span{ display:block; color: rgba(15,23,42,.70); font-weight: 650; font-size: .92rem; margin-top: 2px; }

.hero__mini{
  margin-top: 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.58);
  color: rgba(15,23,42,.75);
  font-weight: 800;
  font-size: .92rem;
}

@media(max-width: 720px){
  .proof{ grid-template-columns: 1fr; }
}

/* MOCKUP */
.mockup{
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.60);
  box-shadow: var(--shadow);
  overflow:hidden;
  animation: fadeInLeft 0.8s ease-out 0.2s both;
  transition: all 0.3s ease;
}
.mockup:hover{
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 25px 65px rgba(15,23,42,.18);
}

@keyframes fadeInLeft{
  from{ opacity: 0; transform: translateX(30px); }
  to{ opacity: 1; transform: translateX(0); }
}
.mockup__top{
  display:flex;
  gap:6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.mockup__top span{
  width:10px; height:10px; border-radius:999px;
  background: rgba(15,23,42,.16);
}
.mockup__screen{
  padding: 16px;
  display:grid;
  gap:12px;
}
.plate{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(249,115,22,.22);
  background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(251,191,36,.10));
}
.plate__badge{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(249,115,22,.18);
  font-weight: 900;
  color: rgba(234,88,12,.92);
  width:max-content;
}
.plate__title{ margin-top: 10px; font-weight: 950; letter-spacing: -.02em; font-size: 1.15rem; }
.plate__desc{ color: rgba(15,23,42,.72); margin-top: 4px; font-weight: 650; }
.plate__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top: 10px;
}
.price{ font-weight: 950; color: rgba(234,88,12,.92); }
.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.62);
  color: rgba(15,23,42,.72);
  font-weight: 800;
  font-size: .9rem;
}
.plate__cta{
  margin-top: 12px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(249,115,22,.94);
  color:white;
  font-weight: 950;
  width:max-content;
  transition: transform .18s ease, box-shadow .18s ease;
}
.plate__cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(249,115,22,.20);
}
.mockup__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
.mockup__grid div{
  height: 96px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.68);
}

/* SECTIONS */
.section{ padding: 70px 0; }
.section__head{ margin-bottom: 16px; }
.section__head h2{
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -.02em;
}
.section__head p{
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

/* Cards & grids */
.grid-3{
  display:grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap:14px;
  margin-top: 20px;
}
@media(min-width: 860px){
  .grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.card{
  padding: 18px 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.66);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card::before{
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(249,115,22,.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::before{
  opacity: 1;
}
.card__icon{
  width:44px; height:44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(249,115,22,.18);
  background: linear-gradient(135deg, rgba(249,115,22,.10), rgba(251,191,36,.10));
  color: rgba(234,88,12,.92);
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.card h3{ margin:0 0 8px; color: rgba(234,88,12,.94); letter-spacing: -.01em; }
.card p{ margin:0; color: var(--muted); }

@media (hover:hover) and (pointer:fine){
  .card:hover{
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(249,115,22,.35);
    background: rgba(255,255,255,.85);
    box-shadow: 0 20px 40px rgba(15,23,42,.12), 0 0 0 1px rgba(249,115,22,.15);
  }
  .card:hover h3{
    color: rgba(249,115,22,.96);
  }
}

/* Showcase */
.showcase{
  display:grid;
  gap:14px;
  align-items:start;
}
@media(min-width: 980px){
  .showcase{ grid-template-columns: 1.1fr .9fr; gap:22px; }
}
.board{
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow);
  padding: 16px;
  display:grid;
  gap:12px;
}
.board__hero{
  height: 170px;
  border-radius: 18px;
  border: 1px solid rgba(249,115,22,.22);
  background:
    linear-gradient(135deg, rgba(249,115,22,.14), rgba(251,191,36,.12)),
    rgba(255,255,255,.7);
}
.board__row{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
.board__row div{
  height: 86px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.68);
}

.list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.list li{
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.62);
  transition: all 0.25s ease;
}
.list li:hover{
  transform: translateX(5px);
  border-color: rgba(249,115,22,.3);
  background: rgba(255,255,255,.8);
  box-shadow: 0 8px 20px rgba(249,115,22,.1);
}
.list strong{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 950;
  color: rgba(234,88,12,.94);
}
.list span{ display:block; color: rgba(15,23,42,.70); font-weight: 650; margin-top: 4px; }

/* Split banner */
.split{
  display:grid;
  gap:14px;
  align-items:start;
}
@media(min-width: 980px){
  .split{ grid-template-columns: 1.1fr .9fr; gap:22px; }
}
.banner{
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid rgba(249,115,22,.22);
  background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(251,191,36,.10));
  box-shadow: 0 10px 26px rgba(249,115,22,.10);
}
.banner h3{ margin:0 0 8px; letter-spacing: -.01em; }
.banner p{ margin:0 0 14px; color: rgba(15,23,42,.72); font-weight: 650; }

.bullets{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.bullets li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.62);
  color: rgba(15,23,42,.75);
  font-weight: 700;
}
.bullets i{ color: rgba(234,88,12,.92); margin-top: 2px; }

/* CTA */
.cta{
  padding: 70px 0;
  background:
    radial-gradient(900px 520px at 50% 10%, rgba(249,115,22,.10), transparent 60%),
    linear-gradient(180deg, transparent, rgba(255,255,255,.25));
}
.cta__box{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  padding: 22px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow);
}
.cta__box h2{
  margin:0 0 6px;
  font-size: clamp(1.4rem, 3.0vw, 2.0rem);
  letter-spacing: -.02em;
}
.cta__box p{ margin:0; color: var(--muted); max-width: 62ch; }

/* Form */
.form{
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow);
}
.form__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media(min-width: 900px){
  .form__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.field--full{ grid-column: 1 / -1; }

.field{ display:grid; gap:6px; }
label{ font-weight: 950; }
input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  color: var(--text);
  outline:none;
  transition: all 0.25s ease;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(249,115,22,.40);
  box-shadow: 0 0 0 4px rgba(249,115,22,.10);
  transform: translateY(-1px);
  background: rgba(255,255,255,.95);
}
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus){
  border-color: rgba(249,115,22,.25);
}
.error{ min-height: 18px; color: rgba(220,38,38,.92); font-weight: 800; }

.form__note{
  margin: 10px 0 0;
  color: rgba(15,23,42,.70);
  font-weight: 650;
  font-size: .92rem;
}

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  color: rgba(15,23,42,.72);
  font-weight: 650;
}

/* Reveal - Optimizado para smooth scroll */
.reveal{
  opacity: 0;
  transform: translateY(20px);
}
.reveal--visible{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Stagger delays para elementos en grupo */
.proof li:nth-child(1){ animation-delay: 0.4s; }
.proof li:nth-child(2){ animation-delay: 0.5s; }
.proof li:nth-child(3){ animation-delay: 0.6s; }

.grid-3 .card:nth-child(1){ transition-delay: 0.05s; }
.grid-3 .card:nth-child(2){ transition-delay: 0.1s; }
.grid-3 .card:nth-child(3){ transition-delay: 0.15s; }

.list li:nth-child(1){ transition-delay: 0.05s; }
.list li:nth-child(2){ transition-delay: 0.1s; }
.list li:nth-child(3){ transition-delay: 0.15s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto; transition:none !important; animation: none !important; }
  [data-reveal]{ opacity: 1; transform:none; }
  .reveal{ opacity: 1; transform:none; }
}

/* ==========================================================================
   EFECTOS ADICIONALES DINÁMICOS Y PROFESIONALES
   ========================================================================== */

/* Efecto de shimmer sutil en elementos destacados */
@keyframes shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.plate {
  position: relative;
  overflow: hidden;
}

.plate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

/* Efectos en iconos para micro-interacciones */
.icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn:hover .icon {
  transform: scale(1.15);
}

.proof__head .icon {
  transition: all 0.3s ease;
}

.proof li:hover .proof__head .icon {
  transform: rotate(5deg) scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(249,115,22,.3));
}

/* Animación para elementos del mockup */
.mockup__grid div {
  transition: all 0.3s ease;
}

.mockup:hover .mockup__grid div {
  transform: scale(1.05);
}

.mockup:hover .mockup__grid div:nth-child(1) { transition-delay: 0.05s; }
.mockup:hover .mockup__grid div:nth-child(2) { transition-delay: 0.1s; }
.mockup:hover .mockup__grid div:nth-child(3) { transition-delay: 0.15s; }
.mockup:hover .mockup__grid div:nth-child(4) { transition-delay: 0.2s; }

/* Efectos en el board */
.board {
  transition: all 0.3s ease;
}

.board:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 60px rgba(15,23,42,.12);
}

/* Animación suave para bullets */
.bullets li {
  transition: all 0.25s ease;
}

.bullets li:hover {
  transform: translateX(8px);
  border-color: rgba(249,115,22,.35);
  background: rgba(255,255,255,.8);
}

/* Efecto gradient en títulos de sección */
.section__head h2 {
  background: linear-gradient(135deg, var(--text), rgba(249,115,22,.85));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Banner con efecto de borde animado */
.banner {
  position: relative;
  overflow: hidden;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(45deg, rgba(249,115,22,.4), transparent 50%, rgba(251,191,36,.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.banner:hover::after {
  opacity: 1;
}

/* Efecto de focus mejorado */
.field {
  position: relative;
}

.field label {
  transition: color 0.2s ease;
}

.field:focus-within label {
  color: rgba(249,115,22,.92);
}

/* Topbar con efecto de elevación al scroll */
.topbar {
  transition: all 0.3s ease;
}

body.scrolled .topbar {
  background: rgba(255,255,255,.90);
  box-shadow: 0 4px 20px rgba(15,23,42,.08);
}

/* Efecto hover en chips */
.chip {
  transition: all 0.2s ease;
}

.chip:hover {
  transform: scale(1.05);
  border-color: rgba(249,115,22,.3);
  background: rgba(255,255,255,.8);
}

/* CTA box con efecto especial */
.cta__box {
  position: relative;
  transition: all 0.3s ease;
}

.cta__box:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(15,23,42,.18);
}

/* Animación para proofs li */
.proof li {
  animation: fadeInScale 0.6s ease-out both;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Optimizaciones de performance */
.btn, .card, .mockup, .board, .list li, .bullets li {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Efecto de loading sutil en imágenes */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0.5;
}

/* Efecto en select personalizado */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23f97316' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

select:hover {
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ========================================================================== */

/* Mobile pequeño (< 480px) */
@media (max-width: 479px) {
  .container {
    width: 96%;
  }

  .topbar__inner {
    padding: 10px 0;
  }

  .brandline__text {
    font-size: 0.9rem;
  }

  .topbar__actions {
    gap: 6px;
  }

  .btn {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.8rem !important;
  }

  .lead {
    font-size: 1rem;
  }

  .eyebrow {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .proof {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .proof li {
    flex-direction: column;
    gap: 8px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .mockup__screen {
    padding: 12px;
  }

  .grid-3 {
    gap: 12px;
  }

  .section {
    padding: 40px 0;
  }

  .section__head h2 {
    font-size: 1.5rem;
  }

  .cta__box {
    padding: 18px;
  }

  .cta__box h2 {
    font-size: 1.3rem;
  }

  .form {
    padding: 14px;
  }
}

/* Mobile medio (480px - 639px) */
@media (min-width: 480px) and (max-width: 639px) {
  .proof {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .topbar__actions .btn--ghost {
    padding: 10px;
  }

  .topbar__actions .btn--ghost .icon {
    margin: 0;
  }

  .topbar__actions .btn--ghost span:not(.icon) {
    display: none;
  }
}

/* Tablet pequeño (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
  .proof {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

/* Tablet medio (768px - 979px) */
@media (min-width: 768px) and (max-width: 979px) {
  .proof {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .proof li {
    flex-direction: column;
    text-align: center;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 .card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero__grid {
    gap: 30px;
  }
}

/* Ajustes generales para móviles y tablets */
@media (max-width: 979px) {
  .hero {
    padding: 40px 0 30px;
  }

  .hero__bg {
    height: 400px;
  }

  .mockup {
    max-width: 500px;
    margin: 0 auto;
  }

  .showcase {
    gap: 18px;
  }

  .board {
    max-width: 500px;
    margin: 0 auto;
  }

  .split {
    gap: 18px;
  }

  .banner {
    text-align: center;
  }

  .cta__box {
    text-align: center;
    justify-content: center;
  }

  .form__grid {
    gap: 14px;
  }

  /* Ocultar texto en botones pequeños en móvil */
  .topbar__actions .btn {
    white-space: nowrap;
  }
}

/* Optimizaciones específicas de hover solo para dispositivos con mouse */
@media (hover: none) {
  .btn:hover::before,
  .card:hover::before,
  .plate::before {
    display: none;
  }

  .btn:active {
    transform: scale(0.98);
  }

  .card:active {
    transform: scale(0.99);
  }

  /* Desactivar animaciones de hover complejas en touch */
  .mockup:hover .mockup__grid div {
    transform: none;
  }
}

/* Landscape móvil */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    padding: 30px 0 20px;
  }

  .section {
    padding: 40px 0;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .mockup {
    max-width: 100%;
  }
}

/* Ajustes de fonts para pantallas pequeñas */
@media (max-width: 639px) {
  html {
    font-size: 15px;
  }

  .brandline__mark {
    width: 30px;
    height: 30px;
  }

  .proof strong {
    font-size: 0.95rem;
  }

  .proof span {
    font-size: 0.85rem;
  }

  .card h3 {
    font-size: 1.05rem;
  }

  .card p {
    font-size: 0.95rem;
  }

  .list strong {
    font-size: 0.95rem;
  }

  .list span {
    font-size: 0.9rem;
  }

  .banner h3 {
    font-size: 1.1rem;
  }

  .bullets li {
    font-size: 0.9rem;
  }
}

/* Desktop grande (> 1200px) */
@media (min-width: 1200px) {
  .container {
    width: min(1200px, 92%);
  }

  .hero__grid {
    gap: 50px;
  }

  .section {
    padding: 90px 0;
  }

  .grid-3 {
    gap: 20px;
  }
}

/* Ultra wide (> 1400px) */
@media (min-width: 1400px) {
  .container {
    width: min(1300px, 90%);
  }
}

/* Ajustes para impresión */
@media print {
  .topbar,
  .skip-link,
  .btn,
  .hero__bg,
  .footer {
    display: none;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Ajustes de accesibilidad para texto grande */
@media (min-width: 1px) {
  html.large-text {
    font-size: 18px;
  }

  html.large-text .btn {
    padding: 14px 18px;
  }

  html.large-text .topbar__inner {
    padding: 18px 0;
  }
}

/* Optimizaciones para dispositivos de baja potencia */
@media (prefers-reduced-motion: reduce) {
  .proof li {
    animation: none;
  }

  .mockup,
  .eyebrow,
  h1,
  .lead,
  .hero__actions {
    animation: none;
  }
}

/* Dark mode preparación (si se implementa en el futuro) */
@media (prefers-color-scheme: dark) {
  /* Los estilos actuales ya son claros, pero se puede preparar */
  body {
    /* Mantener el tema claro por ahora */
  }
}

/* Ajustes finos para iPad y tablets en portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .container {
    width: 90%;
  }

  .proof {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mockup {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Ajustes para iPad Pro y tablets grandes en landscape */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .container {
    width: 88%;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Fix para Safari iOS */
@supports (-webkit-touch-callout: none) {
  .btn {
    -webkit-tap-highlight-color: transparent;
  }

  input, select, textarea {
    font-size: 16px; /* Previene zoom en iOS */
  }
}

/* Mejoras de performance en mobile */
@media (max-width: 767px) {
  /* Reducir complejidad de animaciones */
  .btn--accent {
    animation-duration: 4s;
  }

  .plate::before {
    animation-duration: 4s;
  }

  /* Simplificar sombras */
  .card {
    box-shadow: 0 5px 15px rgba(15,23,42,.08);
  }

  .mockup {
    box-shadow: 0 10px 30px rgba(15,23,42,.12);
  }

  .cta__box,
  .form,
  .board {
    box-shadow: 0 8px 25px rgba(15,23,42,.10);
  }
}

/* ==========================================================================
   ESTADOS TOUCH PARA MÓVILES
   ========================================================================== */

.touch-device .btn:active,
.touch-active.btn {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.touch-device .card:active,
.touch-active.card {
  transform: translateY(-2px) scale(0.99);
  transition: transform 0.1s ease;
}

.touch-device .list li:active,
.touch-active.list li {
  transform: translateX(3px);
  background: rgba(255,255,255,.9);
}

/* Mejorar área de toque en móviles (44x44px mínimo) */
@media (max-width: 767px) {
  .btn {
    min-height: 44px;
  }

  .nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  input, select, textarea {
    min-height: 44px;
  }

  /* Espaciado adicional para evitar clicks accidentales */
  .topbar__actions {
    gap: 8px;
  }

  .hero__actions {
    gap: 10px;
  }
}

/* Optimización de tipografía para legibilidad móvil */
@media (max-width: 639px) {
  body {
    line-height: 1.6;
  }

  p {
    line-height: 1.65;
  }

  .card p,
  .list span,
  .banner p {
    line-height: 1.6;
  }
}

/* Estados de focus mejorados para navegación por teclado */
.btn:focus-visible,
.card:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(249,115,22,.6);
  outline-offset: 3px;
}

/* Optimizaciones de scroll suave para móvil */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 80px;
  }
}

/* Ajustes finales para muy pequeñas pantallas */
@media (max-width: 360px) {
  .container {
    width: 98%;
  }

  h1 {
    font-size: 1.6rem !important;
    line-height: 1.1;
  }

  .btn {
    font-size: 0.85rem;
    padding: 10px;
  }

  .section {
    padding: 30px 0;
  }
}

/* Mejoras para tablets en modo lectura */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    width: 85%;
  }

  .section {
    padding: 60px 0;
  }
}