/* NO usar first-child para evitar romper subpáginas */
/* El hero original se oculta via JavaScript basándose en contenido de texto */

/* Logo del header se maneja via JavaScript en custom-logo.js */

/* Asegurar que custom-hero siempre sea visible */
.custom-hero {
  display: block !important;
  visibility: visible !important;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  padding: 60px 20px 60px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.custom-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.custom-hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

/* Reducir tamaño del robot 40% */
.custom-hero-robot {
  width: 120px;
  height: auto;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.custom-hero-text h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.custom-hero-text p {
  font-size: 16px;
  margin: 0;
  opacity: 0.95;
  line-height: 1.5;
}

.desktop-subtitle {
  display: none;
}

.mobile-subtitle {
  display: block;
}

.custom-hero-badge {
  background: #ef4444;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  margin-bottom: 30px;
}

/* CTA Button in Hero - MÁS PROMINENTE */
.custom-hero-cta {
  background: #fbbf24;
  border: 3px solid #f59e0b;
  color: #1e3a8a;
  padding: 16px 50px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 20px;
  margin: 10px 0 20px 0;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-hero-cta:hover {
  background: #f59e0b;
  color: #1e3a8a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
}

/* Insurance Cards - Mobile: 2x2 grid */
.custom-insurance-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.custom-insurance-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.custom-insurance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.custom-insurance-card svg {
  width: 50px;
  height: 50px;
  stroke: #1e40af;
}

.custom-insurance-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.custom-insurance-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0;
}

/* Trust Badges */
.custom-trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.custom-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.2);
  padding: 10px 20px;
  border-radius: 20px;
  flex-direction: column;
}

.custom-rating-stars {
  color: #fbbf24;
  font-size: 18px;
}

.custom-rating-text {
  font-size: 14px;
  font-weight: 600;
}

/* Banner Animado de Aseguradoras */
.custom-insurers-banner {
  background: white;
  padding: 30px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.custom-insurers-scroll {
  display: flex;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.custom-insurers-scroll img {
  height: 40px;
  width: auto;
  margin: 0 25px;
  filter: grayscale(0%);
  opacity: 1;
  transition: all 0.3s;
}

.custom-insurers-scroll img:hover {
  transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive - Desktop */
@media (min-width: 768px) {
  .custom-hero {
    padding: 80px 40px 80px;
  }
  
  .custom-hero-main {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
  }
  
  /* Robot 40% más pequeño: era 250px, ahora 150px */
  .custom-hero-robot {
    width: 150px;
  }
  
  .custom-hero-text {
    text-align: left;
    max-width: 600px;
  }
  
  .custom-hero-text h1 {
    font-size: 42px;
  }
  
  .custom-hero-text p {
    font-size: 20px;
  }
  
  .desktop-subtitle {
    display: block;
  }
  
  .mobile-subtitle {
    display: none;
  }
  
  /* En desktop, mantener margen normal */
  .custom-hero-cta {
    margin: 20px 0;
  }
  
  /* Desktop: 4 cards en una sola línea horizontal */
  .custom-insurance-cards {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1000px;
    gap: 20px;
  }
  
  .custom-insurance-card {
    padding: 25px;
  }
  
  .custom-insurance-card svg {
    width: 60px;
    height: 60px;
  }
  
  .custom-insurance-card img {
    width: 60px;
    height: 60px;
  }
  
  .custom-insurance-card h3 {
    font-size: 16px;
  }
  
  .custom-rating {
    flex-direction: row;
  }
  
  .custom-rating-stars {
    font-size: 20px;
  }
  
  .custom-rating-text {
    font-size: 16px;
  }
  
  .custom-insurers-scroll img {
    height: 50px;
    margin: 0 30px;
  }
}

/* Ajustar el espaciado del contenido */
#root > div > main {
  padding-top: 0 !important;
}
