/* ============================================
   El Bodegón de Estepa - Estilos personalizados
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lato:wght@300;400;700;900&display=swap');

:root {
  --burgundy: #722F37;
  --burgundy-dark: #5A252C;
  --burgundy-light: #8B3A42;
  --gold: #C9A96E;
  --gold-light: #D4B87A;
  --gold-dark: #B8944F;
  --cream: #F5F0EB;
  --dark: #1C1C1C;
  --dark-soft: #2A2A2A;
  --white: #FFFFFF;
  --gray-light: #F8F8F8;
  --gray: #6c757d;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Top Bar ---- */
.top-bar {
  background-color: var(--dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.top-bar a {
  color: var(--gold);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 400;
}

.top-bar a:hover {
  color: var(--gold-light);
}

.top-bar .phone-info {
  color: rgba(255,255,255,0.8);
}

.top-bar .phone-info i {
  color: var(--gold);
  margin-right: 5px;
}

/* ---- Navbar ---- */
.navbar {
  background-color: var(--white);
  padding: 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
  padding: 8px 0;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--dark) !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 20px 15px !important;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  height: 2px;
  background-color: var(--burgundy);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link:hover {
  color: var(--burgundy) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 0;
  border-top: 3px solid var(--burgundy);
  padding: 10px 0;
  min-width: 220px;
}

.dropdown-item {
  font-size: 0.9rem;
  padding: 8px 20px;
  color: var(--dark);
  font-weight: 400;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--cream);
  color: var(--burgundy);
  padding-left: 25px;
}

/* ---- Hero Section ---- */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section .carousel-item {
  min-height: 85vh;
}

.hero-slide {
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(28,28,28,0.75) 0%, rgba(114,47,55,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 650px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.7;
}

.btn-hero {
  background-color: var(--gold);
  color: var(--dark);
  border: none;
  padding: 14px 40px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 0;
  transition: var(--transition);
}

.btn-hero:hover {
  background-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(201,169,110,0.4);
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background-color: transparent;
  opacity: 0.6;
}

.carousel-indicators .active {
  background-color: var(--gold);
  opacity: 1;
}

/* ---- Section Titles ---- */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--gold);
  margin: 15px auto 0;
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Categories Section ---- */
.categories-section {
  padding: 80px 0;
  background-color: var(--white);
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 350px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
  transition: var(--transition);
}

.category-card:hover .overlay {
  background: linear-gradient(transparent, rgba(114,47,55,0.9));
}

.category-card .overlay h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.category-card .overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 15px;
}

.btn-category {
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 25px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  border-radius: 0;
  transition: var(--transition);
  display: inline-block;
}

.btn-category:hover {
  background-color: var(--gold);
  color: var(--dark);
}

/* ---- Products Section ---- */
.products-section {
  padding: 80px 0;
  background-color: var(--cream);
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 30px;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card .product-img {
  position: relative;
  overflow: hidden;
  height: 280px;
  background-color: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-card .product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--burgundy);
  color: var(--white);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card .product-info {
  padding: 20px;
  text-align: center;
}

.product-card .product-info .product-category {
  color: var(--gold-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card .product-info h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.product-card .btn-view {
  background-color: transparent;
  color: var(--burgundy);
  border: 2px solid var(--burgundy);
  padding: 8px 30px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  border-radius: 0;
  transition: var(--transition);
}

.product-card .btn-view:hover {
  background-color: var(--burgundy);
  color: var(--white);
}

/* ---- History Section ---- */
.history-section {
  padding: 100px 0;
  background-color: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.history-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(201,169,110,0.1);
  border-radius: 50%;
}

.history-section h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: var(--white);
}

.history-section h4 {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 25px;
  font-size: 1.3rem;
}

.history-section p {
  opacity: 0.85;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.history-section .history-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.history-section .history-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ---- Visit Section ---- */
.visit-section {
  padding: 100px 0;
  background-image: url('https://images.unsplash.com/photo-1506377247377-2a5b3b417ebb?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  text-align: center;
  color: var(--white);
}

.visit-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(114,47,55,0.85);
}

.visit-section .container {
  position: relative;
  z-index: 2;
}

.visit-section h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.visit-section p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 35px;
  opacity: 0.95;
  line-height: 1.7;
}

.btn-visit {
  background-color: var(--gold);
  color: var(--dark);
  border: none;
  padding: 15px 45px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 0;
  transition: var(--transition);
}

.btn-visit:hover {
  background-color: var(--white);
  color: var(--burgundy);
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

/* ---- Features Section ---- */
.features-section {
  padding: 70px 0;
  background-color: var(--white);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item .feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  background-color: var(--burgundy);
}

.feature-item .feature-icon i {
  font-size: 1.5rem;
  color: var(--burgundy);
  transition: var(--transition);
}

.feature-item:hover .feature-icon i {
  color: var(--white);
}

.feature-item h5 {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-item p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer h5 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-family: 'Playfair Display', serif;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer a {
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer .footer-brand {
  display: block;
  margin-bottom: 15px;
}

.footer .footer-brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer .contact-info i {
  color: var(--gold);
  margin-right: 10px;
  width: 18px;
  text-align: center;
}

.footer .contact-info p {
  margin-bottom: 12px;
}

.footer .social-links {
  margin-top: 20px;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  margin-right: 10px;
  font-size: 1rem;
  transition: var(--transition);
}

.footer .social-links a:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  padding-left: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.85rem;
}

.footer-bottom a {
  display: inline;
  margin: 0 10px;
}

/* ---- Catalog Page ---- */
.page-header {
  background-color: var(--dark);
  padding: 120px 0 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1474722883778-792e7990302f?w=1920&q=80');
  background-size: cover;
  background-position: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28,28,28,0.8);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-header .breadcrumb {
  justify-content: center;
  background: none;
  margin-bottom: 0;
}

.page-header .breadcrumb-item a {
  color: var(--gold);
}

.page-header .breadcrumb-item.active {
  color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* ---- Filter Sidebar ---- */
.catalog-section {
  padding: 60px 0 80px;
  background-color: var(--cream);
}

.filter-card {
  background: var(--white);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.filter-card h5 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.filter-card .filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-card .filter-list li {
  margin-bottom: 8px;
}

.filter-card .filter-list li a {
  color: var(--dark);
  font-size: 0.9rem;
  padding: 6px 0;
  display: block;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.filter-card .filter-list li a:hover,
.filter-card .filter-list li a.active {
  color: var(--burgundy);
  padding-left: 8px;
  font-weight: 700;
}

.filter-card .filter-list li a .badge {
  background-color: var(--cream);
  color: var(--gray);
  font-weight: 400;
  font-size: 0.75rem;
}

/* ---- Contact Page ---- */
.contact-section {
  padding: 60px 0 80px;
}

.contact-card {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-card i {
  font-size: 2rem;
  color: var(--burgundy);
  margin-bottom: 15px;
}

.contact-card h5 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form .form-control {
  border-radius: 0;
  border: 1px solid #ddd;
  padding: 12px 15px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 0.2rem rgba(114,47,55,0.15);
}

.btn-submit {
  background-color: var(--burgundy);
  color: var(--white);
  border: none;
  padding: 14px 45px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 0;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--burgundy-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(114,47,55,0.3);
}

/* ---- Visits Page ---- */
.visits-section {
  padding: 60px 0 80px;
}

.visit-info-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visit-info-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.visit-info-card .card-body {
  padding: 30px;
}

.visit-schedule {
  background: var(--burgundy);
  color: var(--white);
  padding: 40px;
  border-radius: 8px;
}

.visit-schedule h4 {
  color: var(--gold);
  margin-bottom: 20px;
}

.visit-schedule .schedule-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.95rem;
}

/* ---- Scroll to Top Button ---- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--burgundy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 9999;
  box-shadow: 0 3px 15px rgba(114,47,55,0.4);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--gold);
  color: var(--dark);
  transform: translateY(-3px);
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: 10px 15px !important;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-slide {
    min-height: 70vh;
  }

  .hero-section .carousel-item {
    min-height: 70vh;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .history-section h2 {
    font-size: 2.2rem;
  }

  .visit-section h2 {
    font-size: 2.2rem;
  }

  .category-card {
    height: 280px;
  }

  .visit-section {
    background-attachment: scroll;
  }
}

@media (max-width: 767.98px) {
  .top-bar {
    text-align: center;
  }

  .top-bar .text-end {
    text-align: center !important;
    margin-top: 5px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-slide {
    min-height: 60vh;
  }

  .hero-section .carousel-item {
    min-height: 60vh;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .category-card {
    height: 250px;
  }

  .history-section {
    padding: 60px 0;
  }

  .history-section h2 {
    font-size: 1.8rem;
  }

  .history-section .history-img {
    margin-top: 30px;
  }

  .visit-section {
    padding: 60px 0;
  }

  .visit-section h2 {
    font-size: 1.8rem;
  }

  .features-section .col-lg-3 {
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .features-section .col-lg-3:last-child {
    border-bottom: none;
  }

  .footer {
    text-align: center;
  }

  .footer a {
    display: inline-block;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .contact-card {
    padding: 25px;
  }

  .contact-form {
    padding: 25px;
  }
}

@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .btn-hero {
    padding: 12px 30px;
    font-size: 0.8rem;
  }

  .product-card .product-img {
    height: 220px;
  }
}
