/* ============ ARGENFILM - estilos ============ */
:root {
  --azul: #123B5D;
  --azul-oscuro: #0B2840;
  --azul2: #2383B8;
  --amarillo: #F2B233;
  --amarillo-hover: #FFC24D;
  --fondo: #F4F6F8;
  --grafito: #202833;
  --blanco: #FFFFFF;
  --whatsapp: #25D366;
  --radius: 14px;
  --bar-h: 72px;
  --shadow: 0 10px 30px rgba(18, 59, 93, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--grafito);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--azul2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--azul); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
section[id] { scroll-margin-top: calc(var(--bar-h) - 1px); }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn--accent { background: var(--amarillo); color: var(--grafito); box-shadow: 0 6px 18px rgba(242, 178, 51, .35); }
.btn--accent:hover { background: var(--amarillo-hover); }
.btn--primary { background: var(--azul); color: var(--blanco); }
.btn--primary:hover { background: var(--azul2); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: var(--blanco); border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  background: rgba(18, 59, 93, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}
.topbar__inner { width: min(1200px, 100% - 32px); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand__name { font-style: italic; font-weight: 900; font-size: 1.45rem; letter-spacing: .01em; color: var(--blanco); }
.brand__name b { color: #19B5FF; font-weight: 900; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a:not(.btn) { color: var(--blanco); text-decoration: none; font-weight: 600; padding: .5rem .9rem; border-radius: 8px; }
.nav a:not(.btn):hover { background: rgba(255, 255, 255, .12); }
.nav__cta { margin-left: .6rem; padding: .55rem 1.2rem; }

.menu-btn { display: none; align-items: center; gap: .6rem; background: var(--amarillo); color: var(--grafito); border: 0; border-radius: 10px; padding: .55rem 1rem; font: inherit; font-weight: 800; cursor: pointer; }
.menu-btn__icon, .menu-btn__icon::before, .menu-btn__icon::after { display: block; width: 20px; height: 3px; background: currentColor; border-radius: 2px; position: relative; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; }
.menu-btn__icon::before { top: -6px; }
.menu-btn__icon::after { top: 6px; }

/* ---------- Portada / carrusel ---------- */
.hero { position: relative; height: calc(100svh - var(--bar-h)); min-height: 540px; max-height: 900px; overflow: hidden; background: var(--azul-oscuro); color: var(--blanco); display: flex; align-items: center; }
.hero__slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 28, 48, .88) 0%, rgba(8, 28, 48, .65) 45%, rgba(8, 28, 48, .15) 100%); }
.hero__content { position: relative; width: min(1120px, 100% - 32px); margin-inline: auto; max-width: 720px; margin-left: max(16px, calc((100% - 1120px) / 2)); padding-block: 2rem; }
.eyebrow { display: inline-block; background: var(--amarillo); color: var(--grafito); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 6px; margin-bottom: 1rem; }
.hero h1 { color: var(--blanco); font-size: clamp(2.1rem, 5.5vw, 3.8rem); text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34em; color: #E8F0F7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(8, 28, 48, .55); color: #fff; font-size: 1.2rem; cursor: pointer; backdrop-filter: blur(4px); }
.hero__arrow:hover { background: rgba(8, 28, 48, .85); }
.hero__arrow--prev { left: 14px; }
.hero__arrow--next { right: 14px; }
.hero__dots { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: .6rem; }
.hero__dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.hero__dots button[aria-selected="true"] { background: var(--amarillo); border-color: var(--amarillo); }

/* ---------- Franja de confianza ---------- */
.trust { background: var(--azul); color: var(--blanco); }
.trust__list { list-style: none; margin: 0 auto; padding: 1.2rem 0; width: min(1120px, 100% - 32px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust__list li { display: flex; flex-direction: column; padding-left: 1rem; border-left: 4px solid var(--amarillo); }
.trust__list strong { font-size: 1.05rem; }
.trust__list span { font-size: .92rem; color: #C9DCEB; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: #E9EFF4; }
.section--dark { background: linear-gradient(160deg, var(--azul) 0%, var(--azul-oscuro) 100%); color: var(--blanco); }
.section--dark h2, .section--dark h3 { color: var(--blanco); }
.section__lead { font-size: 1.15rem; max-width: 40em; color: #4A5668; margin-bottom: 2rem; }
.section--dark .section__lead { color: #C9DCEB; }

/* ---------- Productos ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--blanco); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease; }
.card:hover { transform: translateY(-4px); }
.card__img { height: 210px; background-color: var(--azul); background-size: cover; background-repeat: no-repeat; }
/* Fotos provisorias: son recortes de las portadas. Reemplazar por fotos reales de cada producto en img/ */
.card__img--a { background-image: url("img/hero-2.jpg"); background-position: 22% 80%; background-size: 260%; }
.card__img--b { background-image: url("img/hero-1.jpg"); background-position: 92% 50%; background-size: 260%; }
.card__img--c { background-image: url("img/hero-1.jpg"); background-position: 8% 60%; background-size: 280%; }
.card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card__body p { color: #4A5668; flex: 1; }
.card__body .btn { align-self: flex-start; }

/* ---------- Cómo pedir ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { background: var(--blanco); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); position: relative; }
.steps__num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--amarillo); color: var(--grafito); font-weight: 900; font-size: 1.5rem; margin-bottom: .8rem; }
.steps p { margin: 0; color: #4A5668; }
.faq-title { margin-top: 1rem; }
.faq { display: grid; gap: .7rem; max-width: 820px; }
.faq details { background: var(--blanco); border-radius: 12px; border: 1px solid #D5DEE6; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--azul); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--azul2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: #4A5668; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.about__logo img { width: min(320px, 100%); margin-inline: auto; border-radius: 50%; box-shadow: var(--shadow); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; }
.contact__list li { display: flex; flex-direction: column; border-left: 4px solid var(--amarillo); padding-left: 1rem; }
.contact__list span { font-size: .85rem; color: #9FBBD3; text-transform: uppercase; letter-spacing: .06em; }
.contact__list a { color: var(--blanco); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.form { background: var(--blanco); color: var(--grafito); padding: 1.8rem; border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0, 0, 0, .3); display: grid; gap: 1rem; }
.form h3 { color: var(--azul); margin: 0; }
.form label { display: grid; gap: .35rem; font-weight: 700; font-size: 1rem; }
.form small { font-weight: 400; color: #6B7686; }
.form input, .form textarea { font: inherit; padding: .75rem .9rem; border: 2px solid #CBD6E0; border-radius: 10px; background: #fff; color: var(--grafito); width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--azul2); box-shadow: 0 0 0 3px rgba(35, 131, 184, .2); }
.form__error { margin: 0; color: #B3261E; font-weight: 700; }

/* ---------- Pie ---------- */
.footer { background: var(--azul-oscuro); color: #C9DCEB; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__brand img { border-radius: 50%; }
.footer__brand span { display: block; font-size: .92rem; }
.footer__col { display: flex; flex-direction: column; gap: .4rem; }
.footer__col h4 { color: var(--amarillo); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.footer a { color: #C9DCEB; text-decoration: none; }
.footer a:hover { color: var(--blanco); text-decoration: underline; }
.footer__legal { margin: 0; padding: 1.2rem 16px; text-align: center; font-size: .9rem; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--whatsapp); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Celular y tablet ---------- */
@media (max-width: 900px) {
  :root { --bar-h: 64px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: var(--bar-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 16px 1rem;
    background: var(--azul); box-shadow: 0 14px 24px rgba(0, 0, 0, .3);
    max-height: 0; overflow: hidden; visibility: hidden; padding-block: 0;
    transition: max-height .25s ease;
  }
  .nav.is-open { max-height: 460px; visibility: visible; padding-block: .6rem 1rem; }
  .nav a:not(.btn) { padding: .9rem .6rem; font-size: 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0; }
  .nav__cta { margin: .8rem 0 0; }
  .brand img { width: 40px; height: 40px; }
  .brand__name { font-size: 1.25rem; }
  .hero { min-height: 560px; }
  .hero__shade { background: linear-gradient(180deg, rgba(8, 28, 48, .55) 0%, rgba(8, 28, 48, .88) 100%); }
  .hero__arrow { display: none; }
  .trust__list { grid-template-columns: 1fr 1fr; }
  .cards, .steps { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .about__logo { order: -1; }
  .about__logo img { width: 200px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .trust__list { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .wa-float { width: 56px; height: 56px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .btn, .card, .nav { transition: none; }
}
