:root {
  --rojo: #c0392b;
  --rojo-claro: #e74c3c;
  --naranja: #e67e22;
  --naranja-claro: #f39c12;
  --amarillo: #f1c40f;
  --dark: #1a1a2e;
  --text: #444444;
  --light-bg: #fff8f0;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--light-bg);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gray-200); }
::-webkit-scrollbar-thumb { background: var(--rojo); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--rojo-claro); }

/* ========== NAVBAR ========== */
.navbar-pollo {
  background: linear-gradient(135deg, var(--rojo) 0%, var(--naranja) 100%);
  padding: 14px 0;
  transition: var(--transition);
  box-shadow: 0 2px 15px rgba(192,57,43,0.3);
}
.navbar-pollo.navbar-shrink {
  padding: 6px 0;
}
.navbar-pollo .navbar-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--amarillo);
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.navbar-pollo .navbar-brand i {
  margin-right: 8px;
  color: var(--amarillo);
}
.navbar-pollo .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 8px 16px !important;
  transition: var(--transition);
  border-radius: 6px;
}
.navbar-pollo .nav-link:hover,
.navbar-pollo .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,0.15);
}

/* ========== HERO ========== */
.hero-pollo {
  position: relative;
  width: 100%;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero-pollo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 100%);
}
.hero-pollo .hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.hero-pollo h1 {
  font-size: 4.2rem;
  line-height: 1.1;
  text-shadow: 3px 3px 12px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease;
}
.hero-pollo p {
  font-size: 1.2rem;
  opacity: 0.95;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  animation: fadeInUp 1s ease 0.2s both;
}
.hero-pollo .btn {
  animation: fadeInUp 1s ease 0.4s both;
}

/* ========== SECTION TITLE ========== */
.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 1.2rem;
  color: var(--dark);
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--rojo), var(--naranja));
  margin-top: 10px;
  border-radius: 2px;
}
.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}
.section-subtitle {
  font-size: 1.05rem;
  color: #777;
  margin-bottom: 3rem;
}

/* ========== PROCESS TIMELINE ========== */
.process-timeline {
  position: relative;
  padding: 20px 0;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rojo), var(--naranja), var(--amarillo));
  transform: translateX(-50%);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  opacity: 0;
  transition: var(--transition);
}
.timeline-item.visible {
  opacity: 1;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  animation: fadeInLeft 0.8s ease forwards;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  animation: fadeInRight 0.8s ease forwards;
}
.timeline-item .timeline-icon {
  position: absolute;
  top: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rojo), var(--naranja));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(192,57,43,0.3);
  z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-icon {
  right: -25px;
}
.timeline-item:nth-child(even) .timeline-icon {
  left: -25px;
}
.timeline-item .timeline-content {
  background: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--rojo);
  transition: var(--transition);
}
.timeline-item .timeline-content:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.timeline-item .timeline-content h5 {
  color: var(--rojo);
  font-size: 1.1rem;
}

/* ========== LINEA CARD ========== */
.linea-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--rojo), var(--naranja), var(--amarillo)) 1;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.linea-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.linea-card .img-wrapper {
  position: relative;
  overflow: hidden;
}
.linea-card .img-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}
.linea-card:hover .img-wrapper img {
  transform: scale(1.08);
}
.linea-card .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,0.6), rgba(230,126,34,0.4));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.linea-card:hover .img-overlay {
  opacity: 1;
}
.linea-card .img-overlay i {
  color: var(--white);
  font-size: 2.2rem;
}
.linea-card .card-body {
  padding: 1.5rem;
}

/* ========== PRODUCT GRID ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-card .product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--naranja), var(--naranja-claro));
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-card .card-body {
  padding: 1.2rem;
}

/* ========== QUALITY CARD ========== */
.quality-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 5px solid var(--rojo);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.quality-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.quality-card .quality-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.quality-card:nth-child(2) { border-left-color: var(--naranja); }
.quality-card:nth-child(3) { border-left-color: var(--amarillo); }

/* ========== BUTTONS ========== */
.btn-rojo {
  background: linear-gradient(135deg, var(--rojo), var(--rojo-claro));
  border: none;
  color: var(--white);
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(192,57,43,0.3);
}
.btn-rojo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192,57,43,0.4);
  color: var(--white);
}
.btn-naranja {
  background: linear-gradient(135deg, var(--naranja), var(--naranja-claro));
  border: none;
  color: var(--white);
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(230,126,34,0.3);
}
.btn-naranja:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230,126,34,0.4);
  color: var(--white);
}

/* ========== COUNTER SECTION ========== */
.counter-section {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  background-attachment: fixed;
  padding: 80px 0;
  color: var(--white);
}
.counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,0.15), rgba(230,126,34,0.1));
}
.counter-item .counter-number {
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--amarillo);
  line-height: 1;
}
.counter-item .counter-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-top: 6px;
}

/* ========== CART SUMMARY ========== */
.cart-summary {
  background: linear-gradient(135deg, var(--light-bg), #fff);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
}
.cart-summary .summary-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.cart-summary .summary-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}
.cart-summary .summary-value.precio {
  color: var(--naranja);
}
.cart-summary .summary-value.subtotal {
  color: var(--rojo);
  font-size: 1.8rem;
}
.cart-summary .cantidad-box .input-group {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 8px;
  overflow: hidden;
}
.cart-summary .cantidad-box .input-group .btn {
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--dark);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 8px 16px;
  transition: var(--transition);
}
.cart-summary .cantidad-box .input-group .btn:hover {
  background: var(--rojo);
  color: var(--white);
  border-color: var(--rojo);
}
.cart-summary .cantidad-box .input-group input {
  border: 2px solid var(--gray-300);
  border-left: none;
  border-right: none;
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}
@media (max-width: 768px) {
  .cart-summary .summary-value {
    font-size: 1.2rem;
  }
  .cart-summary .summary-value.subtotal {
    font-size: 1.4rem;
  }
}

/* ========== CART CARD ========== */
.cart-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--rojo), var(--naranja), var(--amarillo)) 1;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.cart-card:hover {
  box-shadow: var(--shadow-hover);
}
.cart-card .cart-card-header {
  border-bottom: 2px solid var(--gray-200);
  padding: 1.2rem 1.5rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--light-bg), var(--white));
}
.cart-card .cart-card-body {
  padding: 1.5rem;
}

/* ========== CONTACT FORM ========== */
.contact-form .form-control {
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}
.contact-form .form-control:focus {
  border-color: var(--rojo);
  box-shadow: 0 0 0 4px rgba(192,57,43,0.1);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form .form-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== FOOTER ========== */
.footer-pollo {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
}
.footer-pollo h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}
.footer-pollo h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--rojo), var(--naranja));
  border-radius: 2px;
}
.footer-pollo a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: var(--transition);
}
.footer-pollo a:hover {
  color: var(--amarillo);
  padding-left: 4px;
}
.footer-pollo .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  margin-right: 8px;
  transition: var(--transition);
  font-size: 1rem;
}
.footer-pollo .social-icons a:hover {
  background: linear-gradient(135deg, var(--rojo), var(--naranja));
  color: var(--white);
  padding-left: 0;
}
.footer-pollo .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 30px;
  font-size: 0.9rem;
  text-align: center;
}

/* ========== GALLERY GRID ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-grid .gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-grid .gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: var(--transition);
}
.gallery-grid .gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-grid .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,0.7), rgba(230,126,34,0.5));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-grid .gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-grid .gallery-overlay i {
  color: var(--white);
  font-size: 2rem;
  transform: scale(0);
  transition: var(--transition);
}
.gallery-grid .gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* ========== PAGE HEADER ========== */
.page-header-pollo {
  position: relative;
  padding: 120px 0 60px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.page-header-pollo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,0.85), rgba(230,126,34,0.7));
}
.page-header-pollo h1 {
  position: relative;
  z-index: 2;
  font-size: 3rem;
}
.page-header-pollo .breadcrumb {
  position: relative;
  z-index: 2;
  background: transparent;
  margin-bottom: 0;
}
.page-header-pollo .breadcrumb-item,
.page-header-pollo .breadcrumb-item a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.page-header-pollo .breadcrumb-item.active {
  color: var(--white);
}
.page-header-pollo .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* ========== VALUE BADGE ========== */
.value-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 4px;
}
.value-badge.badge-rojo {
  background: var(--rojo);
  color: var(--white);
}
.value-badge.badge-naranja {
  background: var(--naranja);
  color: var(--white);
}
.value-badge.badge-amarillo {
  background: var(--amarillo);
  color: var(--dark);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes counterAnim {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes progressAnim {
  from { width: 0; }
}

.fade-in-up { animation: fadeInUp 0.8s ease both; }
.fade-in-left { animation: fadeInLeft 0.8s ease both; }
.fade-in-right { animation: fadeInRight 0.8s ease both; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== TIMELINE RESPONSIVE ========== */
@media (max-width: 768px) {
  .process-timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 20px 20px 20px 60px;
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-icon,
  .timeline-item:nth-child(even) .timeline-icon {
    left: 0;
    right: auto;
  }
  .hero-pollo h1 { font-size: 2.5rem; }
  .section-title { font-size: 1.8rem; }
  .counter-item .counter-number { font-size: 2.5rem; }
  .page-header-pollo h1 { font-size: 2rem; }
}
