/* ========================================
   VARIABLES CSS GLOBALES
======================================== */
:root {
  /* Colores principales */
  --primary-dark: #002b55;
  --primary-blue: #0077b6;
  --primary-color: #00796b;
  --secondary-color: #004d40;
  --primary-solvex: #112a3a;
  --secondary-solvex: #878b8e;
  --tertiary-solvex: #4d5b64;

  /* Colores de acento */
  --accent-color: #00c896;
  --accent-green: #00c896;
  --accent-green-hover: #4caf50;

  /* Colores de texto */
  --text-dark: #333333;
  --text-light: #ffffff;

  /* Colores de fondo */
  --white: #ffffff;
  --bg-light: #f8f8f8;
  --light-bg: #f8f9fa;

  /* Bordes */
  --border-light: #cccccc;
  --border-radius: 12px;

  /* Sombras */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.3);

  /* Gradientes */
  --gradient-start: #00796b;
  --gradient-end: #004d40;
  --accent-gradient: linear-gradient(135deg, var(--accent-color), #00a076);
  --primary-gradient: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--primary-dark)
  );

  /* Transiciones y animaciones */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Tipografía */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciado */
  --icon-spacing: 0.5rem;
  --container-max: 1200px;
}

/* ========================================
   RESET Y BASE STYLES
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  font-size: 16px;
  overflow-x: hidden;
}

/* ========================================
   ANIMACIONES GLOBALES
======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes floatBackground {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-35px) rotate(2deg) scale(1.05);
  }
  50% {
    transform: translateY(-50px) rotate(-1deg) scale(1.1);
  }
  75% {
    transform: translateY(-25px) rotate(2deg) scale(1.02);
  }
}

/* ========================================
   ANIMACIÓN WAVE (OLA FLOTANTE)
======================================== */
.wave {
  position: relative;
  overflow: hidden;
}

.wave::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.25;
  background-image: radial-gradient(
      circle at 20% 50%,
      white 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 80%, white 0%, transparent 50%),
    radial-gradient(circle at 60% 30%, white 0%, transparent 50%);
  animation: floatBackground 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.wave > * {
  position: relative;
  z-index: 1;
}

/* ========================================
   HEADER / NAVEGACIÓN
======================================== */
header {
  background: var(--white);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: bold;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-blue);
}

.submenu {
  position: absolute;
  background: var(--white);
  box-shadow: var(--shadow-medium);
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: var(--border-radius);
  z-index: 100;
  min-width: 200px;
}

.submenu a {
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.submenu a:hover {
  background: var(--bg-light);
  padding-left: 0.75rem;
}

.has-submenu:hover .submenu {
  display: flex;
}

.hamburger {
  display: none; 
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-solvex);
  background: none;
  border: none;
  padding: 0.5rem;
  margin-left: auto;
  transition: var(--transition);
}

.hamburger:hover {
  color: var(--primary-solvex);
  transform: scale(1.1);
}

.hamburger.active {
  color: var(--primary-solvex);
  transform: rotate(90deg);
}

/* ========================================
   FOOTER
======================================== */
footer {
  background: var(--white);
  color: var(--text-light);
  padding: 1rem 1.5rem 0.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 1.5rem 0;
}

/* Estilos consolidados para secciones del footer */
.footer-block,
.footer-section {
  flex: 1;
  min-width: 180px;
  margin-top: 1rem;
  text-align: center;
}

.footer-block h4,
.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
}

.footer-block ul,
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-block li,
.footer-section li {
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  color: var(--primary-solvex);
}

.footer-block p,
.footer-section p,
.footer-block ul,
.footer-section ul {
  color: var(--primary-solvex);
  line-height: 1.5;
  font-size: 0.85rem;
}

.footer-block a,
.footer-section a {
  color: var(--primary-solvex);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.7rem;
}

.footer-block a:hover,
.footer-section a:hover {
  color: var(--primary-color);
}

/* Estilos de contacto en footer */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.footer-contact i {
  color: var(--accent-color);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
  color: var(--accent-color);
}

.footer-slogan {
  font-weight: bold;
}

.footer-logo img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: 35px;
}

/* Copyright */
.footer-bottom,
.copyright {
  padding-top: 1rem;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--primary-solvex);
  font-size: 0.8rem;
  width: 60%;
  position: relative;
  top: -25px;
}

/* Estilo para la línea de separación del footer */
.footer-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 119, 182, 0.2), transparent);
  margin-bottom: 1rem;
}

/* ========================================
   BOTONES COMUNES
======================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--white);
  border: 2px solid var(--text-light);
}

.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 {
  background: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--text-light);
}

/* ========================================
   CONTENEDORES Y SECCIONES
======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0.8;
}

/* ========================================
   TARJETAS (CARDS)
======================================== */
.card:not([class*="-card"]) {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.card:not([class*="-card"]):hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-dark);
  line-height: 1.6;
}

/* ========================================
   FORMULARIOS
======================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

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

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.p-1 {
  padding: 0.5rem;
}
.p-2 {
  padding: 1rem;
}
.p-3 {
  padding: 1.5rem;
}
.p-4 {
  padding: 2rem;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1rem;
  }

  nav ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-medium);
    display: none;
    padding: 1rem;
  }

  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }
}

/* ========================================
   COOKIES - BANNER Y CONFIGURACIÓN
   ======================================== */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  max-width: 400px;
  box-shadow: var(--shadow-medium);
  z-index: 9999;
  border-radius: var(--border-radius);
  display: none;
  flex-direction: column;
  gap: 1rem;
  animation: slideUp 0.4s ease-out;
}

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

#cookie-banner p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.5;
}

#cookie-banner .cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#cookie-banner button {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  min-width: 120px;
}

#cookie-banner button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#accept-cookies {
  background: var(--accent-green);
}

#accept-cookies:hover {
  background: #00a076;
}

#reject-cookies {
  background: transparent;
  border: 2px solid var(--border-light);
  color: var(--text-dark);
}

#reject-cookies:hover {
  background: var(--bg-light);
  border-color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#cookie-settings-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-dark);
  color: var(--white);
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: all 0.3s ease;
  font-size: 20px;
}

#cookie-settings-btn:hover {
  background: var(--primary-blue);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive cookies banner */
@media (max-width: 768px) {
  #cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    padding: 1.25rem;
  }

  #cookie-banner p {
    font-size: 0.85rem;
  }

  #cookie-banner button {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    min-width: 100px;
  }

  #cookie-settings-btn {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 18px;
  }
}

/* ========================================
   CTA SECTION (CALL TO ACTION)
======================================== */
/* CTA Section */
.cta-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(
    135deg,
    var(--primary-solvex) 0%,
    var(--primary-solvex) 100%
  );
  padding: 80px 20px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

/* Colores específicos para páginas de servicios (azul) */
.section.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-solvex) 0%,
    var(--primary-solvex) 50%,
    #001a2e 100%
  );
  padding: 6rem 2rem;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section .lead {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-title {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  margin-bottom: 35px;
  line-height: 1.6;
}

.cta-button-container {
  margin-bottom: 25px;
}

.cta-button {
  background: var(--white);
  color: var(--primary-color);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  margin: 0 10px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.cta-contact {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cta-contact a {
  color: inherit;
  text-decoration: none;
}

.cta-contact a:hover {
  color: var(--text-light);
}

/* ========================================
   CTA SECTION ESPECÍFICA PARA INDEX
======================================== */
.cta-section-index {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(
    135deg,
    var(--primary-solvex) 0%,
    var(--primary-solvex) 100%
  );
  padding: 80px 20px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.cta-section-index .cta-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section-index h2,
.cta-section-index .cta-title {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-section-index .cta-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  margin-bottom: 35px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section-index .cta-button-container {
  margin-bottom: 25px;
}

.cta-section-index .cta-button {
  background: var(--white);
  color: var(--primary-solvex);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  margin: 0 10px;
}

.cta-section-index .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
  background: rgba(255, 255, 255, 0.9);
}

.cta-section-index .cta-contact {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cta-section-index .cta-contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta-section-index .cta-contact a:hover {
  color: var(--text-light);
}

/* ========================================
   PROCESS CARDS (todas las páginas)
======================================== */
.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: all 0.4s ease;
  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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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;
  box-shadow: var(--shadow-medium);
}

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

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

/* Responsive para process cards */
@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .process-card {
    padding: 1.5rem;
  }
  
  .process-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  
  .process-number {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

/* ========================================
   KEY CARDS (VENTAS STYLE)
   Para páginas de soluciones: cliente, recovery, ia
======================================== */
.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: all 0.4s ease;
  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;
}

/* Responsive para key cards */
@media (max-width: 768px) {
  .keys-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .key-card {
    padding: 2rem;
  }
  
  .key-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
}

/* ========================================
   BENEFIT CARDS (VENTAS STYLE)
   Para páginas de soluciones: cliente, recovery, ia
======================================== */
.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: all 0.3s ease;
  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;
}

/* Responsive para benefit cards */
@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .benefit-card {
    padding: 1.5rem;
  }
}

/* ========================================
 TIPOGRAFÍA GLOBAL
======================================== */
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 para todas las páginas de soluciones */
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;
}

/* ========================================
   CASOS CARDS 
======================================== */
.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-solvex);
  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(--primary-color);
  font-weight: 600;
}

/* Responsive para casos cards */
@media (max-width: 768px) {
  .casos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .caso-card {
    padding: 1.5rem;
  }
}
