:root{
  --blue:#0A3161; /* azul bandera */
  --red:#B31942;  /* rojo bandera */
  --blue-vivid:#1E56A0; /* azul más vivo */
  --red-vivid:#DC143C; /* rojo más vivo */
  --white:#FFFFFF;
  --gray:#F2F2F2;
  --gold:#d3ae6d; /* dorado más vivo */
}

html { 
  scroll-behavior: smooth; 
}

body { 
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji'; 
  color: var(--blue); 
  font-size: 18px;
}

h2, h3 { 
  color: var(--blue); 
}

.font-title { 
  font-family: 'Merriweather Sans', sans-serif; 
}

.font-accent { 
  font-family: 'Montserrat', sans-serif; 
}

.btn-primary { 
  background: linear-gradient(135deg, var(--red-vivid) 0%, var(--blue-vivid) 100%);
  color: var(--white);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::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-primary:hover { 
  background: linear-gradient(135deg, var(--blue-vivid) 0%, var(--red-vivid) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(179, 25, 66, 0.4);
}

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

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

.btn-ghost { 
  border: 2px solid var(--white); 
  color: var(--white);
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.btn-ghost:hover { 
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.2) 0%, rgba(30, 86, 160, 0.2) 100%);
  border-color: var(--red-vivid);
}

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

.btn-ghost::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.btn-ghost:hover::after {
  width: 200px;
  height: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .font-title {
    font-size: 1.5rem;
  }
  
  .btn-primary, .btn-ghost {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Header styles */
.header-logo {
  background: linear-gradient(45deg, #dc2626 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation styles */
nav a {
  font-size: 18px;
}

/* Tab styles */
.tab-dot {
  width: 12px;
  height: 12px;
  background-color: var(--blue);
}

/* Paragraph styles */
p {
  font-size: 18px;
}

/* Small text adjustments */
.text-sm {
  font-size: 16px !important;
}

.text-xs {
  font-size: 14px !important;
}

/* Text color variants for different backgrounds */
.text-dark-bg {
  color: white !important;
}

.text-light-bg {
  color: var(--blue) !important;
}

/* Contact section title fix */
.contact-title-dark {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-title-light {
  color: var(--blue) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Top Banner Styles */
.top-banner {
  position: relative;
  z-index: 50;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.top-banner-close {
  transition: all 0.2s ease;
}

.top-banner-close:hover {
  transform: scale(1.1);
}

.top-banner-cta {
  position: relative;
  overflow: hidden;
}

.top-banner-cta::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.5s;
}

.top-banner-cta:hover::before {
  left: 100%;
}

/* Process Cards Simple & Elegant */
.process-card-simple {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(21, 57, 111, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Barra superior con gradiente azul-rojo */
.process-card-simple::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--red) 50%, var(--red-vivid) 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.process-card-simple:hover::before {
  transform: scaleX(1);
}

/* Efecto de fondo sutil al hover */
.process-card-simple::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(21, 57, 111, 0.02) 0%, rgba(179, 25, 66, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.process-card-simple:hover::after {
  opacity: 1;
}

/* Efectos de hover principales */
.process-card-simple:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--blue);
}

/* Contenido con z-index para estar sobre el overlay */
.process-content-simple {
  position: relative;
  z-index: 2;
  flex: 1;
}

/* Efectos de texto al hover */
.process-card-simple:hover h3 {
  color: var(--blue-vivid);
  transform: translateX(3px);
  transition: all 0.3s ease;
}

.process-card-simple:hover p {
  color: var(--blue);
  transition: all 0.3s ease;
}

/* Efecto especial para cada caja */
.process-card-simple:nth-child(1):hover {
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(21, 57, 111, 0.2);
}

.process-card-simple:nth-child(2):hover {
  border-color: var(--red);
  box-shadow: 0 12px 30px rgba(179, 25, 66, 0.2);
}

.process-card-simple:nth-child(3):hover {
  border-color: var(--blue-vivid);
  box-shadow: 0 12px 30px rgba(26, 74, 143, 0.2);
}

.process-card-simple:nth-child(4):hover {
  border-color: var(--red-vivid);
  box-shadow: 0 12px 30px rgba(212, 36, 73, 0.2);
}

/* Animación de entrada escalonada */
.process-card-simple {
  animation: cardSlideUp 0.6s ease-out forwards;
  opacity: 0;
}

.process-card-simple:nth-child(1) {
  animation-delay: 0.1s;
}

.process-card-simple:nth-child(2) {
  animation-delay: 0.2s;
}

.process-card-simple:nth-child(3) {
  animation-delay: 0.3s;
}

.process-card-simple:nth-child(4) {
  animation-delay: 0.4s;
}

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

/* Program Cards Elegant Styles */
.program-card-simple {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(21, 57, 111, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Barra superior con gradiente azul-rojo */
.program-card-simple::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--red) 50%, var(--red-vivid) 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.program-card-simple:hover::before {
  transform: scaleX(1);
}

/* Efecto de fondo sutil al hover */
.program-card-simple::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(21, 57, 111, 0.02) 0%, rgba(179, 25, 66, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.program-card-simple:hover::after {
  opacity: 1;
}

/* Efectos de hover principales */
.program-card-simple:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--blue);
}

/* Contenido con z-index para estar sobre el overlay */
.program-content-simple {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Efectos de texto al hover */
.program-card-simple:hover h3 {
  color: var(--blue-vivid);
  transform: translateX(3px);
  transition: all 0.3s ease;
}

.program-card-simple:hover p {
  color: var(--blue);
  transition: all 0.3s ease;
}

/* Efecto especial para cada caja de programas */
.program-card-simple:nth-child(1):hover {
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(21, 57, 111, 0.2);
}

.program-card-simple:nth-child(2):hover {
  border-color: var(--red);
  box-shadow: 0 12px 30px rgba(179, 25, 66, 0.2);
}

.program-card-simple:nth-child(3):hover {
  border-color: var(--blue-vivid);
  box-shadow: 0 12px 30px rgba(26, 74, 143, 0.2);
}

.program-card-simple:nth-child(4):hover {
  border-color: var(--red-vivid);
  box-shadow: 0 12px 30px rgba(212, 36, 73, 0.2);
}

.program-card-simple:nth-child(5):hover {
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(21, 57, 111, 0.2);
}

.program-card-simple:nth-child(6):hover {
  border-color: var(--red);
  box-shadow: 0 12px 30px rgba(179, 25, 66, 0.2);
}

/* Animación de entrada escalonada para programas */
.program-card-simple {
  animation: cardSlideUp 0.6s ease-out forwards;
  opacity: 0;
}

.program-card-simple:nth-child(1) {
  animation-delay: 0.1s;
}

.program-card-simple:nth-child(2) {
  animation-delay: 0.2s;
}

.program-card-simple:nth-child(3) {
  animation-delay: 0.3s;
}

.program-card-simple:nth-child(4) {
  animation-delay: 0.4s;
}

.program-card-simple:nth-child(5) {
  animation-delay: 0.5s;
}

.program-card-simple:nth-child(6) {
  animation-delay: 0.6s;
}

/* Efectos especiales para botones dentro de las cajas */
.program-card-simple:hover .btn-primary {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 57, 111, 0.3);
  transition: all 0.3s ease;
}

/* Success Cases Section Elegant Styles */
.success-cases-section {
  position: relative;
  min-height: 500px;
}

/* Background Image (opcional) */
.success-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 1;
}

/* Background Gradient (se usa si no hay imagen) */
.success-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    var(--blue) 0%, 
    var(--blue-vivid) 25%, 
    var(--red) 50%, 
    var(--red-vivid) 75%, 
    rgba(255, 255, 255, 0.1) 100%
  );
  z-index: 1;
}

/* Success Case Cards */
.success-case-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.success-case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.success-case-card:hover::before {
  opacity: 1;
}

.success-case-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.success-case-content {
  position: relative;
  z-index: 2;
}

.success-quote-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold) 0%, #ffed4e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 213, 79, 0.3);
  transition: all 0.3s ease;
}

.success-case-card:hover .success-quote-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(255, 213, 79, 0.4);
}

.success-case-details {
  margin-top: 1rem;
}

.success-case-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.success-industry,
.success-process,
.success-amount {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.success-amount {
  background: linear-gradient(135deg, var(--gold) 0%, #ffed4e 100%);
  color: var(--blue);
  font-weight: 700;
}

.success-case-card:hover .success-industry,
.success-case-card:hover .success-process {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.success-case-card:hover .success-amount {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 213, 79, 0.4);
}

/* Animación de entrada para las cards */
.success-case-card {
  animation: successCardSlideUp 0.8s ease-out forwards;
  opacity: 0;
}

.success-case-card:nth-child(1) {
  animation-delay: 0.2s;
}

.success-case-card:nth-child(2) {
  animation-delay: 0.4s;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .success-case-card {
    padding: 1.5rem;
  }
  
  .success-quote-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }
  
  .success-case-info {
    flex-direction: column;
    align-items: flex-start;
  }
}
