/* ====================================
   Variables & Reset
   ==================================== */
:root {
  /* Colors - Neutral Palette */
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f5f5f5;
  --color-neutral-200: #e5e5e5;
  --color-neutral-300: #d4d4d4;
  --color-neutral-400: #a3a3a3;
  --color-neutral-500: #737373;
  --color-neutral-600: #525252;
  --color-neutral-700: #404040;
  --color-neutral-800: #262626;
  --color-neutral-900: #171717;
  
  /* Primary Colors - Vino/Burgundy */
  --color-primary: #8B1538;
  --color-primary-dark: #6B0F2A;
  --color-primary-light: #A91D47;
  
  /* Accent Colors */
  --color-success: #00b14b;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  
  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;
  --space-16: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-cinematic: 800ms cubic-bezier(0.21, 0.47, 0.32, 0.98);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-neutral-900);
  background-color: var(--color-neutral-50);
  overflow-x: hidden;
}

/* ====================================
   Typography
   ==================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.italic {
  font-style: italic;
  font-weight: 300;
}

/* ====================================
   Layout
   ==================================== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* ====================================
   Header & Navigation
   ==================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-neutral-200);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-logo {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-neutral-900);
  letter-spacing: -0.03em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}

.nav-link {
  color: var(--color-neutral-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-neutral-900);
  transition: all var(--transition-base);
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition-base);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* ====================================
   Buttons
   ==================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-neutral-900);
  border-color: var(--color-neutral-300);
}

.btn-secondary:hover {
  background: var(--color-neutral-900);
  color: white;
  border-color: var(--color-neutral-900);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8B1538 0%, #4A0E1F 100%);
  z-index: 0;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-4);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.hero-title-line {
  display: block;
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Info Strip */
.info-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: var(--space-4);
}

.info-strip-content {
  display: flex;
  gap: var(--space-6);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

.info-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

@media (max-width: 768px) {
  .info-strip-content {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
  
  .info-item {
    justify-content: center;
  }
}

/* ====================================
   Sections
   ==================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--space-4);
  color: var(--color-neutral-900);
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-neutral-600);
  max-width: 650px;
  margin: 0 auto;
}

/* ====================================
   Features Section
   ==================================== */
.features {
  padding: var(--space-16) 0;
  background: white;
}

.features-visual {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-12);
  box-shadow: var(--shadow-xl);
}

.features-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 21, 56, 0.85) 0%, rgba(74, 14, 31, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-visual-content {
  text-align: center;
  color: white;
  padding: var(--space-6);
}

.features-visual-content h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.features-visual-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-6);
  background: var(--color-neutral-50);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
  border: 1px solid var(--color-neutral-200);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
  stroke-width: 1.5;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
  color: var(--color-neutral-900);
}

.feature-description {
  color: var(--color-neutral-600);
  line-height: 1.7;
}

/* ====================================
   Why PIPO Section (Videos)
   ==================================== */
.why-pipo {
  padding: var(--space-16) 0;
  background: var(--color-neutral-100);
}

.video-content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-12);
}

.video-content-block:last-child {
  margin-bottom: 0;
}

.video-content-block.reverse {
  direction: rtl;
}

.video-content-block.reverse > * {
  direction: ltr;
}

.video-content-text {
  padding: var(--space-4);
}

.video-content-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-neutral-900);
  margin-bottom: var(--space-3);
}

.video-content-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-neutral-600);
}

.video-content-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--color-neutral-900);
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.video-player {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9/16;
  object-fit: cover;
}

@media (max-width: 968px) {
  .video-content-block,
  .video-content-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  
  .video-content-text {
    order: 1;
  }
  
  .video-content-media {
    order: 2;
  }
  
  .video-content-media {
    max-width: 350px;
  }
}

@media (max-width: 640px) {
  .video-content-media {
    max-width: 280px;
  }
}

/* ====================================
   Services Section (Flip Cards)
   ==================================== */
.services {
  padding: var(--space-16) 0;
  background: white;
  position: relative;
}

.services-grid-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 80px; /* Espacio para el tooltip */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  max-height: 750px;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-grid.expanded {
  max-height: 5000px;
}

/* Gradient Overlay for fade effect - starts earlier */
.services-grid::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 280px;
  background: linear-gradient(to bottom, transparent 0%, white 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.services-grid.expanded::after {
  opacity: 0;
}

.service-card {
  perspective: 1000px;
  height: 240px;
  position: relative;
}

/* Tooltip indicator on first card - AHORA FUERA DEL OVERFLOW */
.services-grid-wrapper::before {
  content: 'Pasa el cursor para ver más';
  position: absolute;
  top: 10px;
  left: calc(12.5% - 90px); /* Centrado sobre la primera tarjeta (1/8 del ancho) */
  background: var(--color-primary);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 100;
  box-shadow: var(--shadow-xl);
  opacity: 1;
  animation: tooltipBounce 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.services-grid-wrapper::after {
  content: '';
  position: absolute;
  top: 50px;
  left: 12.5%; /* Centrado sobre la primera tarjeta */
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid var(--color-primary);
  z-index: 100;
  opacity: 1;
  animation: tooltipBounceArrow 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: opacity 0.3s ease;
}

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

@keyframes tooltipBounceArrow {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Hide tooltip after first interaction */
.services-grid-wrapper.interacted::before,
.services-grid-wrapper.interacted::after {
  opacity: 0;
  pointer-events: none;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base);
}

.service-card-front {
  background: white;
  border: 2px solid var(--color-neutral-200);
}

.service-card:hover .service-card-front {
  box-shadow: var(--shadow-lg);
}

.service-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: var(--space-3);
}

.service-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-neutral-900);
  text-align: center;
  line-height: 1.3;
}

.service-card-back {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  transform: rotateY(180deg);
  color: white;
}

.service-back-content {
  text-align: center;
}

.service-back-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: white;
}

.service-back-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

/* Toggle Button - Wine border and transparent background */
.services-toggle-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
  z-index: 20;
}

.btn-toggle-services {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: none;
}

.btn-toggle-services:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-toggle-services svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.btn-toggle-services.expanded svg {
  transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    max-height: 700px;
  }
  
  .services-grid-wrapper::before {
    left: calc(16.66% - 90px); /* Ajuste para 3 columnas */
  }
  
  .services-grid-wrapper::after {
    left: 16.66%; /* Ajuste para 3 columnas */
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    max-height: 600px;
  }
  
  .services-grid-wrapper {
    padding-top: 70px;
  }
  
  .services-grid-wrapper::before {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    left: calc(25% - 75px); /* Ajuste para 2 columnas */
  }
  
  .services-grid-wrapper::after {
    left: 25%; /* Ajuste para 2 columnas */
  }
  
  .service-card {
    height: 220px;
  }
  
  .service-image {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-2);
  }
  
  .service-name {
    font-size: 1rem;
  }
  
  .service-back-title {
    font-size: 1.125rem;
  }
  
  .service-back-description {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-height: 800px;
  }
  
  .services-grid-wrapper::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .services-grid-wrapper::after {
    left: 50%;
  }
  
  .service-card {
    height: 240px;
  }
  
  .service-image {
    width: 100px;
    height: 100px;
  }
}

/* ====================================
   Contact Section
   ==================================== */
.contact {
  padding: var(--space-16) 0;
  background: var(--color-neutral-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.contact-info {
  padding-right: var(--space-6);
}

.contact-details {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-detail {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.contact-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  stroke-width: 1.5;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-neutral-900);
}

.contact-detail p {
  color: var(--color-neutral-600);
}

.contact-form-wrapper {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-neutral-200);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-group label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-neutral-700);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all var(--transition-base);
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ====================================
   Demo Modal
   ==================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.4s cubic-bezier(0.21, 0.47, 0.32, 0.98);
  overflow: hidden;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-neutral-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
}

.modal-close:hover {
  background: var(--color-neutral-200);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  color: var(--color-neutral-700);
}

.modal-header {
  padding: var(--space-8) var(--space-6) var(--space-4);
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 21, 56, 0.05) 0%, rgba(74, 14, 31, 0.05) 100%);
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 32px;
  height: 32px;
  color: white;
  stroke-width: 2;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-neutral-900);
  margin-bottom: var(--space-2);
}

.modal-subtitle {
  font-size: 0.9375rem;
  color: var(--color-neutral-600);
  line-height: 1.5;
}

.modal-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.credential-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.credential-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-neutral-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.credential-value-group {
  display: flex;
  gap: var(--space-2);
}

.credential-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  font-family: 'Courier New', monospace;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-neutral-900);
  background: var(--color-neutral-50);
  letter-spacing: 0.05em;
}

.btn-copy-credential {
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.btn-copy-credential:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-copy-credential:hover svg {
  color: white;
}

.btn-copy-credential svg {
  width: 20px;
  height: 20px;
  color: var(--color-neutral-600);
  transition: color var(--transition-base);
}

.modal-footer {
  padding: 0 var(--space-6) var(--space-6);
}

/* ====================================
   Footer
   ==================================== */
.footer {
  background: var(--color-neutral-900);
  color: var(--color-neutral-300);
  padding: var(--space-12) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

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

.footer-brand {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-2);
}

.footer-description {
  line-height: 1.7;
  max-width: 350px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-3);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--color-neutral-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-neutral-800);
  text-align: center;
  color: var(--color-neutral-500);
  font-size: 0.875rem;
}

.footer-credit {
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.footer-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-credit strong {
  color: var(--color-primary-light);
}

/* ====================================
   Animations
   ==================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-cinematic);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn var(--transition-cinematic) ease-out forwards;
  opacity: 0;
}

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

.animate-text {
  animation: slideIn 1s cubic-bezier(0.21, 0.47, 0.32, 0.98) forwards;
  opacity: 0;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================================
   WhatsApp Floating Button
   ==================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all var(--transition-base);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: white;
}

/* Animación de pulso sutil */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ====================================
   Utilities
   ==================================== */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-neutral-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-neutral-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-neutral-600);
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: white;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}