/* Google Fonts */
/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CSS Custom Properties */
:root {
  --color-yellow: #eebe1f;
  --color-orange: #f37121;
  --color-white: #ffffff;
  --color-dark: #222222;
  --color-gray-light: #f5f5f5;
  --color-gray-medium: #e0e0e0;
  --color-text: #333333;
  --font-heading: 'Roboto', Arial, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --max-width: 1200px;
  --section-padding: 4rem 1.5rem;
}

/* CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

a {
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-dark);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 100;
}

.header__container {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.header__logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-orange);
  text-decoration: none;
}

.header__logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* Nav Toggle (checkbox hack for CSS-only hamburger) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: block;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
  color: var(--color-dark);
}

/* Nav */
.nav {
  display: none;
}

.nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: 1rem;
  color: var(--color-dark);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--color-orange);
}

.nav__link--active {
  color: var(--color-orange);
}

/* Dropdown submenu */
.nav__submenu {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: min(200px, 100%);
  z-index: 200;
}

.nav__item--dropdown:hover .nav__submenu,
.nav__item--dropdown:focus-within .nav__submenu {
  display: block;
}

.nav__submenu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-dark);
  font-size: 0.9rem;
  text-decoration: none;
}

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

/* Mobile nav open state */
.nav-toggle:checked ~ .nav {
  display: block;
  position: absolute;
  top: 60px;
  right: 0;
  width: auto;
  min-width: 200px;
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 0 0 0 8px;
}

.nav-toggle:checked ~ .nav .nav__list {
  flex-direction: column;
}

.nav-toggle:checked ~ .nav .nav__link {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.nav-toggle:checked ~ .nav .nav__submenu {
  position: static;
  box-shadow: none;
  min-width: auto;
}

.nav-toggle:checked ~ .nav .nav__submenu li a {
  padding: 0.4rem 1.25rem 0.4rem 2rem;
  font-size: 0.85rem;
}

/* Section */
.section {
  padding: var(--section-padding);
}

.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-dark);
  padding-left: 1rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-yellow);
}

/* Placeholder Image */
.placeholder-img {
  aspect-ratio: 4 / 3;
  background-color: var(--color-gray-medium);
  border: 2px dashed #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  font-style: italic;
  font-size: 0.875rem;
  text-align: center;
  overflow: hidden;
}

.placeholder-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card */
.card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.card__image {
  aspect-ratio: 4 / 3;
  background-color: var(--color-gray-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__content {
  padding: 1.5rem;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.card__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Two-Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Vereda List */
.vereda-list {
  max-height: 400px;
  overflow-y: auto;
}

.vereda-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.35rem 1.5rem;
  padding: 0;
}

.vereda-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.vereda-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
}

/* Especiales */
.especiales-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 800px;
}

.especiales-heading {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-orange);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.especiales-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-orange);
}

.page-banner {
  width: 100%;
  overflow: hidden;
}

.egg-guide-image {
  width: 100%;
  text-align: center;
}

.egg-guide-image img {
  display: inline-block;
  max-width: 700px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.historia-image {
  width: 100%;
  border-radius: 8px;
}

.historia-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.vereda-image {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.vereda-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.page-banner .placeholder-img {
  width: 100%;
  aspect-ratio: auto;
  max-height: none;
  border: none;
  background: none;
}

.page-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .page-banner img {
    max-height: none;
  }
}

/* Button */
.btn {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: #c55a15;
}

/* Form */
.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid #cccccc;
  padding: 0.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

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

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

/* Contact Info & Form */
.contact-info {
  padding: 1rem 0;
}

.contact-info p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-form {
  padding: 1rem 0;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 2rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-orange);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--color-yellow);
  transform: scale(1.15);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

/* Social links in footer */
.footer .social-links {
  justify-content: center;
  margin-top: 1rem;
}

.footer .social-link {
  color: var(--color-white);
}

.footer .social-link:hover {
  color: var(--color-yellow);
}

/* Header social */
.header__social {
  display: none;
}

/* Nav social (mobile menu) */
.nav__social {
  display: none;
}

.section__social {
  margin-top: 2rem;
  justify-content: flex-start;
}

.contact-social__title {
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-dark);
}

.carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  position: relative;
}

.carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.carousel__slide picture {
  display: block;
  width: 100%;
}

/* Navigation buttons */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  color: var(--color-orange);
  border: none;
  cursor: pointer;
  font-size: 2.5rem;
  padding: 0.25rem;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.carousel__btn:hover {
  transform: translateY(-50%) scale(1.2);
  opacity: 0.8;
}

.carousel__btn--prev {
  left: 1rem;
}

.carousel__btn--next {
  right: 1rem;
}

/* Dots */
.carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel__dot:hover,
.carousel__dot:focus-visible {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
  outline: none;
}

.carousel__dot--active {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
}

/* Carousel Overlay */
.carousel__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.carousel__overlay-content {
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  pointer-events: auto;
}

.carousel__overlay-title {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-white);
  padding-left: 1rem;
  margin-bottom: 0;
  line-height: 1.1;
}

.carousel__overlay-subtitle {
  font-size: 1.125rem;
  color: var(--color-white);
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.carousel__overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 1rem;
}

.carousel__overlay-actions .btn {
  background: var(--color-yellow);
  color: var(--color-dark);
}

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

/* Carousel Overlay — Center variant (slide 1) */
.carousel__overlay--center {
  justify-content: center;
}

.carousel__overlay-content--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.carousel__overlay-title--center {
  padding-left: 0;
  margin-bottom: 0;
  font-size: 3.5rem;
  line-height: 1.1;
}

.carousel__overlay-title--center strong {
  font-weight: 800;
}

.carousel__overlay-subtitle--center {
  padding-left: 0;
  font-size: 1.8rem;
  margin-bottom: 0;
  line-height: 1.1;
}

.carousel__overlay-subtitle--center strong {
  font-weight: 800;
}

.carousel__overlay-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  margin-top: 0.75rem;
}

.carousel__overlay-social .social-link {
  color: var(--color-white);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel__overlay-social .social-link svg {
  width: 28px;
  height: 28px;
}

.carousel__overlay-handle {
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.2rem;
  margin-left: 0.15rem;
  font-family: var(--font-body);
}

/* Overlay appear animation */
.carousel__slide .carousel__overlay-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.carousel__slide--active .carousel__overlay-content {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CTA HERO ===== */
.cta-hero {
  width: 100%;
  background-image: url('img/brown-hens-farm.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-hero__overlay {
  background: rgba(0, 0, 0, 0.55);
  width: 100%;
}

.cta-hero__content {
  text-align: left;
  color: var(--color-white);
  padding: 2.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.cta-hero__title {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--color-white);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.cta-hero__text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  padding-left: 1rem;
}

.cta-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  padding-left: 1rem;
}

.cta-hero__btn {
  min-width: clamp(160px, 80vw, 220px);
  border: 2px solid transparent;
}

.cta-hero__btn--secondary {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.cta-hero__btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* ===== RESPONSIVE: TABLET (min-width: 768px) ===== */
@media (min-width: 768px) {
  .nav-toggle-label {
    display: none;
  }

  .nav {
    display: block;
  }

  .nav__list {
    flex-direction: row;
    gap: 0;
  }

  .nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
  }

  .nav-toggle:checked ~ .nav {
    position: static;
    box-shadow: none;
    display: block;
  }

  .header__social {
    display: flex;
  }

  .nav__social {
    display: none;
  }

  .especiales-heading {
    font-size: 1.75rem;
  }

  .two-column {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section__title {
    font-size: 2.5rem;
  }

  .cta-hero__title {
    font-size: 2.5rem;
  }

  .cta-hero__actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  /* Carousel overlay - tablet+ */
  .carousel__overlay-title {
    font-size: 3.5rem;
  }

  .carousel__overlay-actions {
    flex-direction: row;
  }
}

/* ===== RESPONSIVE: DESKTOP (min-width: 1024px) ===== */
@media (min-width: 1024px) {
  /* Carousel overlay desktop */
  .carousel__overlay-title {
    font-size: 4.5rem;
  }

  .carousel__overlay-content {
    padding: 3rem 2rem;
  }

  /* Desktop layout */
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 5rem 2rem;
  }

  .section__title {
    font-size: 2.5rem;
  }

  .cta-hero__title {
    font-size: 2.75rem;
  }
}

/* ===== RESPONSIVE: MOBILE OVERLAY (max-width: 767px) ===== */
@media (max-width: 767px) {
  .nav__social {
    display: flex;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.5rem 1rem 0.75rem;
    border-top: 1px solid var(--color-gray-medium);
    margin-top: 0.25rem;
  }

  .nav__social .social-link {
    color: var(--color-orange);
  }

  .nav__social .social-link:hover {
    color: var(--color-yellow);
  }

  .carousel__btn {
    display: none;
  }

  .carousel__slide img {
    aspect-ratio: 3 / 2;
  }

  .cta-hero__content {
    text-align: center;
    padding: 2rem 1rem;
  }

  .cta-hero__title {
    font-size: 1.5rem;
    padding-left: 0;
  }

  .cta-hero__text {
    padding-left: 0;
    max-width: 100%;
    font-size: 0.95rem;
  }

  .cta-hero__actions {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 0;
  }

  .cta-hero__btn {
    min-width: clamp(140px, 70vw, 180px);
  }

  .carousel__overlay-title {
    font-size: 1.1rem;
    padding-left: 0;
  }

  .carousel__overlay-subtitle {
    font-size: 0.75rem;
    padding-left: 0;
    margin-bottom: 0.75rem;
  }

  .carousel__overlay-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding-left: 0;
  }

  .carousel__overlay-actions .btn {
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
  }

  .carousel__overlay-content {
    padding: 1rem;
    max-width: 100%;
    text-align: center;
  }

  /* Slide 1 center variant — mobile */
  .carousel__overlay-title--center {
    font-size: 1.8rem;
  }

  .carousel__overlay-subtitle--center {
    font-size: 1rem;
  }

  .carousel__overlay-social {
    gap: 0;
    margin-top: 0.25rem;
  }

  .carousel__overlay-social .social-link {
    width: 26px;
    height: 26px;
  }

  .carousel__overlay-social .social-link svg {
    width: 22px;
    height: 22px;
  }

  .carousel__overlay-handle {
    font-size: 0.85rem;
  }
}

/* ===== RESPONSIVE: SMALL MOBILE (max-width: 479px) ===== */
@media (max-width: 479px) {
  .carousel__slide img {
    aspect-ratio: 4 / 3;
  }

  .carousel__overlay-title {
    font-size: 0.95rem;
  }

  .carousel__overlay-subtitle {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }

  .carousel__overlay-actions .btn {
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
  }

  .carousel__overlay-content {
    padding: 0.75rem;
    max-width: 100%;
  }

  /* Vereda list two columns on very small screens */
  .vereda-list ul {
    grid-template-columns: 1fr 1fr;
  }
}
