
:root{
  --c-teal:#0cc0df;
  --c-purple:#8b5cf6;
  --c-purple-dark:#9333ea;
  --c-text: #0f172a;
}

/* Animaciones de revelado al hacer scroll */
.reveal{
  opacity:0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(0.4, 0, 0.2, 1), transform .7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.in{
  opacity:1;
  transform: translateY(0);
}

/* Animaciones adicionales para diferentes elementos */
.reveal-scale{
  opacity:0;
  transform: scale(0.95);
  transition: opacity .6s cubic-bezier(0.4, 0, 0.2, 1), transform .6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.in{
  opacity:1;
  transform: scale(1);
}

.reveal-left{
  opacity:0;
  transform: translateX(-30px);
  transition: opacity .7s cubic-bezier(0.4, 0, 0.2, 1), transform .7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.in{
  opacity:1;
  transform: translateX(0);
}

.reveal-right{
  opacity:0;
  transform: translateX(30px);
  transition: opacity .7s cubic-bezier(0.4, 0, 0.2, 1), transform .7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.in{
  opacity:1;
  transform: translateX(0);
}

/* Efectos de enfoque mejorados */
.btn:focus-visible{
  outline:2px solid var(--c-purple);
  outline-offset:3px;
}

input:focus-visible, textarea:focus-visible{
  outline:none;
  border-color: var(--c-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .1);
}

/* Animación sutil de pulso para elementos importantes */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.pulse-subtle {
  animation: pulse-subtle 3s ease-in-out infinite;
}

/* Efecto de highlight al hacer scroll a una sección */
@keyframes scroll-highlight {
  0% { opacity: 0; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.01); }
  100% { opacity: 0; transform: scale(1); }
}

.scroll-highlight {
  position: relative;
}

.scroll-highlight::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(0, 212, 255, 0.1));
  border: 2px solid rgba(124, 58, 237, 0.3);
  animation: scroll-highlight 1s ease-out;
  pointer-events: none;
  z-index: -1;
}

/* Layout de 2 columnas para sección de contacto */
.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 40px;
}

.contact-wrapper > * {
  height: 100%;
}

/* Bloque promocional CREATIVE */
.creative-promo {
  height: 100%;
  display: flex;
}

.creative-content {
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* Formulario - ajustar altura para igualar con CREATIVE */
#contactForm {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"] {
  padding: 16px;
  margin-bottom: 0;
}

#contactForm textarea {
  padding: 16px;
  margin-bottom: 0;
  flex: 1; /* El textarea ocupa el espacio disponible */
  min-height: 120px;
  resize: vertical;
}

#contactForm .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

#contactForm .form-row input {
  margin-bottom: 0;
}

/* Botones de formulario y CREATIVE - misma altura y alineación */
#contactForm .btn,
.creative-content .btn {
  min-height: 56px;
  padding: 1rem 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  font-size: 1rem;
  line-height: 1.2;
}

#contactForm .btn {
  margin-top: auto;
}

.creative-content .btn {
  margin-top: auto;
}

#formNote {
  margin-top: 12px;
  min-height: 24px;
}

.creative-video-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
}

/* Slider CREATIVE */
.creative-slider-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.creative-slider {
  width: 100%;
  display: grid;
  grid-template-areas: 'slide';
  place-items: center;
  transition: height 0.3s ease;
  min-height: 200px;
}

.creative-slide {
  grid-area: slide;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  justify-self: center;
  align-self: center;
  width: auto;
  max-width: 100%;
}

.creative-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.creative-slide .mock {
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: var(--radius);
  border: 3px solid rgba(124, 58, 237, .25);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: auto;
  height: auto;
  max-width: calc(100% - 32px);
  max-height: 400px;
}

.creative-slide video,
.creative-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 2;
  border-radius: calc(var(--radius) - 3px);
  flex-shrink: 0;
}

.creative-slide video {
  pointer-events: none;
  user-select: none;
}

.creative-slide .mock .dot {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.creative-slide .mock .dot.tl {
  left: -40px;
  top: -40px;
  background: var(--c-purple);
}

.creative-slide .mock .dot.br {
  right: -40px;
  bottom: -40px;
  background: var(--c-teal);
}

.creative-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.creative-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
  cursor: default;
}

.creative-dot.active {
  background: var(--c-purple);
  width: 24px;
  border-radius: 4px;
}

.creative-slider-empty {
  padding: 32px;
  text-align: center;
  color: var(--c-text-secondary);
}

/* Responsive: ajustar tamaño en móvil */
@media (max-width: 980px) {
  .creative-slide video,
  .creative-slide img {
    max-height: 280px;
  }
}

/* Responsive: en pantallas pequeñas cambiar a 1 columna */
@media (max-width: 980px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* En mobile, mostrar primero el promo y luego el formulario */
  .contact-wrapper form {
    order: 2;
  }

  .creative-promo {
    order: 1;
  }
}
