/* ── Reset básico ───────────────────────────────────── */
:root {
  font-size: 100%;
  font-family: system-ui, sans-serif;
  scroll-behavior: smooth;

  --color-main      : #CE4D0D;
  --color-secondary : #f9ff00;
  --color-tertiary  : white;
}

[hidden] { display: none !important; }

*, *::before, *::after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  vertical-align: baseline;
}
*::before, *::after { display: block; }

img, picture, video, iframe, figure, canvas {
  max-width: 100%;
  display: block;
  width: 100%;
  height: initial;
  object-fit: cover;
  object-position: center center;
}

a {
  display: block;
  text-decoration: none;
  color: inherit;
  font: inherit;
}
p a { display: inline; }

li, menu, summary { list-style-type: none; }
ol { counter-reset: revert; }

h1, h2, h3, h4, h5, h6, p, span, a, strong,
blockquote, i, b, u, em, pre, code, mark, del {
  font: inherit;
  line-height: 1em;
  text-decoration: none;
  color: inherit;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

mark { background-color: transparent; }
blockquote::before, blockquote::after,
q::before, q::after { content: none; }

form, input, textarea, select, button, label {
  font: inherit;
  hyphens: auto;
  background-color: transparent;
  color: inherit;
  display: block;
  appearance: none;
}
fieldset { border: none; }
::placeholder { color: unset; }
button, label { cursor: pointer; }

table, tr, td, th, tbody, thead, tfoot {
  border-collapse: collapse;
  border-spacing: 0;
  font: inherit;
}

svg {
  width: 100%;
  height: initial;
  display: block;
  fill: currentColor;
}

body {
  color: var(--color-tertiary);
  hyphens: auto;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Outfit", sans-serif;
  background-color: #ececec;
}


/* ── Header ─────────────────────────────────────────── */
.Header-container {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: var(--color-main);
  color: #444;
}

.Header-logo img {
  width: 200px;
  height: auto;
}

.Header-nav {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.Header-menu-toggle {
  display: none;
}

.Header-social-ul {
  display: flex;
  align-items: center;
}

.Header-social-li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  color: white;
  transition: color 0.2s ease;
}

.Header-social-li a:hover {
  color: var(--color-secondary);
}

.Header-social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.Header-nav-ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
}

.Header-nav-li {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  color: white;
}

.Header-nav-li a {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
}

.Header-nav-li a:hover {
  color: var(--color-secondary);
}


/* ── Carousel ───────────────────────────────────────── */
.Carousel {
  position: relative;
  width: 100%;
  height: 80vh;
  height: 80svh;
  overflow: hidden;
}

.Carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.Carousel-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.Carousel-slide picture {
  width: 100%;
  height: 100%;
  display: block;
}

.Carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.Carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  width: 100%;
}

.Carousel-h1,
.Carousel-h2 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
}

.Carousel-p {
  font-size: 1.1rem;
  font-weight: 400;
  color: white;
}

.Carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.2);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.Carousel-btn:hover {
  background-color: rgba(255,255,255,0.4);
}

.Carousel-btn--prev { left: 1.5rem; }
.Carousel-btn--next { right: 1.5rem; }

.Carousel-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.Carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.Carousel-dot.active {
  background-color: white;
}


/* ── Info ───────────────────────────────────────────── */
.Frushpulp-info {
  width: 100%;
  padding: 5rem 2rem;
  display: flex;
  justify-content: center;
}

.Frushpulp-info-div {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.Frushpulp-info-h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-main);
}

.Frushpulp-info-p {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  color: #444;
}


/* ── Footer ─────────────────────────────────────────── */
.footer-container {
  width: 100%;
  padding: 2rem 2rem 1.5rem;
  background-color: var(--color-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-container-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-container-div-p {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
  transition: color 0.2s ease;
}
.footer-legal-links a:hover { color: white; }


/* ── Dropdown Menú ───────────────────────────────────── */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform-origin: top center;
  margin-top: 10px;
  z-index: 100;
}

.dropdown-menu li { width: 100%; }

.dropdown-menu li a {
  padding: 0.8rem 1.5rem;
  display: block;
  color: #444;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}

.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.has-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Hover en desktop para el dropdown */
@media (min-width: 1401px) {
  .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
  }
  .has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }
}

/* Colores de marca en el dropdown */
.dropdown-menu a[href="frushfresh.html"]:hover   { background: rgba(15,153,217,0.08) !important; color: #0f99d9 !important; }
.dropdown-menu a[href="frushsoda.html"]:hover    { background: rgba(143,0,0,0.08)    !important; color: #8f0000 !important; }
.dropdown-menu a[href="frushsyrup.html"]:hover   { background: rgba(78,35,20,0.08)   !important; color: #4E2314 !important; }
.dropdown-menu a[href="frushpulp.html"]:hover    { background: rgba(206,77,13,0.08)  !important; color: #CE4D0D !important; }
.dropdown-menu a[href="frushtea.html"]:hover     { background: rgba(59,114,2,0.08)   !important; color: #3B7202 !important; }
.dropdown-menu a[href="frushicecream.html"]:hover { background: rgba(28,120,239,0.08) !important; color: #1C78EF !important; }


/* ── Responsive Tablet (≤ 1400px) ───────────────────── */
@media (max-width: 1400px) {

  .Header-container {
    height: auto;
    padding: 0.75rem 1rem;
  }

  .Header-nav {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto auto;
  }

  .Header-logo {
    grid-column: 2;
    justify-self: center;
    display: flex;
  }

  .Header-logo img { width: 140px; }

  .Header-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    justify-self: end;
    background: none;
    border: none;
  }

  .Header-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
  }

  .Header-nav-ul {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    width: 100%;
    align-items: flex-start;
  }

  .Header-nav-ul.open {
    max-height: 1000px;
    padding: 0.75rem 0;
  }

  .Header-nav-li {
    width: 100%;
    justify-content: flex-start;
  }

  .Header-nav-li a {
    font-size: 1.1rem;
    padding: 0.65rem 0;
    width: 100%;
  }

  .Header-social-ul {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
  }

  .Header-social-ul.open {
    max-height: 100px;
    opacity: 1;
    padding: 1.5rem 0 0.5rem;
  }

  /* Dropdown override en móvil/tablet */
  .has-dropdown { width: 100%; }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
    background: transparent;
    border-radius: 0;
    transition: max-height 0.4s ease;
  }

  .dropdown-menu li a {
    padding: 0.6rem 0 0.6rem 1.5rem;
    color: inherit;
    font-size: 1rem;
  }

  .has-dropdown.open .dropdown-menu {
    max-height: 350px;
    transform: none;
  }

  .Carousel-h1,
  .Carousel-h2 { font-size: 2.5rem; }
}


/* ── Responsive Móvil (≤ 768px) ─────────────────────── */
@media (max-width: 768px) {
  .Carousel { height: 450px; }

  /* Ancla al top para que las imágenes publicitarias (2.22:1)
     no pierdan la parte superior al recortarse en portrait */
  .Carousel-img { object-position: center top; }

  .Carousel-h1,
  .Carousel-h2 { font-size: 1.8rem; }

  .Carousel-p { font-size: 0.95rem; }

  .Carousel-btn { width: 36px; height: 36px; font-size: 1.1rem; }

  .Carousel-overlay { padding: 1.5rem; }

  .Frushpulp-info { padding: 3rem 1.25rem; }

  .Frushpulp-info-h2 { font-size: 1.6rem; }
}

.dropdown-toggle:focus,
.dropdown-toggle:active { outline: none !important; border: none !important; }

.has-dropdown:focus,
.has-dropdown:active { outline: none !important; border: none !important; }