/* INARROMESA — vanilla rebuild (from WordPress/Divi backup) */
:root {
  --orange: #f37021;
  --orange-dark: #d85f15;
  --blue: #006799;
  --blue-light: #2ea3f2;
  --dark: #2c2c2c;
  --text: #333;
  --muted: #666;
  --light: #f7f7f7;
  --border: #e5e5e5;
  --white: #fff;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max: 1140px;
  --header-h: 80px;
  --font: "Open Sans", Arial, sans-serif;
  --font-head: "Montserrat", "Open Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--orange);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--dark);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--orange);
}

.btn-outline-dark {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-outline-dark:hover {
  background: var(--orange);
  color: var(--white);
}

.section {
  padding: 4.5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
}

.nav-list > li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 0.65rem 0.9rem;
  color: var(--dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--orange);
}

.nav-list .has-sub > a::after {
  content: " ▾";
  font-size: 0.75em;
  opacity: 0.7;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 6px;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  z-index: 50;
}

.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu,
.has-sub.open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu a {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: 0.2s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(0, 40, 60, 0.72), rgba(243, 112, 33, 0.45)),
    url("../assets/images/gemma.jpg") center/cover no-repeat;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1rem;
  text-align: center;
}

.stat-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.stat-card h3 {
  font-size: 0.95rem;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.stat-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ========== PROCESS ========== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.process-block {
  background: var(--light);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--orange);
}

.process-block h2 {
  color: var(--blue);
}

/* ========== PRODUCTS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card .img-wrap {
  background: linear-gradient(180deg, #f7f3ee, #ebe4da);
  padding: 1.5rem 1rem 0.5rem;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.product-card img {
  max-height: 280px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
}

.hero {
  background-color: #004466;
}

img[src*="assets/images"] {
  background-color: transparent;
}

.product-card .body {
  padding: 1rem 1rem 1.4rem;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.badge {
  display: inline-block;
  background: rgba(243, 112, 33, 0.12);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* ========== HISTORY ========== */
.history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.history img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ========== FEATURED RECIPE ========== */
.featured-recipe {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.featured-recipe .media {
  min-height: 360px;
  background: center/cover no-repeat;
}

.featured-recipe .info {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 1rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ========== BLOG CARDS ========== */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.blog-card .thumb {
  aspect-ratio: 16/9;
  background: center/cover no-repeat;
}

.blog-card .body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  font-size: 1.05rem;
}

.blog-card p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.blog-card .read-more {
  font-weight: 700;
  color: var(--orange);
  margin-top: 0.5rem;
}

/* ========== PAGE HERO ========== */
.page-hero {
  background:
    linear-gradient(100deg, rgba(0, 103, 153, 0.88), rgba(243, 112, 33, 0.75)),
    url("../assets/images/fondo-arroz-1.webp") center/cover no-repeat;
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.95;
}

.breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.breadcrumb a {
  color: var(--white);
  opacity: 0.9;
}

/* ========== ABOUT ========== */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mv-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.mv-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.mv-card .body {
  padding: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.value-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--light);
  border-radius: var(--radius);
}

.value-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 0.9rem;
}

.team-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 560px;
  margin: 0 auto;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.product-detail .gallery {
  background: var(--light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.product-detail .gallery img {
  max-height: 420px;
  margin: 0 auto;
}

.presentations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.present-card {
  text-align: center;
  background: var(--light);
  border-radius: var(--radius);
  padding: 1rem;
}

.present-card img {
  max-height: 220px;
  margin: 0 auto 0.75rem;
}

.present-card h4 {
  margin: 0;
  color: var(--blue);
}

.related-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cta-band {
  background: linear-gradient(100deg, var(--blue), var(--orange));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cta-band h3 {
  color: var(--white);
  margin: 0 0 0.4rem;
}

.cta-band p {
  margin: 0;
  opacity: 0.95;
}

.cta-band img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* ========== RECIPE DETAIL ========== */
.recipe-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.recipe-hero-meta div {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.92rem;
}

.recipe-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.recipe-aside {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.recipe-aside h3 {
  color: var(--orange);
  font-size: 1.1rem;
}

.recipe-aside ul {
  margin: 0;
  padding-left: 1.1rem;
}

.recipe-aside li {
  margin-bottom: 0.45rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding: 0 0 1.5rem 3.2rem;
  border-left: 2px solid var(--border);
  margin-left: 0.9rem;
}

.steps li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.05rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.nutrition {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.nutrition div {
  text-align: center;
  background: var(--light);
  border-radius: var(--radius);
  padding: 1rem;
}

.nutrition strong {
  display: block;
  font-size: 1.4rem;
  color: var(--orange);
}

.recipe-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.recipe-gallery img {
  border-radius: 6px;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-msg {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.form-msg.ok {
  display: block;
  background: #e8f7ee;
  color: #17693a;
}

.form-msg.err {
  display: block;
  background: #fdecea;
  color: #a12622;
}

.dept-cards {
  display: grid;
  gap: 1rem;
}

.dept-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  background: var(--light);
}

.dept-card h4 {
  margin: 0 0 0.35rem;
  color: var(--blue);
}

.dept-card a {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--white);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--dark);
}

.faq details[open] summary {
  color: var(--orange);
  margin-bottom: 0.5rem;
}

/* ========== BLOG POST ========== */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 1.8rem;
  color: var(--blue);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose img {
  border-radius: var(--radius);
  margin: 1.25rem 0;
  width: 100%;
}

.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #1f1f1f;
  color: #ccc;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.site-footer a {
  color: #ccc;
}

.site-footer a:hover {
  color: var(--orange);
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 0.9rem;
  filter: brightness(0) invert(1);
}

.socials {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.socials a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.socials a[aria-label="Facebook"]:hover { background: #1877f2; border-color: #1877f2; }
.socials a[aria-label="Instagram"]:hover { background: #e4405f; border-color: #e4405f; }
.socials a[aria-label="LinkedIn"]:hover { background: #0a66c2; border-color: #0a66c2; }
.socials a[aria-label="TikTok"]:hover { background: #010101; border-color: #25f4ee; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.wa-float:hover {
  color: var(--white);
  transform: scale(1.05);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-band {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-band img {
    margin: 0 auto;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    padding-left: 0.75rem;
  }

  .has-sub.open > .sub-menu {
    display: block;
  }

  .stats,
  .process-grid,
  .history,
  .featured-recipe,
  .cards-3,
  .mission-vision,
  .product-detail,
  .contact-grid,
  .recipe-layout,
  .footer-grid,
  .related-products,
  .img-pair {
    grid-template-columns: 1fr;
  }

  .featured-recipe .media {
    min-height: 240px;
  }

  .stats {
    margin-top: 1.5rem;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .products-grid,
  .values-grid,
  .stats,
  .nutrition,
  .recipe-gallery {
    grid-template-columns: 1fr;
  }

  .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .team-card {
    flex-direction: column;
    text-align: center;
  }
}
