/* Importar fuentes desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Reset y ajustes base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    background-color: #f4f7ff;
    color: #222;
    line-height: 1.6;
}

/* Encabezado */
.top-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #e3e8ff;
    padding: 20px;
    text-align: center;
}

/* Logo + título */
.logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo-box img {
    width: 240px;
    height: auto;
}

.logo-box h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #1d3edc;
    font-weight: 700;
}

/* Menú */
.main-nav {
    margin-top: 20px;
    width: 100%;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    background-color: #a8c4f7;
}

.menu li a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    padding: 8px 16px;
    transition: color 0.3s ease;
}

.menu li a:hover {
    color: #0a1cd4;
}

/* Slider */
/* Contenedor del slider */
.slider ul {
    margin-top: 30px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

/* Imágenes del slider */
.slider ul li img {
    width: 100%;
    max-width: 400px; /* tamaño máximo en pantallas grandes */
    height: auto;
    aspect-ratio: 16 / 9; /* mantiene proporción */
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider ul li img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
/* Sección general */
.info-general {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
}

.info-general > div {
    background-color: #3b4de3;
    color: white;
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.info-general h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.info-general p {
    font-size: 1rem;
}

.titulo-filosofia {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1d3edc;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Servicios */
/* Sección de Servicios */
.servicios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px 20px;
    background-color: #0a1cd4; /* Azul principal */
    text-align: center;
}

/* Título principal */
.servicios > h2 {
    width: 100%;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Tarjetas individuales */
.servicios > div {
    background-color: #ffffff;
    color: #0a1cd4;
    width: 300px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover */
.servicios > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Títulos y texto dentro de tarjetas */
.servicios h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.servicios p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Formulario de contacto */
form {
    background-color: #dce3ff;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

form fieldset {
    border: none;
    padding: 0;
}

form legend {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #0a1cd4;
}

form label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: #1d1d4f;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #b5c0e6;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fff;
}

form textarea {
    resize: none;
}

form button {
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #1d3edc;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0a1cd4;
}
.mensaje-exito {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alert-error {
  background-color: #dc3545;
  color: #fff;
  padding: 10px;
  text-align: center;
  margin-bottom: 15px;
  border-radius: 6px;
  font-weight: bold;
}

.redes-sociales {
    background-color: #e3e8ff;
    text-align: center;
    padding: 30px 20px;
}

.redes-sociales h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #1d3edc;
}

.iconos-redes {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.iconos-redes a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.iconos-redes a img:hover {
    transform: scale(1.2);
}

/* Footer */
footer {
    background-color: #1d3edc;
    color: white;
    padding: 15px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.95rem;
}

/* Títulos */
h1, h2, h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

/* Responsivo */
@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .menu {
        flex-direction: column;
        gap: 15px;
    }

    .slider ul {
        flex-direction: column;
        gap: 20px;
    }

    .info-general,
    .servicios {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .servicios {
        flex-direction: column;
        align-items: center;
    }

    .servicios > div {
        width: 90%;
    }

    .servicios > h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .slider ul li img {
        max-width: 90vw; /* ocupa casi todo el ancho visible */
    }
}