:root {
    --blanco: #ffffff;
    --negro: #000000;
    --azulclaro: #27509B;
    --azuloscuro: #2A385D;
    --verdeclaro: #A1C372;
    --verdeoscuro: #748C53;
    --verdewhatsapp: #29A71A;
    --grisclaro: #f8f9f9;
    --grisoscuro: #e5e8e8;
}

/* Estilos globales */
html {
    font-size: 62.5%;
    box-sizing: border-box;
}

body {
    font-size: 16px;
    font-family: "Krub", sans-serif, arial;
}

.contenedor {
    max-width: 120rem;
    width: 90%;
    margin: 0 auto;
}

/* Header Redes */
.header-redes {
    background-color: var(--azuloscuro);
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Alinea todo a la derecha */
    padding: 0 2rem;
    font-size: 1.2rem;
    color: var(--blanco);
    gap: 2rem;
    /* Espacio entre contacto y redes */
}

.header-redes p {
    margin: 0;
    color: var(--blanco);
    font-weight: 700;
}

.header-redes .contacto {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.header-redes .contacto img {
    height: 1.5rem;
    width: auto;
}

.header-redes .redes-icons {
    display: flex;
    gap: 1rem;
}

.header-redes .redes-icons a img {
    height: 1.8rem;
    width: auto;
    transition: transform 0.2s ease;
}

.header-redes .redes-icons a img:hover {
    transform: scale(1.1);
}

/* Header y navegación */
.header {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
}

.logo-principal {
    margin: 1rem 0;
}

.logo-principal img {
    width: 14rem;
}

.navegacion-principal {
    display: flex;
    margin: auto;
    font-size: 1.8rem;
}

.navegacion-principal a {
    color: var(--azulclaro);
    text-decoration: none;
    margin: 0 1rem;
    padding: 1rem;
}

.navegacion-principal a:hover {
    color: var(--blanco);
    background-color: var(--azulclaro);
    border-radius: 3rem;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    margin-left: auto;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--azulclaro);
    margin: 5px auto;
    transition: all 0.3s ease;
}

/* Estilos móviles */
@media (max-width: 768px) {
    .navegacion-principal {
        display: none;
        flex-direction: column;
        background-color: var(--azulclaro);
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    .navegacion-principal.activo {
        display: flex;
    }

    .navegacion-principal a {
        color: var(--blanco);
        padding: 1.5rem;
        text-align: center;
        display: block;
        width: 100%;
    }

    .navegacion-principal a:hover {
        color: var(--azulclaro);
        background-color: var(--blanco);
        border-radius: 3rem;
    }

    .menu-toggle {
        display: block;
    }

    .header {
        justify-content: space-between;
    }

    /* Solo lo necesario para móviles */
    .header-redes {
        flex-direction: column;
        align-items: flex-end;
        height: auto;
        padding: 0.5rem 1rem;
    }
}


/* Slider */
.slider {
    position: relative;
    overflow: hidden;
    max-height: 631px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    /* Para que no se vea un fondo blanco en pantallas grandes */
}

.slider-wrapper {
    display: flex;
    width: 300%;
    transition: transform 1s ease-in-out;
}

.slide {
    position: relative;
    flex: 0 0 100%;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 631px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.caption {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 1rem;
    width: 80%;
    max-width: 800px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}


.caption h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.caption p {
    font-size: 1.6rem;
}

.caption .btn {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--verdeclaro);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
}

/* Dots del slider */
.dots {
    text-align: center;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: var(--azuloscuro);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: var(--verdeclaro);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .caption h2 {
        font-size: 2rem;
    }

    .caption p {
        font-size: 1.2rem;
    }

    .caption {
        padding: 1rem;
        width: 90%;
    }

    .slide img {
        object-fit: cover;
        max-height: 300px;
    }

    .dots {
        bottom: 1rem;
        height: 10px;
        width: 10px;
        margin: 0 3px;
    }
}


/*estilos de nosotros*/

.bloque-nosotros {
    display: flex;
    padding: 4rem 0;
}


.imagen-nosotros {
    margin-top: 3rem;
    flex: 0 0 auto;
    width: 340px;
    height: 340px;
}

.imagen-nosotros img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50rem;
}

.quienes-somos {
    margin: 0 8rem;
}

.quienes-somos h2 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--verdeclaro);
    text-align: center;
    margin-bottom: 4rem;
}

.quienes-somos p {
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--azuloscuro);
    text-align: justify;
    font-weight: 200;
    margin-bottom: 5rem;
}

.boton-nosotros {
    display: flex;
    justify-content: center;
}

.btn-nosotros {
    background-color: var(--azulclaro);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .bloque-nosotros {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
    }

    .imagen-nosotros {
        width: 200px;
        height: 200px;
        margin-bottom: 2rem;
    }

    .quienes-somos {
        margin: 0;
    }

    .quienes-somos p {
        text-align: center;
    }
}



/*boton flotante whatsaspp*/
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 70px;
    height: 70px;
    background-color: #29A71A;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 60px;
    height: 60px;
}

/*seccion de servicios*/

/* Fondo parallax para la sección de servicios */
.parallax-fondo {
    background-color: var(--azulclaro);
    background-image: url('../images/servicios.webp');
    /* Cambia el nombre si usas otra imagen */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
    color: #000;
}

/* Título de la sección */
.parallax-fondo h2 {
    text-align: center;
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Contenedor tipo grid para las cards */
.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* antes 280px */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .grid-servicios {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Estilo general de cada card */
.card-servicio {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Imagen en la parte superior de la card */
.imagen-servicio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Contenido textual de la card */
.contenido-servicio {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Título del servicio */
.contenido-servicio h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #003366;
    /* Puedes cambiar por tu azul institucional */
}

/* Párrafo de descripción */
.contenido-servicio p {
    text-align: justify;
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.5;
    word-spacing: -1.5px;
    
}

/* Botón de más información */
.btn-info {
    display: inline-block;
    text-align: center;
    background-color: #007ACC;
    /* Azul institucional o el que uses */
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-info:hover {
    background-color: #005c99;
}

/* Sección contacto general */
.contacto-seccion {
    background-color: var(--blanco);
    padding: 4rem 2rem;
}

/* Contenedor en dos columnas */
.contacto-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* Columna izquierda: formulario */
.contacto-formulario {
    flex: 1 1 500px;
    background-color: var(--grisclaro);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contacto-formulario h2 {
    font-size: 3rem;
    color: var(--azulclaro);
    margin-bottom: 3rem;
    text-align: center;
}

.contacto-formulario legend {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: bold;
    color: var(--verdeclaro);
}

.contacto-formulario fieldset {
    border: none;
    padding: 0;
    font-size: 1.5rem;
}

.contacto-formulario label {
    display: block;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
    font-weight: 600;
    color: var(--azulclaro);
}

.contacto-formulario input[type="text"],
.contacto-formulario input[type="tel"],
.contacto-formulario input[type="email"],
.contacto-formulario textarea {
    width: 95%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.3rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
    outline: none;
    border-color: var(--azulclaro);
}

/* Botón centrado */
.boton-contacto {
    text-align: center;
}

/* Botón enviar */
.contacto-formulario input[type="submit"] {
    background-color: var(--verdeclaro);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contacto-formulario input[type="submit"]:hover {
    background-color: #8FB95E;
}

/* Columna derecha: imagen y texto */
.contacto-info {
    flex: 1 1 400px;
    text-align: center;
}

/* Imagen decorativa con forma orgánica */
.contacto-info img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 40% 20% 40% 20% / 50% 20% 50% 20%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

/* Texto acompañante */
.contacto-info p {
    font-size: 2rem;
    color: var(--azulclaro);
    line-height: 1.6;
}

/*Estilos Footer*/
.footer {
    background-color: var(--azuloscuro);
    color: var(--blanco);
    padding: 3rem 2rem 1rem;
    font-size: 1.5rem;
}

.footer-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* Columnas del footer */
.footer-col {
    flex: 1 1 300px;
}

.footer h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--verdeclaro);
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Iconos de redes sociales */
.iconos-redes a {
    display: inline-block;
    margin-right: 1rem;
    transition: transform 0.3s;
}

.iconos-redes img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.iconos-redes a:hover {
    transform: scale(1.2);
}

/* Texto y enlaces */
.footer a {
    color: var(--verdeclaro);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Logo */
.logo-footer img {
    max-width: 180px;
    height: auto;
}

/* Línea inferior */
.footer-copy {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 1rem;
}