/* ===== Reset general ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100%;
  background-image: url("../assets/fondo_boby.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


/* ===== Header ===== */
header {
  background: linear-gradient(90deg, #02569B, #013a6b);
  color: #fff;
  padding: 2.5% 3%;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5vw;
}

header p {
  font-size: 1.1rem;
  color: #e0e0e0;
}

header .logo {
  width: 5%;
  position: absolute;
  left: 1.7%;
  border-radius: 15px;

}
/* Clase personalizada para el fondo azul */
.navbar-azul {
  background-color: #02569B !important; /* El azul de tu diseño anterior */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Sombra para darle profundidad */
}

/* Opcional: efecto hover más claro para los enlaces centrados */
.navbar-azul .nav-link:hover {
  color: #e0e0e0 !important;
  transition: 0.3s;
}



/* ===== Sección principal ===== */
section {
  max-width: 900px;
  background-color: #fff;
  margin: 60px auto;
  padding: 60px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

}

/* Título principal */
section h2 {
  color: #005cb9;
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: capitalize;
  text-align: center;
}

/* Línea decorativa bajo el título */
section h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background-color: #005cb9;
  margin: 10px auto 30px;
  border-radius: 5px;
}

/* Subtítulo */
section h3 {

  color: #222;
  font-size: 1.5rem;
  margin-bottom: 25px;
  font-weight: 600;
}

/* Párrafos */
section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}

section li {
  text-align: left;
}

/* Imagen dentro de la sección */
section img {
  display: block;
  margin: 4.0vw auto ;
  width: 10vw;
  height: 0 auto;
  transition: transform 0.3s ease;
}
section .text{
  float: right; 
  width: 30%; 
  height: auto;
  margin: 0.5vw 0 0.1vw 0.5vw; /* arriba, derecha, abajo, izquierda */
  border-radius: 1vw;
  box-shadow: 0 4vw 10vw rgba(0,0,0,0.2);
}

section .text2{
  float: left; 
  width: 30%; 
  height: auto;
  margin: 1% 2.5% 0.5% 1%; /* arriba, derecha, abajo, izquierda */
  border-radius: 1vw;
  box-shadow: 0 4vw 10vw rgba(0,0,0,0.2);
}
 section .dart{
  width: 80%; 
  height: auto;
  border-radius: 1vw;
  box-shadow: 0 4vw 10vw rgba(0,0,0,0.2);
 }


section img:hover {
  transform: scale(1.1);
}

section .pie_De_Paguina {
  font-size: 1vw;
  color: gray;
  text-align: center;
}
section .img{
  width: 60vw;
  height: 40vw;
}
/* ===== Footer ===== */
footer {
  text-align: center;
  background: #02569B;
  color: #fff;
  padding: 25px 10px;
  font-size: 0.95rem;
  margin-top: auto;
}

/* ===== Responsivo ===== */
@media screen and (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  nav {
    flex-direction: column;
  }

  nav a {
    margin: 5px 0;
  }

  section {
    padding: 40px 25px;
  }
}

.container {
  max-width: 1100px;
  margin: 18px auto;
  padding: 28px 36px 60px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.05);
}
.container2 {
  display: flex;
  align-items: flex-start; /* alinea arriba */
  justify-content: center; /* centra ambos horizontalmente */
  gap: 0.5vw; /* espacio entre imagen y código */
  flex-wrap: wrap; /* permite que se acomoden en pantallas pequeñas */
}



.code-box {
  text-align: left;
  background: #1e1e1e;
  color: #f8f8f2;
  font-family: 'Courier New', monospace;
  border-radius: 8px;
  padding: 1.6vw;
  overflow: auto;
  max-height: 50vw;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  margin: 20px;
  width: 80%;
  right: 30vw;;
  flex: 1; /* ocupa el resto del espacio */
  min-width: 20vw; /* evita que se haga demasiado pequeño */

}

.code-box code {
  white-space: pre;
  display: block;
  font-size: 14px;
  line-height: 1.4;
}


.imgcode img {
  width: 18vw;
  height: 50vw;
  border-radius: 8px;
}

/* ===== Línea de tiempo ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding: 20px 0;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: #02569B;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 6px;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
  position: relative;
}

.timeline-item .timeline-content {
  width: 45%;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.timeline-item .timeline-content h3 {
  color: #02569B;
  margin-bottom: 10px;
}

.timeline-item .timeline-img {
  width: 22vw;
  height: 22vw;
}

.timeline-item .timeline-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.timeline-content.left {
  text-align: right;
}

.timeline-content.right {
  text-align: left;
}

@media screen and (max-width: 768px) {
  .timeline::after {
    left: 10px;
  }
  .timeline-item {
    flex-direction: column;
  }
  .timeline-item .timeline-content {
    width: 90%;
    text-align: center;
  }
}


/* ======= SECCIÓN DE VENTAJAS ======= */

.ventajas-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.ventaja-card {
  background: linear-gradient(180deg, #ffffff, #f1f5ff);
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  width: clamp(260px, 30%, 340px);
  padding: 1.8rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ventaja-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.ventaja-icono {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.ventaja-card h3 {
  color: #02569B;
  margin-bottom: 0.8rem;
}

.ventaja-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* ===== Animación suave al aparecer ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ventaja-card {
  animation: fadeUp 0.8s ease forwards;
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  .ventajas-container {
    flex-direction: column;
    align-items: center;
  }

  .ventaja-card {
    width: 80%;
  }
}

/* ======= SECCIÓN DE CARACTERÍSTICAS ======= */

.caracteristicas-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  
}

.caracteristica-card {
  background: linear-gradient(180deg, #ffffff, #f8faff);
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  width: clamp(260px, 30%, 340px);
  padding: 1.8rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.8s ease forwards;
}

.caracteristica-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.caracteristica-icono {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.caracteristica-card h3 {
  color: #02569B;
  margin-bottom: 0.8rem;
}

.caracteristica-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.caracteristica-card a {
  color: #02569B;
  font-weight: 600;
  text-decoration: none;
}

.caracteristica-card a:hover {
  text-decoration: underline;
}

/* Animación de entrada */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .caracteristicas-container {
    flex-direction: column;
    align-items: center;
  }

  .caracteristica-card {
    width: 80%;
  }
}
/* ======== SECCIÓN CARACTERÍSTICAS ======== */


.caracteristicas h2 {
  font-size: 2rem;
  color: #02569B;
  margin-bottom: 30px;
}

/* Contenedor de tarjetas */
.tarjetas-caracteristicas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Tarjeta individual */
.tarjeta {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.tarjeta h3 {
  color: #0175C2;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.tarjeta p {
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

.tarjeta code {
  background: #e8f0fe;
  color: #02569B;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}
