:root {
  /* Paleta Click&Trade - Manual de Marca */
  --c-purple: #552A7F;
  --c-magenta: #D4145A;
  --c-dark: #1a1a1a;
  --c-light: #F9FAFD;
  --c-white: #ffffff;
  
  /* Colores UI */
  --c-gray-placeholder: #E0E0E0;
  --c-gray-icon: #9E9E9E;
  
  /* UI Tokens */
  --radius-pill: 100px;
  --radius-card: 32px;
  --radius-oval: 60px;
  
  --font-head: 'League Spartan', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); background: var(--c-light); color: var(--c-dark); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* UTILITIES */
.container { width: min(1200px, 90%); margin: 0 auto; }
.text-purple { color: var(--c-purple) !important; }
.text-dark { color: var(--c-dark); }
.text-white { color: #fff !important; }
.center { text-align: center; }
.section { padding: 100px 0; position: relative; }
b.text-purple { font-weight: 700; color: var(--c-purple); }

/* BACKGROUNDS */
.ambient-bg {
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(circle at 10% 10%, rgba(85, 42, 127, 0.08), transparent 40%),
              radial-gradient(circle at 90% 60%, rgba(85, 42, 127, 0.08), transparent 40%);
}
.blob-bg-servicios {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(85, 42, 127, 0.05), transparent 70%);
  pointer-events: none; z-index: 0;
}
.glow-contact {
  position: absolute; width: 100%; height: 100%; top: 0; left: 0; 
  overflow: hidden; pointer-events: none; z-index: 0;
}
.blob-c1 {
  position: absolute; top: 10%; right: -5%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(85, 42, 127, 0.12) 0%, transparent 70%);
  border-radius: 50%; animation: floatB 8s ease-in-out infinite;
}
.blob-c2 {
  position: absolute; bottom: 0%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(85, 42, 127, 0.12) 0%, transparent 70%);
  border-radius: 50%; animation: floatB 10s ease-in-out infinite reverse;
}

/* NAVBAR */
.navbar { padding: 20px 0; position: absolute; top: 0; width: 100%; z-index: 50; }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--c-dark); }
.brand__info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.logo-img-nav { width: 280px; height: auto; display: block; object-fit: contain; }
.brand__subtext { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: #666; margin-top: 6px; font-weight: 700; margin-left: 30px; }
.nav-links { display: flex; gap: 40px; background: rgba(255,255,255,0.8); padding: 10px 30px; border-radius: 50px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.5); }
.nav-links a { text-decoration: none; color: #555; font-weight: 500; font-size: 0.95rem; transition: 0.3s; }
.nav-links a:hover { color: var(--c-purple); }

/* BUTTONS */
.btn { padding: 14px 32px; border-radius: var(--radius-pill); border: none; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 10px; }
.btn:hover { transform: translateY(-2px); opacity: 0.95; }
.btn--primary { background: var(--c-purple); color: #fff; box-shadow: 0 10px 20px rgba(85, 42, 127, 0.25); }
.btn--primary:hover { background: #6a369e; box-shadow: 0 12px 24px rgba(85, 42, 127, 0.35); }
.btn--glass { background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.1); color: var(--c-purple); backdrop-filter: blur(5px); }
.btn--white { background: #fff; color: var(--c-purple); font-weight: 800; }
.btn--outline-dark { border: 2px solid var(--c-dark); color: var(--c-dark); background: transparent; }
.btn--dark { background: var(--c-dark); color: #fff; }
.btn--arrow span { transition: transform 0.2s; }
.btn--arrow:hover span { transform: translateX(5px); }

/* HERO */
.hero { padding-top: 130px; padding-bottom: 60px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.badge { display: inline-block; padding: 8px 16px; background: #fff; border: 1px solid #eee; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: #666; margin-bottom: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.display { font-family: var(--font-head); font-size: 4.5rem; line-height: 1; margin-bottom: 24px; letter-spacing: -1px; font-weight: 700; }
.display .text-purple { font-weight: 800; }
.lead { font-size: 1.2rem; color: #666; line-height: 1.6; margin-bottom: 40px; max-width: 500px; }
.hero__actions { display: flex; gap: 16px; }

/* HERO VISUAL & CARRUSEL (CON BORDE) */
.hero__visual { position: relative; }
.carousel-wrapper { position: relative; z-index: 2; transform: rotate(-2deg); transition: transform 0.5s; }
.carousel-wrapper:hover { transform: rotate(0deg) scale(1.01); }

.carousel-container {
  width: 100%;
  aspect-ratio: 16/10;
  max-height: 400px;
  background-color: var(--c-white);
  border: 10px solid var(--c-purple); /* Borde mantenido aquí */
  border-radius: 40px; 
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.carousel-img.active { opacity: 1; z-index: 2; }
.carousel-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 70%, rgba(85,42,127,0.1)); z-index: 3; pointer-events: none; }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.c-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(85,42,127, 0.2); transition: 0.3s; }
.c-dot.active { background: var(--c-purple); width: 25px; border-radius: 10px; }

/* DECORACIÓN (CON BORDE) */
.placeholder-box { 
  background-color: transparent;
  border: 10px solid var(--c-purple); /* Borde mantenido aquí */
  border-radius: 40px; 
  overflow: hidden; 
  display: flex;
  position: relative; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
  width: 100%;
  height: auto; 
}

.aspect-portrait { width: 100%; height: auto; min-height: 0; }
.static-bg-img { width: 100%; height: auto; display: block; position: relative; object-fit: contain; z-index: 0; }

.blur-circle { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; }
.circle-1 { width: 300px; height: 300px; background: rgba(85, 42, 127, 0.15); top: -10%; left: -10%; }
.circle-2 { width: 250px; height: 250px; background: rgba(85, 42, 127, 0.15); bottom: -10%; right: -10%; }

/* OTRAS SECCIONES */
.curve-top { border-radius: var(--radius-oval) var(--radius-oval) 0 0; }
.bg-white { background: #fff; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.photo-card-container { position: relative; border-radius: 40px; overflow: visible; border: none; }

/* CHECKLIST (ACTUALIZADO PARA BOXICONS) */
.check-item { margin-top: 8px; font-weight: 600; display: flex; align-items: center; gap: 10px; color: #444; font-size: 0.9rem; }
.check-item i { color: var(--c-purple); font-size: 1.1rem; }

.headline { font-family: var(--font-head); font-size: 3rem; color: var(--c-purple); line-height: 1.1; margin-bottom: 1.5rem; }
.eyebrow { color: var(--c-purple); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; display: block; margin-bottom: 10px; }
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.metric-box h3 { font-size: 1.2rem; color: var(--c-dark); margin-bottom: 5px; }
.metric-box p { font-size: 0.9rem; color: #666; }

/* SERVICIOS */
.clean-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 60px; position: relative; z-index: 2; }
.clean-card { background: #ffffff; border-radius: 40px; padding: 50px 30px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 10px 30px rgba(0,0,0,0.02); display: flex; flex-direction: column; align-items: center; height: 100%; }
.clean-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(85, 42, 127, 0.08); }

.clean-card h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 15px; color: var(--c-dark); margin-top: 10px; }
.clean-card p { font-size: 1rem; color: #666; line-height: 1.6; margin-bottom: 30px; max-width: 280px; margin-left: auto; margin-right: auto; }
.link-simple { margin-top: auto; color: var(--c-purple); font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; transition: all 0.3s; }
.link-simple:hover { border-bottom-color: var(--c-purple); opacity: 0.8; }

/* PROCESO */
.bg-light { background: #F9F9FC; }
.curve-both { border-radius: var(--radius-oval); margin: 20px 0; }

/* FORMULARIO (SIN BORDE GRUESO, ESTILO VIDRIO LIMPIO) */
.glass-form-container { 
  max-width: 900px; 
  margin: 0 auto; 
  position: relative; 
  z-index: 2; 
  background: rgba(255, 255, 255, 0.55); 
  
  /* Borde sutil para efecto vidrio, NO morado grueso */
  border: 1px solid rgba(255, 255, 255, 0.8);
  
  box-shadow: 0 8px 32px 0 rgba(85, 42, 127, 0.05); 
  backdrop-filter: blur( 20px ); 
  -webkit-backdrop-filter: blur( 20px ); 
  border-radius: 40px; 
  padding: 60px; 
  min-height: 400px; 
}

.form-header { text-align: center; margin-bottom: 30px; }
.hs-form { width: 100% !important; }

/* --- HUBSPOT FORM STYLING --- */
.hs-form label, 
.hs-form .hs-form-field > label {
  color: var(--c-purple) !important;
  font-weight: 700 !important;
  font-family: var(--font-head) !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.hs-input, 
.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-form textarea,
.hs-form select {
  background-color: #ffffff !important;
  border: 1px solid rgba(85, 42, 127, 0.2) !important;
  color: var(--c-dark) !important;
  border-radius: 8px !important;
  padding: 12px !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  width: 100% !important;
}

.hs-input::placeholder { color: #999 !important; }

.hs-button {
  background: var(--c-purple) !important;
  color: #fff !important;
  padding: 14px 32px !important;
  border-radius: 100px !important; 
  border: none !important;
  font-weight: 700 !important;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
  font-family: var(--font-head) !important;
  transition: all 0.3s ease;
}

.hs-button:hover {
  background: #6a369e !important;
  box-shadow: 0 10px 20px rgba(85, 42, 127, 0.25);
  transform: translateY(-2px);
}

/* FOOTER */
.footer-oval { background: var(--c-purple); color: #fff; border-radius: 60px 60px 0 0; padding: 80px 0 30px; margin-top: 40px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; margin-bottom: 60px; }
.brand-white { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.logo-img-footer { width: 280px; height: auto; display: block; object-fit: contain; }
.footer-contact a { text-decoration: none; font-weight: 600; opacity: 0.9; }
.footer-links { display: flex; gap: 60px; }
.link-col h4 { font-family: var(--font-head); margin-bottom: 20px; opacity: 0.8; }
.link-col a { display: block; color: #fff; text-decoration: none; margin-bottom: 12px; opacity: 0.9; transition: 0.2s; }
.link-col a:hover { opacity: 1; transform: translateX(5px); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.8rem; opacity: 0.6; }

/* ANIMACIONES */
.float-anim { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-15px) rotate(0deg); } }
.rotate-anim { animation: rotateSmall 8s ease-in-out infinite alternate; }
@keyframes rotateSmall { 0% { transform: rotate(-1deg); } 100% { transform: rotate(1deg); } }
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- CLAYMORPHISM: ESTILO 3D MORADO CORPORATIVO --- */

/* 1. TARJETAS DE SERVICIOS (Cuadrados) */
.clay-icon-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 3rem;
  color: #fff;
  background: linear-gradient(145deg, #6a369e, #552A7F); 
  box-shadow: 
    inset 4px 4px 8px rgba(255, 255, 255, 0.3),
    inset -4px -4px 10px rgba(0, 0, 0, 0.3),
    10px 10px 20px rgba(85, 42, 127, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.clay-icon-wrapper::after {
  content: '';
  position: absolute;
  top: 10px; left: 10px; width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(2px);
}

.clean-card:hover .clay-icon-wrapper {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    inset 4px 4px 8px rgba(255, 255, 255, 0.4),
    inset -4px -4px 8px rgba(0, 0, 0, 0.2),
    15px 15px 30px rgba(85, 42, 127, 0.4);
}

/* 2. DIAGRAMA DE PROCESO (Caja contenedora + Vidrio) */
.process-box {
  background-color: #ffffff;
  border: 10px solid var(--c-purple); /* Borde mantenido aquí */
  border-radius: 60px;
  padding: 60px 40px;
  box-shadow: 0 20px 50px rgba(85, 42, 127, 0.1);
  margin-top: 40px;
}

.flow-chart { position: relative; display: flex; justify-content: space-between; margin-top: 60px; padding: 0 10px; }
.flow-line { position: absolute; top: 45px; left: 0; width: 100%; height: 4px; background: rgba(85, 42, 127, 0.15); z-index: 0; }
.flow-step { position: relative; z-index: 1; text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; }

/* EL CÍRCULO DE VIDRIO (GLASSMORPHISM) */
.glass-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--c-purple);
  position: relative;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(85, 42, 127, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6); 
  overflow: visible; 
  transition: transform 0.3s ease;
}

.glass-circle::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
  z-index: -1;
}

.glass-circle:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(85, 42, 127, 0.25);
  background: rgba(255, 255, 255, 0.45);
}

.step-number {
  position: absolute;
  top: -5px; right: -5px;
  background: #fff;
  color: var(--c-purple);
  border: 2px solid var(--c-purple);
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  z-index: 10;
}

.step-content h4 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 5px; color: var(--c-purple); }
.step-content p { font-size: 0.9rem; color: #666; max-width: 180px; margin: 0 auto; }

/* Responsive */
@media (max-width: 768px) {
  .process-box { padding: 40px 20px; border-width: 6px; } 
  .flow-chart { flex-direction: column; gap: 40px; padding: 0; margin-top: 40px; }
  .flow-line { display: none; }
  .flow-step { flex-direction: row; text-align: left; gap: 20px; align-items: center; }
  .glass-circle { margin-bottom: 0; min-width: 80px; min-height: 80px; width: 80px; height: 80px; }
  .step-content { text-align: left; }
}