/* =======================================
   VARIABLES Y BASE
======================================= */
:root {
  --vino: #691c32;
  --gold: #bc955c;
  --muted: #6b7280;
  --bg: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --glass: rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: #111;
  line-height: 1.5;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* =======================================
   TIPOGRAFÍA ELEGANTE
======================================= */
h1, h2, h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--vino);
  letter-spacing: -0.02em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* =======================================
   LINKS CON EFECTO
======================================= */
a {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover {
  color: var(--gold);
}

/* =======================================
   BOTONES POTENCIADOS
======================================= */
.btn {
  background: var(--vino);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}
.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
  filter: brightness(1.1);
}
.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn.primary {
  background: var(--vino);
  color: white;
}
.btn.primary:hover {
  color: var(--gold);
  background: var(--vino);
}

/* =======================================
   NAVBAR GLASSMORPHISM
======================================= */
.navbar {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--vino);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar .brand {
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(45deg, var(--vino), #2c5e53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

/* =======================================
   HERO ANIMADO
======================================= */
.hero {
  background: #fff;
  padding: 80px 40px;
  border-radius: 24px;
  margin-top: 40px;
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(19, 50, 43, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero img {
  width: 400px;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* =======================================
   CARDS DINÁMICAS
======================================= */
.card {
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--vino);
}

/* =======================================
   SISTEMA DE SOMBRAS Y EFECTOS
======================================= */
.elevation-1 { box-shadow: var(--shadow-sm); }
.elevation-2 { box-shadow: var(--shadow-md); }
.elevation-3 { box-shadow: var(--shadow-lg); }

.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
  transition: transform 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
}


/* =======================================
   FORMULARIOS
======================================= */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--vino);
  font-size: 0.9rem;
}
input, select, textarea {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.2);
  outline: none;
}

/* =======================================
   WIZARD
======================================= */
.steps {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.step-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--vino);
  transition: background 0.3s ease, color 0.3s ease;
}
.step-indicator.active {
  background: var(--vino);
  color: #fff;
}
.step-panel { display: none; }
.step-panel.active { display: block; }

/* =======================================
   SUCURSALES
======================================= */
.branch-item {
  background: #fafafa;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.branch-item:hover {
  border-color: var(--gold);
  background: #fffdf3;
}
.branch-item.sel {
  border-color: var(--vino);
  background: #fff4f7;
}

/* =======================================
   ANIMACIONES FADE IN
======================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =======================================
   FOOTER
======================================= */
footer {
  background: var(--gold);
  color: var(--vino);
  text-align: center;
  padding: 18px;
  font-weight: 600;
  border-top: 3px solid var(--vino);
  transition: background 0.4s ease;
}
footer a {
  color: var(--vino);
  margin: 0 6px;
}
footer:hover {
  background: #e5c35a;
}

/* =======================================
   RESPONSIVE
======================================= */
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
}
