/* ============================================
   VENTAS - SOLVEX GROUP
   Estilos específicos de la página de ventas
   ============================================ */

/* ====== TEXTO BASE ====== */
p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.text {
  color: var(--text-dark);
}

.section p {
  color: var(--tertiary-solvex);
}

/* ====== SECCIONES PRINCIPALES ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(135deg, var(--bg-light) 0%, #f0f7ff 100%);
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 119, 182, 0.2), transparent);
}

.section-alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 119, 182, 0.2), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--primary-blue));
  border-radius: 2px;
}

/* ====== GRIDS Y CARDS ====== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.benefit-card {
  background: linear-gradient(135deg, var(--white) 0%, #fafbff 100%);
  border-left: 4px solid var(--primary-color);
  padding: 1.8rem;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.1), rgba(0, 119, 182, 0.05));
  border-radius: 0 16px 0 100%;
}

.benefit-card:hover {
  transform: translateX(8px) translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 200, 150, 0.15);
  border-left-color: var(--primary-solvex);
}

.benefit-icon {
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.benefit-icon::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: bold;
}

.benefit-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--secondary-solvex);
  text-align: left;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.process-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 51, 102, 0.08);
  text-align: center;
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(0, 200, 150, 0.1);
}

.process-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 51, 102, 0.15);
  border-color: rgba(0, 200, 150, 0.3);
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-green), var(--primary-blue));
  border-radius: 20px 20px 0 0;
}

.process-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  color: var(--white);
  font-size: 2rem;
}

.process-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-solvex);
  margin-bottom: 1rem;
}

/* ====== PROCESS DESCRIPTION ====== */
p.process-description {
  color: var(--secondary-solvex);
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ====== KEYS GRID ====== */
.keys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.key-card {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--white) 0%, #f8fffe 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 51, 102, 0.06);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(0, 200, 150, 0.08);
}

.key-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 51, 102, 0.12);
  border-color: rgba(0, 200, 150, 0.2);
}

.key-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.key-card:hover::after {
  opacity: 1;
}

.key-icon {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--white);
  font-size: 2.5rem;
  box-shadow: var(--shadow-medium);
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.key-icon i {
  font-size: inherit;
  color: var(--white);
}

.key-card:hover .key-icon {
  transform: scale(1.05);
  box-shadow: var(--shadow-heavy);
}

.key-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-solvex);
  margin-bottom: 1rem;
}

.key-card .key-description {
  color: var(--secondary-solvex) !important;
  line-height: 1.6;
  font-size: 1rem;
}

.casos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.caso-card {
  background: linear-gradient(135deg, #f8fffe 0%, var(--white) 100%);
  border: 1px solid rgba(0, 200, 150, 0.15);
  padding: 1.8rem;
  border-radius: 16px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.caso-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-green), var(--primary-blue));
}

.caso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 200, 150, 0.12);
  border-color: rgba(0, 200, 150, 0.3);
}

.caso-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.8rem;
}

.caso-before {
  font-size: 0.95rem;
  color: #cc5500;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.caso-after {
  font-size: 0.95rem;
  color: var(--accent-color);
  font-weight: 600;
}

/* ====== TIPOGRAFÍA ====== */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-solvex);
  margin: 1.25rem 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: center;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-solvex);
  margin: 1.5rem 0 1rem 0;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-align: center;
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0.75rem 0 1rem 0;
  text-align: center;
}

/* ====== LEAD TEXT ====== */
p.lead {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--tertiary-solvex);
  margin-bottom: 2rem;
}

/* ====== HERO SECTION ====== */
.hero {
  padding: 8rem 0 6rem; 
  background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 50%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(45deg, rgba(0, 119, 182, 0.03) 0%, rgba(0, 200, 150, 0.05) 100%);
  border-radius: 50%;
  transform: rotate(-15deg);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;         /* Posicionado en la parte inferior */
  left: 0;
  right: 0;
  height: 1px;       /* Línea fina de 1px */
  background: linear-gradient(90deg, transparent, rgba(0, 119, 182, 0.2), transparent);
  z-index: 3;        /* Para que esté por encima del contenido */
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ====== BOTONES ====== */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.btn-accent {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-medium);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn-accent:hover::before {
  left: 100%;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #00C896, #00a076);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 200, 150, 0.3);
}

/* ====== ANIMACIONES ====== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: 0;
    background: var(--white);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .benefits-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .keys-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }

  .hero {
    padding: 5rem 1rem;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }
}