/* ============================================ */
/* 🟩 HERO INICIAL                             */
/* ============================================ */

.inicial-hero {
  background: linear-gradient(135deg, #f0f4f8, #e6eef5);
  padding: 120px 20px 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;

}

/* 📌 Encabezado tipo tarjeta */
.inicial-header {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 40px 50px;
  max-width: 850px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Efecto shimmer */
.inicial-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.inicial-header:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.inicial-header:hover::before {
  left: 100%;
}

/* Icono en el header */
.inicial-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f4f8, #e0e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.inicial-header:hover .inicial-icon {
  background: linear-gradient(135deg, #08306b, #0a427c);
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(8, 48, 107, 0.3);
}

.inicial-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.inicial-header:hover .inicial-icon img {
  filter: brightness(0) invert(1);
}

.inicial-header h1 {
  font-size: 2.6rem;
  color: #08306b;
  margin-bottom: 18px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.inicial-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #08306b);
  border-radius: 2px;
}

.inicial-header p {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.7;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================ */
/* 📖 DESCRIPCIÓN INICIAL                      */
/* ============================================ */

.inicial-descripcion {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 60px 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Texto */
.inicial-texto {
  flex: 1 1 500px;
  max-width: 600px;
}

.inicial-texto h2 {
  font-size: 2rem;
  color: #08306b;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
}

.inicial-texto h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #08306b);
  border-radius: 2px;
}

.inicial-texto p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
  margin-bottom: 20px;
}

/* ============================================ */
/* 🖼️ IMAGEN CON CAPTION                       */
/* ============================================ */

.inicial-imagen {
  flex: 1 1 350px;
  max-width: 450px;
}

.inicial-imagen figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
}

.inicial-imagen figure:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.inicial-imagen img {
  width: 100%;
  height: auto;
  min-height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.inicial-imagen figure:hover img {
  transform: scale(1.08);
}

.inicial-imagen figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 15px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.inicial-imagen figure:hover figcaption {
  transform: translateY(0);
}

/* ============================================ */
/* 🟦 CARACTERÍSTICAS LO QUE OFRECEMOS EN INICIAL                         */
/* ============================================ */
.inicial-caracteristicas {
  background: linear-gradient(135deg, #f8fafc, #e8f4f8);
  padding: 60px 20px;
  text-align: center;
  margin-bottom: -60px;
}

.inicial-caracteristicas h2 {
  font-size: 2rem;
  color: #08306b;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.inicial-caracteristicas h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #08306b);
  border-radius: 2px;
}

.caracteristicas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Tarjetas con hover cuadro*/
.caracteristica {
  background: #ffffff;
  padding: 0;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.caracteristica::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.caracteristica:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.caracteristica:hover::before {
  left: 100%;
}

/* Contenedor de imagen rectangular */
.caracteristica-icon {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4f8, #e0e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
}

.caracteristica:hover .caracteristica-icon {
  transform: scale(1.08);
}

.caracteristica-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
  display: block;
}

.caracteristica:hover .caracteristica-icon img {
  filter: brightness(1.1) contrast(1.05);
}

/* Contenedor de texto */
.caracteristica-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.caracteristica h3 {
  font-size: 1.3rem;
  color: #08306b;
  margin-bottom: 12px;
  margin-top: 0;
  font-weight: 600;
}

.caracteristica p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}



/* ============================================ */
/* 📱 DISEÑO RESPONSIVO                        */
/* ============================================ */

@media (max-width: 900px) {
  .inicial-hero {
    padding: 100px 20px 40px;
    min-height: auto;
  }

  .inicial-header {
    padding: 35px 30px;
  }

  .inicial-icon {
    width: 70px;
    height: 70px;
  }

  .inicial-header h1 {
    font-size: 2.2rem;
  }

  .inicial-header p {
    font-size: 1.05rem;
  }

  .inicial-descripcion {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .inicial-texto h2 {
    font-size: 1.8rem;
  }

  .inicial-texto h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .inicial-texto p {
    text-align: left;
  }

  .caracteristicas-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .inicial-hero {
    padding: 90px 15px 30px;
  }

  .inicial-header {
    padding: 30px 25px;
    border-radius: 12px;
  }

  .inicial-icon {
    width: 60px;
    height: 60px;
  }

  .inicial-header h1 {
    font-size: 2rem;
  }

  .inicial-header p {
    font-size: 1rem;
  }

  .inicial-texto h2 {
    font-size: 1.7rem;
  }

  .inicial-texto p {
    font-size: 0.95rem;
  }

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

  .caracteristica {
    padding: 25px 20px;
  }

  .caracteristica h3 {
    font-size: 1.2rem;
  }

  .caracteristica p {
    font-size: 0.95rem;
  }
}

/* ============================================ */
/* ♿ MEJORAS DE ACCESIBILIDAD                 */
/* ============================================ */

/* Focus visible */
.caracteristica:focus-within,
.inicial-imagen figure:focus-within {
  outline: 3px solid #FFD700;
  outline-offset: 4px;
}

/* Alto contraste */
@media (prefers-contrast: high) {
  .inicial-header h1,
  .inicial-texto h2,
  .caracteristica h3 {
    color: #000;
  }

  .inicial-header p,
  .inicial-texto p,
  .caracteristica p {
    color: #000;
  }
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .inicial-header,
  .inicial-icon,
  .caracteristica,
  .caracteristica-icon,
  .inicial-imagen figure,
  .inicial-imagen img {
    transition: none;
  }

  .inicial-header::before,
  .caracteristica::before {
    display: none;
  }
}

/* ============================================ */
/* 🎨 ANIMACIONES DE ENTRADA                   */
/* ============================================ */

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

@media (prefers-reduced-motion: no-preference) {
  .caracteristica {
    animation: fadeInUp 0.6s ease-out;
  }

  .caracteristica:nth-child(1) { animation-delay: 0.1s; }
  .caracteristica:nth-child(2) { animation-delay: 0.2s; }
  .caracteristica:nth-child(3) { animation-delay: 0.3s; }
  .caracteristica:nth-child(4) { animation-delay: 0.4s; }
}