/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
  --primary: #8B0000;
  --secondary: #FFD700;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --gray: #6c757d;
  --success: #28a745;
  --error: #dc3545;
  --white: #ffffff;
  --footer-bg: #0a0a0a;
  
  /* Espaciados */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========================================
   RESET Y BASE
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   HERO FULL SCREEN
   ======================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  background: url('https://images.unsplash.com/photo-1558241665-89718b74c89c?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.4));
} 

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  animation: fadeInUp 1s ease;
  padding: 0 var(--spacing-md);
  max-width: 900px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.4;
}

.hero-btn {
  padding: clamp(0.8rem, 2vw, 1rem) clamp(2rem, 5vw, 3rem);
  font-size: clamp(1rem, 2vw, 1.2rem);
  background: var(--secondary);
  color: var(--dark);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  min-height: 44px;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,215,0,0.3);
}

/* ========================================
   NAVBAR CON MENÚ HAMBURGUESA
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  z-index: 1001;
}

/* Menú hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger {
  width: 25px;
  height: 2px;
  background: var(--secondary);
  border-radius: 3px;
  transition: all var(--transition-normal);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--secondary);
  border-radius: 3px;
  transition: all var(--transition-normal);
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Animación hamburguesa a X */
.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--secondary);
}

/* ========================================
   SECCIONES
   ======================================== */
.section {
  padding: var(--spacing-xl) var(--spacing-md);
}

.section-dark {
  background: var(--dark);
  color: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-dark .section-title {
  color: var(--secondary);
}

.section-desc {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gray);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   TOURS GRID
   ======================================== */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tour-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.tour-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tour-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tour-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.tour-desc {
  color: var(--gray);
  margin-bottom: 1rem;
  flex: 1;
}

.tour-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.tour-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-normal);
  min-height: 44px;
}

.tour-btn:hover {
  background: #6B0000;
}

/* ========================================
   VINOS GRID
   ======================================== */
.vinos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.vino-card {
  background: rgba(255,255,255,0.08);
  border: 3px solid var(--secondary);
  border-radius: 20px;
  padding: 0;
  text-align: center;
  transition: all 0.4s ease;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.vino-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: #fff;
  box-shadow: 0 15px 50px rgba(255,215,0,0.4);
}

.vino-img-container {
  background: linear-gradient(135deg, rgba(139,0,0,0.2), rgba(0,0,0,0.4));
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.vino-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
  transition: transform var(--transition-normal);
}

.vino-card:hover .vino-img {
  transform: scale(1.1);
}

.vino-content {
  padding: 2rem;
  background: rgba(0,0,0,0.4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vino-name {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--secondary);
  margin: 0 0 0.8rem 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vino-type {
  color: rgba(255,255,255,0.9);
  margin: 0.3rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.vino-bodega {
  color: rgba(255,255,255,0.7);
  margin: 0.3rem 0 0.8rem 0;
  font-size: 0.95rem;
  font-style: italic;
}

.vino-region {
  color: var(--secondary);
  font-size: 0.95rem;
  margin: 0.5rem 0 1.2rem 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.vino-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: auto;
  text-align: left;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  border-left: 3px solid var(--secondary);
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */
.experience {
  background: linear-gradient(135deg, var(--primary) 0%, #4a0000 100%);
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
}

.experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></svg>') repeat;
  background-size: 30px 30px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.experience-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.experience-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

.experience-icon {
  font-size: 3.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  display: block;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.experience-card h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.experience-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ========================================
   TESTIMONIOS CON FOTOS REALES
   ======================================== */
.testimonios-section {
  background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary);
  transition: all var(--transition-normal);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: var(--secondary);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(139, 0, 0, 0.15);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary);
  box-shadow: var(--shadow-md);
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  font-size: 1.1rem;
}

.testimonial-location {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

.testimonial-text {
  font-style: italic;
  margin: 1.5rem 0;
  color: var(--dark);
  line-height: 1.7;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.testimonial-stars {
  color: var(--secondary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.2rem;
}

/* ========================================
   FORMULARIO CON PLACEHOLDERS Y SELECT MEJORADO
   ======================================== */
.reserva-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--light);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--secondary);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: var(--light);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  min-height: 44px;
  font-family: inherit;
}

/* PLACEHOLDERS GRISES */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.5);
  opacity: 1;
}

/* SELECT MEJORADO - OPCIONES VISIBLES */
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFD700' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.5rem;
}

/* OPCIONES DEL SELECT CON FONDO OSCURO */
.form-group select option {
  background: var(--dark);
  color: var(--light);
  padding: 0.5rem;
}

/* Primera opción (placeholder) más gris */
.form-group select option:first-child {
  color: rgba(255,255,255,0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255,255,255,0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error);
}

.error-message {
  display: block;
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--secondary);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast);
  min-height: 48px;
  position: relative;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mensaje-confirmacion {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
  animation: slideDown 0.3s ease;
}

.mensaje-confirmacion.success {
  background: var(--success);
  color: white;
  display: block;
}

.mensaje-confirmacion.error {
  background: var(--error);
  color: white;
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   FOOTER PROFESIONAL - DIFERENCIADO
   ======================================== */
.footer {
  background: var(--footer-bg);
  color: var(--light);
  padding: 3rem 2rem 1.5rem;
  border-top: 3px solid var(--secondary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.footer-desc {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.footer-title {
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.social-btn:hover {
  transform: translateY(-3px);
}

.social-btn.facebook {
  background: #1877F2;
  color: white;
}

.social-btn.facebook:hover {
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-btn.instagram:hover {
  box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.social-btn.whatsapp {
  background: #25D366;
  color: white;
}

.social-btn.whatsapp:hover {
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--white);
}

/* ========================================
   BOTÓN WHATSAPP FLOTANTE - SIN LATIDO AUTOMÁTICO
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float i {
  font-size: 28px;
  line-height: 1;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVE MOBILE-FIRST
   ======================================== */

/* Tablets (768px y menos) */
@media (max-width: 768px) {
  /* Menú hamburguesa visible */
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.3rem;
    text-align: center;
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
  
  /* Overlay cuando el menú está abierto */
  body.menu-open {
    overflow: hidden;
  }
  
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* Hero mobile */
  .hero {
    min-height: 500px;
  }
  
  .hero-title {
    letter-spacing: 1px;
  }
  
  /* Secciones mobile */
  .section {
    padding: 3rem 1rem;
  }
  
  /* Footer mobile */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-section {
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* WhatsApp flotante mobile */
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-float i {
    font-size: 24px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

/* Mobile pequeño (480px y menos) */
@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .reserva-form {
    padding: 1.5rem;
  }
  
  .footer {
    padding: 2rem 1rem 1rem;
  }
  
  .nav-menu {
    width: 85%;
  }
}