/* ================================================================
   VIVE I.P.S — home.css
   Estilos específicos de la página principal (index.html)
   ================================================================ */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--azul) 0%, #1e7db8 45%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 48px 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroPulse 7s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -120px;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroPulse 9s ease-in-out infinite reverse;
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-circles span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
}
.hero-circles span:nth-child(1) { width:130px;height:130px; top:14%;left:7%; animation: floatY 7s ease-in-out infinite; }
.hero-circles span:nth-child(2) { width:55px;height:55px; top:62%;left:4%; background:rgba(255,255,255,0.04); animation: floatY 5s ease-in-out infinite 1s; }
.hero-circles span:nth-child(3) { width:210px;height:210px; top:8%;right:4%; animation: floatY 9s ease-in-out infinite 2s; }
.hero-circles span:nth-child(4) { width:75px;height:75px; bottom:18%;right:10%; background:rgba(255,255,255,0.04); animation: floatY 6s ease-in-out infinite 0.5s; }

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

.hero-content {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  position: relative;
  z-index: 1;
}

/* Hero texto */
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-bottom: 22px;
  animation: fadeUp 0.8s ease both;
}
.hero-text h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(40px, 5.5vw, 70px);
  font-weight: 900;
  color: white;
  line-height: 1.08;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease 0.15s both;
}
.hero-text h1 span { color: #a8f0f4; }
.hero-text p {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.45s both;
}
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  animation: fadeUp 0.8s ease 0.6s both;
}
.hero-stat strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 34px;
  font-weight: 900;
  color: white;
}
.hero-stat span { font-size: 13px; color: rgba(255,255,255,0.65); }

/* Hero imagen */
.hero-image-wrap {
  flex: 0 0 390px;
  position: relative;
  animation: fadeUp 0.9s ease 0.2s both;
}
.hero-image-bg {
  width: 390px;
  height: 455px;
  background: rgba(255,255,255,0.11);
  border-radius: 42% 58% 54% 46% / 46% 42% 58% 54%;
  border: 2px solid rgba(255,255,255,0.18);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22), inset 0 0 60px rgba(255,255,255,0.04);
}
.hero-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-floating-card {
  position: absolute;
  bottom: -16px;
  left: -28px;
  background: white;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatY 4s ease-in-out infinite;
}
.hero-floating-card .card-icon {
  width: 46px; height: 46px;
  background: var(--teal-light);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.hero-floating-card strong { display: block; font-size: 14px; color: var(--texto); font-weight: 700; }
.hero-floating-card span { font-size: 12px; color: var(--texto-suave); }

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

/* ── SERVICIOS ── */
#servicios {
  padding: 90px 48px;
  background: var(--gris);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.service-card {
  background: white;
  border-radius: var(--radio-xl);
  padding: 32px 28px;
  box-shadow: var(--sombra-sm);
  border: 1px solid rgba(27,90,166,0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradiente);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: var(--teal-light);
  border-radius: var(--radio-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 10px;
}
.service-card p { font-size: 14px; color: var(--texto-suave); line-height: 1.65; }

/* ── MISIÓN Y VISIÓN ── */
#mision { padding: 90px 48px; background: white; }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.mv-card {
  border-radius: var(--radio-xl);
  padding: 48px 44px;
  color: white;
  position: relative;
  overflow: hidden;
}
.mv-card.mision { background: linear-gradient(135deg, var(--azul), #1e7db8); }
.mv-card.vision  { background: linear-gradient(135deg, var(--teal), #2dcad5); }
.mv-card::after {
  content: '';
  position: absolute;
  bottom: -50px; right: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.mv-icon { font-size: 46px; margin-bottom: 18px; display: block; }
.mv-card h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 14px;
}
.mv-card p { font-size: 15px; line-height: 1.8; opacity: 0.88; }

.valores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.valor-item {
  background: var(--gris);
  border-radius: var(--radio-lg);
  padding: 22px 16px;
  text-align: center;
  border: 1px solid rgba(27,90,166,0.06);
  transition: all 0.3s ease;
}
.valor-item:hover {
  background: var(--teal-light);
  border-color: var(--teal);
  transform: translateY(-4px);
}
.valor-item span { font-size: 30px; display: block; margin-bottom: 10px; }
.valor-item strong { font-size: 13px; font-weight: 700; color: var(--azul); }

/* ── CONTACTO ── */
#contacto { padding: 90px 48px; background: var(--gris); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contacto-info h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 28px;
}
.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.contacto-icon {
  width: 46px; height: 46px;
  background: var(--gradiente);
  border-radius: var(--radio-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contacto-item strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.contacto-item span { font-size: 14px; color: var(--texto-suave); line-height: 1.6; }

.contacto-form-card {
  background: white;
  border-radius: var(--radio-xl);
  padding: 40px;
  box-shadow: var(--sombra-md);
}
.contacto-form-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── RESPONSIVE HOME ── */
@media (max-width: 1024px) {
  .hero, #servicios, #mision, #contacto { padding-left: 24px; padding-right: 24px; }
  .valores-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero-content { flex-direction: column; text-align: center; }
  .hero-text p { max-width: 100%; }
  .hero-btns, .hero-stats { justify-content: center; }
  .hero-image-wrap { display: none; }
  .mv-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; }
}
