/* =========================================================================
   AMALGAMA EVENTOS — DESIGN SYSTEM v2
   Copper + Emerald Teal · Luxury Meets Technology
   ========================================================================= */

/* === TOKENS === */
:root {
  /* Palette */
  --white: #FFFFFF;
  --off-white: #FAFAF9;
  --charcoal: #1A1A2E;
  --charcoal-light: #2C2C44;
  --copper: #C9956B;
  --copper-dark: #A87B55;
  --copper-glow: rgba(201, 149, 107, 0.35);
  --emerald: #10B981;
  --emerald-dark: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --text-main: #1A1A2E;
  --text-muted: #64647A;
  --bg-soft: #F0EFEB;
  --border-light: rgba(26, 26, 46, 0.08);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-py: clamp(100px, 10vw, 160px);
  --container-px: clamp(20px, 5vw, 80px);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --t-fast: 0.3s var(--ease-out);
  --t-smooth: 0.5s var(--ease-out);
  --t-slow: 0.8s var(--ease-out);
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: var(--font-body); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
}

p { color: var(--text-muted); font-weight: 400; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === TEXT GRADIENT === */
.text-gradient {
  background: linear-gradient(135deg, var(--copper), var(--emerald));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* === BUTTONS === */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--copper), var(--copper-dark));
  border-radius: var(--radius-full);
  box-shadow: 0 8px 30px var(--copper-glow);
  transition: var(--t-fast);
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px var(--copper-glow);
  filter: brightness(1.08);
}
.cta-btn.large {
  padding: 18px 44px;
  font-size: 1.1rem;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  transition: var(--t-fast);
}
.ghost-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.ghost-btn svg { width: 20px; height: 20px; }

/* =====================================================================
   NAVBAR
   ===================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  transition: var(--t-fast);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 30px rgba(26,26,46,0.06);
}
.navbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-image {
  height: 78px; /* Aumentado a petición */
  width: auto;
  transition: var(--t-fast);
}
.navbar.scrolled .logo-image {
  height: 60px; /* Reducción proporcional al hacer scroll */
}

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--copper);
  transition: width var(--t-fast);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-links a:hover { color: var(--text-main); }

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t-fast);
}
.navbar.scrolled .mobile-toggle span { background: var(--text-main); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--container-px) 80px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.82) 0%, rgba(15, 15, 30, 0.85) 50%, rgba(26, 42, 46, 0.82) 100%),
              url('hero_bg.png') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, var(--copper-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, var(--emerald-glow) 0%, transparent 60%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-particles .particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  animation: float 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 24px;
  padding: 8px 20px;
  border: 1px solid rgba(201,149,107,0.3);
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  color: var(--white);
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: rgba(255,255,255,0.6);
  max-width: 680px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
}
.stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--copper);
}
.stat p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 50px;
  background: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
  .stat-divider { display: none; }
  .hero-stats { gap: 32px; }
}

/* =====================================================================
   SERVICE SPLITTER
   ===================================================================== */
.services-split {
  padding: var(--section-py) var(--container-px);
  background: var(--white);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}
.label-line {
  width: 60px; height: 1px;
  background: var(--border-light);
}
.label-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--text-muted);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.split-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: var(--t-smooth);
}
.split-card:hover { transform: translateY(-8px); }

.split-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out);
}
.split-card:hover .split-card-bg { transform: scale(1.06); }

.social-card .split-card-bg {
  background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?w=800&q=80');
}
.social-card .split-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(201,149,107,0.85) 0%, rgba(201,149,107,0.2) 50%, transparent 100%);
}

.corporate-card .split-card-bg {
  background-image: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&q=80');
}
.corporate-card .split-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,185,129,0.85) 0%, rgba(16,185,129,0.2) 50%, transparent 100%);
}

.split-card-content {
  position: relative;
  z-index: 2;
  padding: 48px 40px;
  color: var(--white);
}
.split-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.split-icon-wrap svg { width: 24px; height: 24px; stroke-width: 1.5; }

.split-card-content h2 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
}
.split-card-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 300px;
}
.split-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transition: var(--t-fast);
}
.split-cta:hover { border-color: var(--white); gap: 14px; }
.split-cta svg { width: 18px; height: 18px; transition: var(--t-fast); }

@media (max-width: 768px) {
  .split-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   CATÁLOGO
   ===================================================================== */
.catalog-section {
  padding: var(--section-py) 0;
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.catalog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,26,46,0.06);
  transition: var(--t-smooth);
  border: 1px solid var(--border-light);
  display: block;
  text-decoration: none;
  color: inherit;
}
.catalog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(26,26,46,0.1);
}

.catalog-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}
.catalog-card:hover .catalog-img { transform: scale(1.05); }

.catalog-info {
  padding: 24px;
}
.catalog-info h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.catalog-info p {
  font-size: 0.9rem;
}

.catalog-cta-wrap {
  text-align: center;
  margin-top: 56px;
}

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.testimonials-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

/* Logo Ticker */
.logo-ticker {
  overflow: hidden;
  margin-bottom: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.ticker-track {
  display: flex;
  gap: 64px;
  animation: ticker-scroll 25s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(26,26,46,0.12);
  letter-spacing: -0.02em;
  user-select: none;
  flex-shrink: 0;
}

/* Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--t-smooth);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(26,26,46,0.06);
}

.testimonial-video {
  height: 200px;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-icon {
  width: 56px; height: 56px;
  color: rgba(255,255,255,0.4);
  stroke-width: 1;
  transition: var(--t-fast);
}
.testimonial-card:hover .play-icon {
  color: var(--copper);
  transform: scale(1.1);
}

.testimonial-info {
  padding: 28px;
}
.testimonial-info p {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--text-main);
}
.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--copper);
}

/* =====================================================================
   FOUNDERS
   ===================================================================== */
.founders-section {
  padding: var(--section-py) 0;
  background: var(--off-white);
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.founder-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--t-smooth);
}
.founder-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(26,26,46,0.08);
  border-color: var(--copper);
}

.founder-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper), var(--emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.avatar-placeholder {
  width: 44px; height: 44px;
  color: var(--white);
  stroke-width: 1.5;
}

.founder-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.founder-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 16px;
}
.founder-card p {
  font-size: 0.95rem;
}

/* =====================================================================
   CONTACT / LEAD FORM
   ===================================================================== */
.contact-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 48px;
  box-shadow: 0 8px 40px rgba(26,26,46,0.04);
}

/* Steps */
.form-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--border-light);
  color: var(--text-muted);
  transition: var(--t-fast);
}
.step.active .step-num {
  background: var(--copper);
  color: var(--white);
  box-shadow: 0 4px 16px var(--copper-glow);
}
.step.completed .step-num {
  background: var(--emerald);
  color: var(--white);
}
.step-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.step.active .step-label { color: var(--copper); font-weight: 600; }
.step.completed .step-label { color: var(--emerald); }

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  margin: 0 8px;
  margin-bottom: 28px;
  transition: var(--t-fast);
}
.step-connector.active { background: var(--copper); }

/* Form Panels */
.lead-form { position: relative; }

.form-panel {
  display: none;
  animation: fadePanel 0.4s var(--ease-out);
}
.form-panel.active { display: block; }

@keyframes fadePanel {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 28px;
  text-align: center;
}

.event-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  background: var(--white);
  cursor: pointer;
  transition: var(--t-fast);
  text-align: center;
}
.type-option:hover {
  border-color: var(--copper);
  background: rgba(201,149,107,0.05);
}
.type-option input { display: none; }
.type-option input:checked + i ~ span,
.type-option.selected span { color: var(--copper); font-weight: 600; }
.type-option.selected,
.type-option:has(input:checked) {
  border-color: var(--copper);
  background: rgba(201,149,107,0.08);
  box-shadow: 0 4px 20px var(--copper-glow);
}
.type-option svg { width: 28px; height: 28px; color: var(--text-muted); stroke-width: 1.5; }
.type-option.selected svg,
.type-option:has(input:checked) svg { color: var(--copper); }
.type-option span { font-size: 0.9rem; font-weight: 500; }

@media (max-width: 500px) {
  .event-type-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Guest Slider */
.guest-slider-wrap { text-align: center; padding: 20px 0; }
.guest-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--copper) 0%, var(--emerald) 100%);
  outline: none;
  margin-bottom: 20px;
}
.guest-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--copper);
  box-shadow: 0 4px 12px var(--copper-glow);
  cursor: pointer;
  transition: var(--t-fast);
}
.guest-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  border-color: var(--emerald);
}
.guest-display {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
}
.guest-display span {
  color: var(--copper);
  font-size: 2.5rem;
}

/* Form Groups & Labels */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}
.form-label {
  display: block;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Form Inputs */
.form-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--t-fast);
  margin-bottom: 16px;
}
.form-input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 4px var(--copper-glow);
}
.form-input::placeholder { color: rgba(26,26,46,0.3); }

/* Select & Textarea specifics */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C9956B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  cursor: pointer;
  margin-bottom: 0; /* Reset since it's inside form-group */
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  margin-bottom: 0;
}

/* Phone Input */
.phone-input-wrap {
  display: flex;
  margin-bottom: 8px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
  transition: var(--t-fast);
}
.phone-input-wrap:focus-within {
  border-color: var(--copper);
  box-shadow: 0 0 0 4px var(--copper-glow);
}
.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--off-white);
  border-right: 1px solid var(--border-light);
  font-weight: 600;
  color: var(--text-muted);
}
.phone-prefix-select {
  padding: 0 12px;
  background: var(--off-white);
  border: none;
  border-right: 1px solid var(--border-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364647A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  transition: var(--t-fast);
}
.phone-prefix-select:hover { background-color: rgba(26,26,46,0.02); }
.phone-input {
  border: none !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.input-error {
  color: #ff4d4d;
  font-size: 0.8rem;
  margin-top: 6px;
  margin-bottom: 0;
}

.input-hint {
  font-size: 0.8rem;
  color: rgba(26,26,46,0.5);
  text-align: left;
}

/* Success State */
.form-panel[data-panel="success"] {
  text-align: center;
  padding: 40px 0;
}
.success-icon svg {
  width: 64px; height: 64px;
  color: var(--emerald);
  margin-bottom: 16px;
}

/* Form Navigation */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
}
.form-prev {
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
}
.form-prev:hover {
  background: var(--off-white);
  color: var(--text-main);
  border-color: var(--text-muted);
}
.form-next { margin-left: auto; }
.form-nav svg { width: 18px; height: 18px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: var(--charcoal);
  padding: 80px var(--container-px) 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-logo-image {
  height: 90px; /* Aumentado para destacar en el footer */
  width: auto;
  flex-shrink: 0;
}
.footer-brand h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 6px;
  display: none; /* Occult in favor of logo */
}
.footer-brand p {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

.footer-col h5 {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: var(--t-fast);
}
.footer-col a:hover { color: var(--copper); }

/* Contact links with inline SVG icons */
.footer-contact-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.footer-contact-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.footer-contact-link:hover svg { opacity: 1; }

/* Social icons inside footer */
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  transition: var(--t-fast);
  margin-bottom: 0 !important;
}
.footer-social a:hover {
  color: var(--copper);
  transform: translateY(-3px);
}
.footer-social svg { width: 22px; height: 22px; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand { justify-content: center; }
  .footer-contact-link { justify-content: center; }
  .footer-social { justify-content: center; padding-top: 0; }
}

/* =====================================================================
   AI CHAT BUBBLE
   ===================================================================== */
.chat-bubble {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 30px var(--emerald-glow);
  transition: var(--t-fast);
}
.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 40px var(--emerald-glow);
}
.chat-bubble-icon svg { width: 26px; height: 26px; color: var(--white); stroke-width: 1.5; }

.chat-bubble-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--emerald);
  animation: pulse-ring 2s ease-out infinite;
  pointer-events: none;
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 100px; right: 28px;
  width: 380px;
  max-height: 500px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(26,26,46,0.15);
  z-index: 998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  animation: fadePanel 0.3s var(--ease-out);
}
.chat-window.open {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: var(--white);
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-avatar-sm svg { width: 18px; height: 18px; color: var(--white); }
.chat-header-info strong { font-size: 0.95rem; }
.chat-status {
  display: block;
  font-size: 0.7rem;
  opacity: 0.7;
}
.chat-close {
  color: var(--white);
  opacity: 0.7;
  transition: var(--t-fast);
}
.chat-close:hover { opacity: 1; }
.chat-close svg { width: 20px; height: 20px; }

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}
.chat-msg {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 90%;
}
.chat-msg.bot {
  background: var(--off-white);
  border: 1px solid var(--border-light);
}
.chat-msg.bot p { color: var(--text-main); font-size: 0.9rem; }

.chat-input-wrap {
  display: flex;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  gap: 8px;
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--t-fast);
}
.chat-input:focus { border-color: var(--emerald); }
.chat-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t-fast);
}
.chat-send:hover { background: var(--emerald-dark); }
.chat-send svg { width: 18px; height: 18px; }

@media (max-width: 500px) {
  .chat-window { right: 12px; left: 12px; width: auto; bottom: 96px; }
  .form-wrapper { padding: 32px 20px; }
}

/* =====================================================================
   FORM SUBMIT SPINNER & DISABLED STATE
   ===================================================================== */
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.cta-btn:disabled,
.service-form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* =====================================================================
   WHATSAPP FLOAT
   ===================================================================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(37,211,102,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.wa-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}
.wa-float svg { width: 32px; height: 32px; }

/* =====================================================================
   CONSENT & COOKIE BANNER
   ===================================================================== */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--charcoal);
  color: var(--white);
  padding: 16px 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  transition: bottom 0.5s var(--ease-out);
}
.cookie-banner.show { bottom: 0; }
.cookie-banner p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin: 0; }
.cookie-banner a { color: var(--copper); text-decoration: underline; }
.cookie-btn {
  background: var(--emerald);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.cookie-btn:hover { background: var(--emerald-dark); }

