/* ===== Colores tomados del logo de Ricky Alimentos ===== */
:root {
  --red: #e30613;
  --red-dark: #b8040f;
  --navy: #0b1464;
  --navy-dark: #070d45;
  --navy-soft: #1c2a8a;
  --white: #ffffff;
  --cream: #f5f6fb;
  --text: #1a1d33;
  --muted: #5b6078;
  --border: #e2e5f0;
  --green: #25d366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 20, 100, .10);
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--sm { padding: 9px 18px; font-size: .92rem; }

/* ===== Encabezado ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 4px solid var(--red);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); letter-spacing: .5px; }
.brand__text small { color: var(--red); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--navy); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: 0;
  background: var(--red); transition: width .2s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--navy); border-radius: 3px; transition: .2s; }

/* ===== Portada ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(227, 6, 19, .35), transparent 45%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-soft) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--red) 0 40px, var(--white) 40px 80px);
}
.hero__inner {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px;
  padding: 90px 0 100px;
}
.eyebrow {
  margin: 0 0 12px;
  font-weight: 700; font-size: .85rem; letter-spacing: 3px; text-transform: uppercase;
  color: #ffb3b7;
}
.eyebrow--red { color: var(--red); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 20px;
}
.hero__lead { font-size: 1.12rem; color: #dfe3ff; max-width: 560px; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__badge { display: flex; justify-content: center; }
.hero__logo-ring {
  width: min(320px, 70vw); aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .15), 0 25px 60px rgba(0, 0, 0, .35);
}
.hero__logo-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ===== Secciones ===== */
.section { padding: 90px 0; }
.section--alt { background: var(--cream); }
.section__title {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 16px;
}
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 32px; }

/* ===== Nosotros ===== */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-top: 40px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.feature__icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--cream); margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); }

/* ===== Catálogo ===== */
.tabs { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.tab {
  flex: 1 1 0; min-width: 0; max-width: 320px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px;
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .5px; text-transform: uppercase;
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.tab:hover { transform: translateY(-2px); }
.tab.is-active { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: var(--shadow); }
.tab__emoji { font-size: 1.5rem; }
.tab-panel[hidden] { display: none; }
.search {
  display: block;
  margin-bottom: 32px;
  width: 100%; max-width: 560px;
  padding: 14px 20px;
  font: inherit;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.search:focus { border-color: var(--navy); }

.catalog {
  columns: 3 320px;
  column-gap: 24px;
}
.category {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.category[hidden] { display: none; }
.category__title {
  margin: 0;
  padding: 16px 22px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-bottom: 4px solid var(--red);
}
.product-list { list-style: none; margin: 0; padding: 8px 0; }
.product-list li {
  padding: 9px 22px 9px 42px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: .96rem;
}
.product-list li:last-child { border-bottom: 0; }
.product-list li::before {
  content: ""; position: absolute; left: 22px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--red);
}
.product-list li[hidden] { display: none; }

.catalog-empty { text-align: center; color: var(--muted); padding: 24px 0; }
.catalog-empty a { color: var(--red); font-weight: 700; }

.catalog-cta {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 32px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
}
.catalog-cta p { margin: 0; font-size: 1.08rem; }

/* ===== Contacto ===== */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; margin-top: 36px; }
.contact__cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .15s, border-color .2s;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--navy); }
.contact-card > span:last-child { display: flex; flex-direction: column; color: var(--muted); }
.contact-card strong { color: var(--navy); font-size: 1.08rem; }
.contact-card em { font-style: normal; color: var(--red); font-weight: 700; font-size: .9rem; margin-top: 4px; }
.contact-card__icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--navy);
}
.contact-card__icon svg { width: 22px; height: 22px; fill: var(--white); }
.contact-card__icon--red { background: var(--red); }
.contact-card__icon--green { background: var(--green); }

.social { display: flex; gap: 14px; flex-wrap: wrap; }
.social__link {
  flex: 1; min-width: 150px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, filter .2s;
}
.social__link:hover { transform: translateY(-2px); filter: brightness(1.08); }
.social__link svg { width: 22px; height: 22px; fill: currentColor; }
.social__link--fb { background: #1877f2; }
.social__link--ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
  border: 4px solid var(--navy);
}
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ===== Pie de página ===== */
.footer { background: var(--navy-dark); color: #c9cdf0; border-top: 6px solid var(--red); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 40px 0;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 64px; height: 64px; border-radius: 50%; background: var(--white); }
.footer__brand strong { font-family: var(--font-display); color: var(--white); font-size: 1.2rem; }
.footer__brand p { margin: 0; font-size: .9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--white); text-decoration: underline; }

.footer__credit { background: #04082e; }
.footer__credit-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0;
  font-size: .9rem;
}
.credit { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--white); }
.credit img { width: 56px; height: 56px; border-radius: 10px; background: var(--white); padding: 2px; }

/* ===== Botón flotante WhatsApp ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

/* ===== Responsivo ===== */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 4px solid var(--red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 400px; }
  .nav a:not(.btn) { padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 16px 24px; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 56px 0 72px; }
  .hero__badge { order: -1; }
  .hero__logo-ring { width: 200px; border-width: 4px; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .tab { padding: 14px 10px; font-size: .95rem; gap: 6px; }
  .tab__emoji { font-size: 1.2rem; }
  .features { grid-template-columns: 1fr; }
  .brand__text strong { font-size: 1rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .catalog-cta { padding: 22px; text-align: center; justify-content: center; }
  .footer__inner, .footer__credit-inner { justify-content: center; text-align: center; }
}
