/*-------------------------------------------------------------------------------- Carrusel */
.carousel-container {
    position: relative;
    height: calc(100vh - 70px);
    /* Resta la altura del header */
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.logo-centrado {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 300px; /* ajustalo como quieras */
    z-index: 2; /* por encima del fondo */
    pointer-events: none; /* para que no interfiera con clicks */
}


/*--------------- Ajustes para pantallas chicas (responsive) */
@media (max-width: 768px) {
    .logo-centrado {
        top: 35%;           /* sube un poco más el logo */
        max-width: 250px;   /* más grande */
    }

    .carousel-container {
        max-height: 80vh;   /* más alto */
    }
}

@media (max-width: 480px) {
    .logo-centrado {
        top: 30%;
        max-width: 250px;   /* más grande */
    }

    .carousel-container {
        max-height: 70vh;   /* más alto */
    }
}

/*-------------------------------------------------------------------------------- Termina carrusel */



/*-------------------------------------------------------------------------------- Header */

.header-secundario {
    background-color: #003f66;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contenedor-header {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Para que los elementos puedan bajar en móvil */
}

.contenedor-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.contenedor-header a {
    font-size: 1.2rem;
}


/* Estilo del nav en escritorio */
.contenedor-header nav {
    display: flex;
    gap: 20px;
}

.contenedor-header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: text-decoration 0.3s;
}

.contenedor-header nav a:hover {
    text-decoration: underline;
}

/* Estilos para móvil */
@media (max-width: 600px) {
    .contenedor-header {
        justify-content: center;
    }
    
    .contenedor-header h1 {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 10px;
        font-size: 1.3rem;
    }
    
    .contenedor-header nav {
        flex-basis: 100%;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .contenedor-header nav a {
        font-size: 1.2rem;
        margin-left: 0;
    }
}


/*-------------------------------------------------------------------------------- Termina Header */

/*-------------------------------------------------------------------------------- Footer */
.footer-seccion {
    background-color: #003f66;
    color: white;
    padding: 20px 0;
    margin-top: auto;
}

.contenedor-footer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* para que se adapte y baje en móvil */
    gap: 20px; /* espacio entre columnas */
}

.footer-contacto p,
.footer-derechos p {
    margin: 5px 0;
    font-size: 1.1rem;
}

.footer-contacto a,
.footer-derechos a {
    color: #80c1ff;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.footer-contacto a:hover,
.footer-derechos a:hover {
    text-decoration: underline;
}

/* Responsive para móviles */
@media (max-width: 600px) {
    .contenedor-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 0 10px;
    }

    .footer-contacto,
    .footer-derechos {
        width: 100%;
    }
}


/*-------------------------------------------------------------------------------- Termina Footer */


/*-------------------------------------------------------------------------------- Body */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f8ff;
  /* azul muy claro */
  color: #003f66;
  /* azul oscuro para textos */
  margin: 0;
  padding: 0 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/*-------------------------------------------------------------------------------- Termina Body */
.ejemplos-container {
    max-width: 1000px;
    margin: 40px auto; /* Centrado y espacio arriba/abajo */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Espacio entre secciones */
}

.titulo-ejemplos {
    max-width: 1000px;
    margin: 40px auto 20px auto;
    padding: 0 20px;
    text-align: center;
}

.titulo-ejemplos h1 {
    font-size: 2rem;
    color: #003f66;
    margin-bottom: 0;
}

.ejemplo {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 63, 102, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;      /* Cambio para que ocupe todo el ancho disponible */
    max-width: 950px; /* Máximo ancho */
    margin: 0 auto;   /* Centrado */
    box-sizing: border-box; /* Para que padding no afecte ancho */
}

.ejemplo img {
    width: 100%;       /* Que ocupe todo el ancho del contenedor */
    max-width: 400px;  /* Máximo tamaño que tenga */
    height: auto;      /* Mantener proporción */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.ejemplo h2 {
    margin: 10px 0;
    font-size: 1.4rem;
    color: #003f66;
}

.ejemplo p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto; /* Centramos el párrafo */
}

/* Media Queries para pantallas pequeñas */
@media (max-width: 600px) {
    .ejemplos-container {
        padding: 0 10px;
        gap: 20px;
    }

    .titulo-ejemplos {
        margin: 30px 10px 15px 10px;
        padding: 0 10px;
    }

    .titulo-ejemplos h1 {
        font-size: 1.5rem;
    }

    .ejemplo {
        max-width: 100%;
        padding: 15px;
        width: 100%;
    }

    .ejemplo img {
        max-width: 100%;
        height: auto;
    }

    .ejemplo h2 {
        font-size: 1.1rem;
    }

    .ejemplo p {
        font-size: 0.9rem;
        max-width: 100%;
        padding: 0 10px;
    }
}

/*-------------------------------------------------------------------------------- Termina Ejemplos de optimización */

/*------------------- Empieza Main principal -------------------*/
/* Propuesta de Valor */
.propuesta-valor {
  max-width: 900px;
  margin: 60px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.propuesta-valor h1 {
  font-size: 2.5rem;
  color: #003f66;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.propuesta-valor p {
  font-size: 1.25rem;
  color: #333;
  line-height: 1.5;
}

/* Servicios */
.servicios-container {
  max-width: 65%;
  margin: 40px auto 60px;
  padding: 0 20px;
  text-align: center;
}

.servicios-container h2 {
  font-size: 2rem;
  color: #003f66;
  margin-bottom: 30px;
}

.servicios-container p {
  font-size: 1.2rem;
}

/* Grid para servicios */
.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Cada servicio */
.servicio {
  background-color: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 63, 102, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  text-align: center;
}

.servicio:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 63, 102, 0.15);
}

.servicio h3 {
  font-size: 1.5rem;
  color: #003f66;
  margin-bottom: 12px;
}

.servicio p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.4;
  max-width: 280px;
}

/* Formulario de contacto */
.formulario-contacto {
  max-width: 950px;
  margin: 0 auto 80px;
  padding: 25px 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 63, 102, 0.1);
  text-align: center;
}

.formulario-contacto h2 {
  font-size: 2rem;
  color: #003f66;
  margin-bottom: 20px;
}

.formulario-contacto p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

.formulario-contacto label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #003f66;
  text-align: left;
}

.formulario-contacto input[type="text"],
.formulario-contacto input[type="email"],
.formulario-contacto textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #aaccee;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: #003f66;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

.formulario-contacto input[type="text"]:focus,
.formulario-contacto input[type="email"]:focus,
.formulario-contacto textarea:focus {
  outline: none;
  border-color: #00509e;
  box-shadow: 0 0 8px #80c1ff;
}

.formulario-contacto textarea {
  resize: vertical;
  min-height: 120px;
}

.formulario-contacto button {
  background-color: #003f66;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 0;
  width: 100%;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #00509e;
}

/* Responsive pequeño */
@media (max-width: 480px) {
  .propuesta-valor h1 {
    font-size: 1.8rem;
  }

  .servicio p {
    max-width: 100%;
  }

  .formulario-contacto {
    padding: 20px 15px;
  }
}

/*------------------- Termina Main principal -------------------*/