/* ============================================
   LECHONERÍA GORDO DE LA 27 - CSS MODERNO
   Bootstrap 5.3 Compatible
   ============================================ */

/* Variables de colores */
:root {
  --color-primary: #c41e3a;
  --color-primary-dark: #a01830;
  --color-secondary: #f4a460;
  --color-dark: #2c2c2c;
  --color-light: #f8f9fa;
  --color-gold: #d4a056;
  --color-green-whatsapp: #25d366;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ============================================
   TOP BAR - Información de contacto
   ============================================ */
.top-bar {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 8px 0;
  font-size: 14px;
}

.top-bar a {
  color: #fff;
  margin: 0 15px;
  transition: opacity 0.3s;
}

.top-bar a:hover {
  opacity: 0.8;
  color: #fff;
}

.top-bar i {
  margin-right: 6px;
}

/* ============================================
   NAVBAR - Navegación principal
   ============================================ */
.navbar-main {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-main .navbar-brand {
  font-family: 'Lato', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  padding: 15px 0;
}

.navbar-main .navbar-brand span {
  color: var(--color-gold);
}

.navbar-main .nav-link {
  color: var(--color-dark);
  font-weight: 600;
  padding: 20px 18px !important;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.navbar-main .navbar-toggler {
  border: 2px solid var(--color-primary);
  padding: 8px 12px;
  border-radius: 5px;
}

.navbar-main .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c41e3a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-pedir {
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 25px;
  padding: 10px 25px !important;
  margin-left: 15px;
  border: none;
  font-weight: 600;
}

.btn-pedir:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

/* ============================================
   HERO / CARRUSEL
   ============================================ */
.hero-carousel .carousel-item {
  height: 70vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-carousel .carousel-caption {
  bottom: 50%;
  transform: translateY(50%);
  text-align: center;
}

.hero-carousel .carousel-caption h2 {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 10px;
}

.hero-carousel .carousel-caption h2 span {
  color: var(--color-gold);
}

.hero-carousel .carousel-caption p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-carousel .btn-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.hero-carousel .btn-hero:hover {
  background: #fff;
  color: var(--color-primary);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.hero-carousel .carousel-control-prev {
  left: 30px;
}

.hero-carousel .carousel-control-next {
  right: 30px;
}

.hero-carousel .carousel-indicators {
  bottom: 30px;
}

.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: rgba(255,255,255,0.5);
  border: none;
}

.hero-carousel .carousel-indicators button.active {
  background-color: var(--color-primary);
}

/* ============================================
   SECCIÓN TÍTULOS
   ============================================ */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 15px;
}

.section-title h2 span {
  color: var(--color-primary);
}

.section-title p {
  color: #666;
  font-size: 1.1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--color-primary);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ============================================
   PRODUCTOS / MENÚ
   ============================================ */
.products-section {
  padding: 80px 0;
  background: var(--color-light);
}

.product-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card .product-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-card .badge-offer {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-primary);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.product-card .product-info {
  padding: 20px;
  text-align: center;
}

.product-card .product-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 15px;
}

.product-card .btn-order {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 600;
  border: none;
  width: 100%;
  transition: all 0.3s ease;
}

.product-card .btn-order:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

/* ============================================
   SECCIÓN HISTORIA / ABOUT
   ============================================ */
.about-section {
  padding: 80px 0;
  background: #fff;
}

.about-section .about-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-section .about-image img {
  width: 100%;
  height: auto;
}

.about-section .about-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.about-section .about-content h3 span {
  color: var(--color-primary);
}

.about-section .about-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.stats-box {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--color-light);
  border-radius: 10px;
  flex: 1;
}

.stat-item i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.stat-item h4 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
}

.stat-item p {
  color: #666;
  margin: 0;
  font-size: 14px;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.cta-section h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.cta-section .btn-cta {
  background: #fff;
  color: var(--color-primary);
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  transition: all 0.3s ease;
}

.cta-section .btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ============================================
   GALERÍA
   ============================================ */
.gallery-section {
  padding: 80px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 30px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(196, 30, 58, 0.9) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay h4 {
  color: #fff;
  font-weight: 600;
}

/* ============================================
   PAGE HEADER - Encabezados de páginas internas
   ============================================ */
.page-header {
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-header .breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
}

.page-header .breadcrumb-item a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.page-header .breadcrumb-item a:hover {
  color: var(--color-gold);
}

.page-header .breadcrumb-item.active {
  color: var(--color-gold);
  font-weight: 600;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   MAPA
   ============================================ */
.map-section {
  height: 400px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-dark);
  color: #fff;
  padding: 60px 0 20px;
}

.footer h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #fff;
}

.footer-brand {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.footer-brand span {
  color: var(--color-gold);
}

.footer p {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

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

.footer ul li {
  margin-bottom: 12px;
}

.footer ul li a {
  color: rgba(255,255,255,0.7);
  transition: all 0.3s;
}

.footer ul li a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.footer .contact-info i {
  color: var(--color-primary);
  margin-right: 10px;
  width: 20px;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  margin-right: 10px;
  transition: all 0.3s;
}

.footer .social-links a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
}

/* ============================================
   BOTONES FLOTANTES (WhatsApp y Teléfono)
   ============================================ */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: #fff;
}

.floating-btn.whatsapp {
  background: var(--color-green-whatsapp);
}

.floating-btn.whatsapp:hover {
  box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
}

.floating-btn.phone {
  background: var(--color-primary);
}

.floating-btn.phone:hover {
  box-shadow: 0 5px 25px rgba(196, 30, 58, 0.5);
}

/* Animación pulse para WhatsApp */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-btn.whatsapp {
  animation: pulse 2s infinite;
}

/* ============================================
   MODAL MEJORADO
   ============================================ */
.modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
}

.modal-header {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 20px 25px;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-title {
  font-weight: 700;
}

.modal-body {
  padding: 30px;
}

.modal-body .form-control {
  border-radius: 10px;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  transition: border-color 0.3s;
}

.modal-body .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.15);
}

.modal-body .btn-submit {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  border: none;
  width: 100%;
  margin-top: 15px;
}

.modal-body .btn-submit:hover {
  background: var(--color-primary-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .navbar-main .navbar-collapse {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 15px;
  }

  .navbar-main .nav-link {
    padding: 12px 15px !important;
    border-bottom: 1px solid #eee;
  }

  .btn-pedir {
    margin: 15px 0 0 0;
    display: block;
    text-align: center;
  }

  .hero-carousel .carousel-caption h2 {
    font-size: 2rem;
  }

  .hero-carousel .carousel-caption p {
    font-size: 1rem;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .stats-box {
    flex-wrap: wrap;
  }

  .stat-item {
    min-width: 45%;
  }
}

@media (max-width: 576px) {
  .top-bar {
    font-size: 12px;
    padding: 5px 0;
  }

  .top-bar a {
    display: block;
    margin: 3px 0;
    font-size: 11px;
  }

  .navbar-main .navbar-brand {
    font-size: 1.3rem;
  }

  .hero-carousel .carousel-item {
    height: 50vh;
    min-height: 350px;
  }

  .hero-carousel .carousel-caption {
    padding: 0 15px;
  }

  .hero-carousel .carousel-caption h2 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .hero-carousel .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .hero-carousel .btn-hero {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }

  .products-section {
    padding: 50px 0;
  }

  .product-card .product-image {
    height: 180px;
  }

  .product-card .product-info {
    padding: 15px;
  }

  .product-card .product-info h4 {
    font-size: 1rem;
  }

  .product-card .btn-order {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .about-section {
    padding: 50px 0;
  }

  .about-section .about-content h3 {
    font-size: 1.5rem;
  }

  .stats-box {
    gap: 10px;
  }

  .stat-item {
    padding: 15px 10px;
    min-width: 48%;
  }

  .stat-item i {
    font-size: 1.5rem;
  }

  .stat-item h4 {
    font-size: 1.5rem;
  }

  .stat-item p {
    font-size: 12px;
  }

  .cta-section {
    padding: 40px 0;
  }

  .cta-section h3 {
    font-size: 1.4rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .cta-section .btn-cta {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .gallery-section {
    padding: 50px 0;
  }

  .gallery-item img {
    height: 180px;
  }

  .map-section {
    height: 280px;
  }

  .footer {
    padding: 40px 0 15px;
  }

  .footer h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .footer-brand {
    font-size: 1.4rem;
  }

  .floating-buttons {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  /* Tarjeta SEO responsive */
  .card .display-6 {
    font-size: 1.5rem !important;
  }

  .card .lead {
    font-size: 0.95rem !important;
  }

  .card .badge {
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
  }

  /* Page header responsive */
  .page-header {
    padding: 60px 0 !important;
  }

  .page-header h1 {
    font-size: 1.8rem !important;
  }

  /* Modal responsive */
  .modal-body {
    padding: 20px;
  }

  /* Accordion FAQs */
  .accordion-button {
    font-size: 0.9rem;
    padding: 12px 15px;
  }

  .accordion-body {
    font-size: 0.9rem;
  }

  /* Contact cards */
  .contact-card {
    padding: 20px 15px;
    margin-bottom: 15px;
  }
}

/* ============================================
   UTILIDADES
   ============================================ */
.bg-light-custom {
  background: var(--color-light);
}

.text-primary-custom {
  color: var(--color-primary) !important;
}

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

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

/* ============================================
   TEMA NAVIDEÑO - MOVIDO A christmas.css
   ============================================
   Desactivado: 02-02-2026
   Los estilos navideños fueron movidos a css/christmas.css

   Para reactivar en proxima navidad:
   1. Agregar en cada HTML (en el <head>):
      <link href="css/christmas.css" rel="stylesheet">
   2. Agregar el HTML navideño (ver CAMBIOS-NAVIDAD.txt)
   ============================================ */
