/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* HEADER */
header {
    background-color: #1A535C;
    padding: 10px; /* Padding para el header */
}

nav {
    display: flex;
    justify-content: right; /* Alinear elementos a la izquierda */
}

.nav-button {
    color: white;
    background-color: #E63946 ;
    text-decoration: none; 
    padding: 10px 20px; /* Padding alrededor del botón */
    border: 2px solid white;
    border-radius: 5px;
    margin-right: 10px; /* Espacio entre botones */
    transition: background-color 0.3s; /* Transición suave */
}

.nav-button:hover {
    background-color: #2C7873;
    color: black;
}

/* Sección 1 */
.inicio {
    position: relative;
    background: white;
    padding: 80px 20px;
    text-align: center;
}

.logo-slogan img {
    max-width: 220px;
    height: auto;
}

.logo-slogan h2 {
    margin-top: 20px;
    font-size: 2.8em;
    color: black;
}

/* Sección 2 */
.sobre-nosotros {
    background-image: url('Fotos/fondo.png');
    background-size: cover;
    background-position: center;
    position: relative; /* Necesario para el pseudo-elemento */
    padding: 60px 20px;
    text-align: center;
    overflow: hidden; /* Asegura que el pseudo-elemento no se desborde */
}

.sobre-nosotros::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro con opacidad */
    z-index: 1; /* Asegura que esté debajo del texto */
}

.sobre-nosotros .descripcion, 
.sobre-nosotros .mision-vision {
    position: relative; /* Asegura que el texto esté por encima del pseudo-elemento */
    z-index: 2;
}

.sobre-nosotros .descripcion {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #fff;
}

.mision-vision {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.mision, .vision {
    background-color: #2dc6c1;
    color: white;
    padding: 30px;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mision h3, .vision h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: white;
}

/* Sección 3: Productos */
.productos-servicios {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.productos-servicios h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
}

.productos {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.producto {
    background: linear-gradient(135deg, rgba(0, 71, 171, 1) 0%, rgba(127, 255, 212, 1) 100%);

    width: 30%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.producto:hover {
    transform: scale(1.05); /* Efecto de expansión en hover */
}

.producto img {
    width: 100%;
    height: 250px;
    border-radius: 2%;
    object-fit: cover;
}

.producto h3 {
    margin-top: 20px;
    font-size: 1.3em;
    color: white;
}

.producto p {
    font-size: 1em;
    color: #fff;
}

/* Footer */
footer {
    background-color: #1A535C;
    color: white;
    padding: 15px 0;
    text-align: center;
    color: white;
}

.footer-links p {
  display: inline;
  margin: 0 10px; /* separador lateral */
}

footer .footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

footer .copyright {
    font-size: 1em;
    margin-top: 10px;
}

/* Esta parte es de redes sociales */
.social { 
    margin-block: 24px; 
    text-align: center; 
}
.social h2 {
  font: 700 1.4rem/1.2 system-ui, sans-serif;
  color: #f8e9cf; /* ajusta al tema de tu sitio */
  margin-bottom: 12px;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.social-redes h2{
    color: white;
}

.social-links a {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;                 /* cuadrado con puntas redondeadas */
  background: linear-gradient(135deg, rgba(0, 71, 171, 1) 0%, rgba(127, 255, 212, 1) 100%);  /* color de fondo del botón */
  color: #faf9f8;                     /* color del icono */
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: #f3f3f1;
  color: #000;                        /* icono más oscuro al hover */
}

.social-links i {
  font-size: 1.25rem;                 /* tamaño del icono */
}
/* Aquí finaliza la parte de redes sociales */

/* Estilos responsivos */
@media (max-width: 768px) {
    .inicio {
        padding: 40px 10px;
    }

    .logo-slogan h2 {
        font-size: 2.2em;
    }

    .mision-vision {
        flex-direction: column;
        gap: 20px;
    }

    .mision, .vision {
        width: 80%;
    }

    .productos {
        flex-direction: column;
        align-items: center;
    }

    .producto {
        width: 90%;
        margin-bottom: 20px;
    }
}
