

/*Contenedor del cuerpo de la página*/
body {
    margin: 0; /* Margen superior e inferior */
    padding: 0;
    
}


.wrapper {
  max-width: 3000px; /* Puedes ajustar esto a 1100px, 1000px, etc. según tu gusto */
  margin: 0 auto;     /* Centra horizontalmente */
  padding: 0 0px;     /* Espaciado interno opcional */
  box-sizing: border-box;
}





/*-----------------------------ENCABEZADO CON REDES, TELEFONO Y DIRECCIÓN-------------------------*/

                                    
                                    
/*Contenedor */





.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    z-index: 9999;
}

.top-bar {
    
    font-family: "Libertinus Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    
    background: #3b9240;;
    /*background: linear-gradient(135deg, #169227, #d2c887);*/
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 5vw; /* Igual que la navbar */
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap; /* Permite que los ítems bajen si no caben */
    gap: 1rem;        /* Espacio entre elementos al hacer zoom */
    

}


/*Margen y alineación*/
.contact-info span {
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem; /* Escalable con zoom */
    word-break: break-word;
}

.social-icons a {
    background-color: rgb(255, 255, 255);
    color: #169227;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

/*Al hacer hoover*/
.social-icons a:hover {
    background-color: #053018cc;
    transform: scale(1.1);
}

/*----------------------SECCIÓN DE BARRA DE NAVEGACIÓN Y LOGO, SUB MENUS-----------------------*/


                                    
/* Contenedor de la barra de navegación */
.navbar {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5vw;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    flex-wrap: nowrap; /* importante: evitar salto de la barra completa */
    gap: 1rem;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Contenedor para logo */
.navbar-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 200px;
}

/* Contenedor de los ítems del menú */
.navbar-right {
    display: flex;
    flex-grow: 1;
    flex-wrap: wrap;               /* permite que un ítem salte abajo */
    justify-content: flex-start;   /* que se acerque al logo */
    align-items: flex-start;       /* importante: alinea arriba */
    gap: 30px;
    min-width: 300px;
    max-width: 100%;
    position: relative;
}

/* Estilos generales de los links */
.navbar-right a {
    white-space: nowrap;           /* que no parta el texto */
}

/* Estilos para la lista de navegación para Ul en general de la barra que son los menus */
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end; /* Alinea a la derecha */
    gap: 1rem;
}



/*Instancia a para texto y distribuciones*/
.navbar a {

    text-decoration: none;
    color: rgb(38, 134, 67);
    font-family: sans-serif;
    font-size: 1.4rem;        /* Mejor usar rem para que se escale */
    padding: 8px 12px;        /* Valores positivos, antes tenías negativos */
    word-wrap: break-word;    /* Rompe el texto si es muy largo */
}

/*Instancia izquierda imagen Logo*/
.logo-img {
    height: 120px;       /* Ajusta el alto */
    width: auto;        /* Mantiene proporción */
    display: block;     /* Elimina espacios indeseados */
    margin-left: 45%; /* Espacio a la izquierda */
    flex-wrap: wrap;
}




.navbar-right li {
    white-space: nowrap;
}

.navbar-right li a {
    font-weight: bold;
}   

/*Hoover barra de navegación*/
.navbar a:hover {
    color: #023009; /* Cambia color al pasar el mouse */
    
}


/* Estilos para el submenú */
/*Contenedor general del expacio externo del sub-menú*/
.dropdown ul{
    
    margin: 0%;
    padding: 0%;
    
}

/* Submenú oculto por defecto */
.dropdown-content {

    display: none;
    position: absolute;
    top: auto;
    background-color: rgb(15, 9, 9);
    flex-direction: column;
    z-index: 1000;
    width: 100%;

    
}

/*Estilo drop down*/
.dropdown-content li {
    background-color: white;
    transition: background-color 0.2s ease;
    width: 100%; /* Asegura que ocupe todo el ancho del submenú */

    margin: auto;
}

/* Alineación vertical sub-menú distribucion contenedor */
.dropdown-content li a {
    display: block;
    margin: auto;
    width: auto;
    padding: 12px 16px;
    color: #206a4e;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

/*Cuando se hace hover sobre cada sub-menú*/
.dropdown-content li a:hover {
    width: auto;
    margin: auto;
    background-color: #169227;; /* Verde oscuro al pasar */
    color: white;

}

/* Mostrar sub-menú al pasar el cursor */
.dropdown:hover .dropdown-content {
    display: block;
    animation: dropdown-fade 0.2s ease-in-out;
}

/* Para que el dropdown no empuje el resto del contenido */
.dropdown {
    position: relative;
}

/* Animación del sub-menú al desplegar */
@keyframes dropdown-fade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}   



/*----------------------SECCIÓN IMANGEN, BIENVENIDA Y BOTON CONTACTO-----------------------*/



/*Seccion Imagen principal*/
/*Imagen en ruta posicion y tamaño*/
.hero-section {
    background-image: url('img/adulto.jpg'); 
    background-size: cover;          /* ocupa todo el contenedor */
    background-position: center;
    background-repeat: no-repeat;    /* evita repeticiones */
    
    width: 100%;
    height: calc(100vh - 100px);     /* resta el alto real del header */
    margin-top: 200px;               /* baja toda la sección con sombra */
    
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/*Overlay para oscurecer la imagen y centrar el contenido de bienvenida*/
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Oscurece la imagen */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 80px;
    
}

/*Contenedor tamaño y estilo de bienvenida y boton*/
.hero-content { 
    
    max-width: 600px;
    color: white;
}
.hero-content h2 {
    font-family: "DM Sans", sans-serif;
    font-weight: 400; /* regular */
    font-size: 55px;
    
}
.hero-content p {
    font-size: 30px;
    font-family: "Libertinus Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
}

/*Boton de contacto*/
.hero-button {
    font-family: "Libertinus Sans", system-ui, -apple-system;
    font-weight: 400;
    background-color: #2e7d32; /* verde oscuro ejemplo */
    color: white;
    border: 2px solid #2e7d32;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.6rem;
}

/*Al hacer hover al boton*/
.hero-button:hover {
    background-color: white;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}



/*------------------------------------BANNER INFORMATIVO---------------------------------------*/



/**/
.info-banner {
    margin-top: 50px;

    text-align: center;
    /*background: linear-gradient(135deg, #169227, #d2c887);*/
    background: #3b9240; /* degradado suave verde */
    padding: 60px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* sutil sombra */
}

.info-banner h2 {
    font-size: 2.5rem;
    font-family: "DM Sans", sans-serif;
	font-weight: 400; /* regular */
    color: #ffffff; /* verde profundo */
    margin-bottom: 20px;
}

.info-banner p {
    font-size: 1.7rem;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: "Libertinus Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
}


/*------------------------------------BANNER CASA---------------------------------------*/
/*Distribución del contenedor de fondo*/
.content-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 10%;
    gap: 40px;
    background-color: rgb(255, 255, 255);
}

/*Imagen frente del hogar*/
.content-image img {
    width: 400px;
    height: 400px;
    border-radius: 12px;
}
/*titulo*/
.content-text1 h2{
    font-size: 40px;
    padding-bottom: 2%;
    font-family: "DM Sans", sans-serif;
	font-weight: 400; /* regular */
    
}
/*parrafo*/
.content-text1 p{
    font-size: 1.4rem;
    padding-bottom: 2%;
    line-height: 1.6;
    font-family: "Libertinus Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
}

/*Boton para leer mas*/
.content-button {
    font-family: "Libertinus Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
    background-color: #2e7d32; /* verde oscuro ejemplo */
    color: white;
    border: 2px solid #2e7d32;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

/*Hover boton*/
.content-button:hover {
    background-color: white;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}


/*------------------------------------BANNER SERVICIOS---------------------------------------*/

.intro-servicios {
    text-align: center;
    background: linear-gradient(to right, #e8f5e9, #f1f8e9); /* degradado suave verde */
    padding: 60px 20px;
    border-top: 4px solid #a2cf6e; /* línea decorativa superior */
    border-bottom: 4px solid #a2cf6e; /* línea decorativa inferior */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* sutil sombra */
}

.intro-servicios h2 {
    font-family: "DM Sans", sans-serif;
	font-weight: 400; /* regular */
    font-size: 2.2rem;
    color: #2e7d32; /* verde profundo */
    margin-bottom: 20px;
}

.intro-servicios p {
    font-size: 1.3rem;
    color: #4b4b4b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: "Libertinus Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
}


/*----------------------------------------SERVICIOS-------------------------------------------*/


.servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 30px;
    padding: 60px 20px;
    background-color: #f8f1ef;
    max-width: 1200px; /* límite para centrar el contenido */
    margin: 0 auto;     /* centra el grid en la página */
}
.servicio {
    background: #d6dddd; /* blanco para que la sombra resalte */
    box-shadow: 10px 10px 3px rgba(0, 0, 0, 0.2); /* sombra visible */
    padding: 30px;
    border-radius: 10px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}

.servicio:hover {
    transform: translateY(-5px);
}

.servicio img {
    width: 60px;
    margin-bottom: 20px;
}

.servicio h3 {
    font-family: "DM Sans", sans-serif;
	font-weight: 400; /* regular */
    color: #000000; /* rojo fuerte */
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.servicio p {
    font-family: "Libertinus Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;   
    color: #111;
    font-size: 1.1rem;
    margin-bottom: 30px;

}


/*imagenes servicios*/


.servicios-fisica-image img{
    width: 300px;
    height: auto;
    border-radius: 12px;
}


.servicios-ocupacional-image img{
    width: 205px;
    height: auto;
    border-radius: 12px;
}

.servicios-acompañamiento-image img{
    width: 270px;
    height: auto;
    border-radius: 12px;
}

.servicios-emocional-image img{
    width: 300px;
    height: auto;
    border-radius: 12px;
}

.servicios-salud-image img{
    width: 300px;
    height: auto;
    border-radius: 12px;
}

.servicios-alimentación-image img{
    width: 300px;
    height: auto;
    border-radius: 12px;
}



/*-------------------------------------CARRUSEL DE VALORES-----------------------------------------*/


/*Contenedor de seccion*/
.valores-carrusel {
    
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
}

/*Titulo*/
.valores-carrusel h2 {

    font-family: "DM Sans", sans-serif;
	font-weight: bold;
    color: #2e7d32;
    font-size: 36px;
    margin-bottom: 10px;
}

/**/
.valores-carrusel .intro {
    font-size: 18px;
    color: #333;
    margin-bottom: 40px;
}


/*Flecha y puntos posicion*/
.carrusel {
    
    position: relative;
    max-width: 900px;
    margin: auto;
}




.slide {
  display: none;
  transition: opacity 0.5s ease;
}

.slide.active {
  display: block;
}

.valor-texto {
  font-style: italic;
  font-size: 20px;
  color: #333;
}

.autor {
  color: #000000;
  margin-top: 10px;
  font-weight: bold;
  font-size: large;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 10%;
  width: auto;
  padding: 8px 14px;
  color:#2e7d32;
  font-size: 28px;
  background: transparent;
  border: none;
  user-select: none;
}

.prev { left: 0; }
.next { right: 0; }

.dots {
  text-align: center;
  margin-top: 20px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: #2e7d32;
}


/*----------------------------------------VÍDEO-------------------------------------------*/


/*Contenedor de fondo de la seccion*/
.video-section {
    background-color: #ffffff;
    text-align: center;
    
    margin: 0%;
}

/*Texto estilo*/
.video-section h2 {
    font-family: "DM Sans", sans-serif;
	font-weight: bold; /* regular */

    color: #2e7d32;
    font-size: 2rem;
    margin-top: 5%;
    margin-bottom: 2%;
}


/*Contenedor del video fondo*/
.video-container {
    position: relative;
    display: flex;
    justify-content: center;  /* centra horizontal */
    align-items: center;      /* centra vertical */
    height: 400px;
    
    background-color: #ffffff;
    
}

/*Video*/
.video-container video {
    position: absolute;
    width: 50%;
    height: 100%;
    
    object-fit: cover; /* corta pero rellena */
    border: none;
    border-radius: 16px;
    margin: 0%;
    padding: 0%;
}


/*----------------------------------------PREGUNTA FINAL----------------------------------------*/



.final-section {
    margin-top: 0%;
    margin-bottom: 10%;
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.info {
    font-family: "DM Sans", sans-serif;
	font-weight: 400; /* regular */
    background-color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    display: flex;              /* activa flexbox */
    justify-content: center;    /* centra verticalmente si tiene altura */
    margin: 60px;  
}

.final-button {
    font-family: "DM Sans", sans-serif;
	font-weight: 400; /* regular */
    font-size: 30px;
    background-color: #2e7d32; /* verde oscuro ejemplo */
    color: white;
    border: 2px solid #2e7d32;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

/*Al hacer hover al boton*/
.final-button:hover {
    background-color: white;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}




/*-------------------------------------INFORMACION FINAL DE PIE-----------------------------------------*/


/*Contenedor de la seccion*/
.footer-section {
    
    display: flex;
    margin: 0%;
    padding: 0%;
    border-top: 0%;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    color: white;
}

/*Contenedor de logo y redes*/
.logo-redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;flex: 1 1 200px;
    margin-left: 8%;
}

/*Logo*/
.logo-link {
    width: 200px;
    height: auto;
    margin: auto;
}

/*Iconos*/
.social-icons-final a{
    
    display: flex;
    background-color: #169227;
    color: rgb(255, 255, 255);
    margin: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;

}

/*Al hacer hoover*/
.social-icons-final a:hover {
    background-color: #77da6acc;
    transform: scale(1.1);
}






/*Contenedor de columnas de pie de pagina*/
/*Distribucion de columnas*/    
.footer-section{
    margin-top: 15%;
}
.footer-columns {
    
    padding: 0%;
    margin-top: -120px;
    padding: 0%;

    background-color: rgb(255, 255, 255);
    display: flex;
    flex: 3 1 200px;
    justify-content: space-between;
    margin-right: 10%;
    flex-wrap: wrap;
}


.final-info {
    padding: 0%;
    margin-top: 0%;
    padding: 0%;
    display: flex;
    flex-direction: column;
}

.final-info h4 {
    font-family: "DM Sans", sans-serif;
	font-weight: 400; /* regular */
    padding: 0%;
    margin-top: 0%;
    padding: 0%;
    color: #169227;
    margin-bottom: 10%;
    font-size: 2.3rem;
}

.final-info a {
    font-family: "DM Sans", sans-serif;
	font-weight: 400; /* regular */
    font-size: 1.5rem;  
    color: rgb(0, 0, 0);
    text-decoration: none;
    margin-bottom: 10%;
}

.final-info p {
    font-family: "DM Sans", sans-serif;
	font-weight: 400; /* regular */
    font-size: 1.5rem;
    color: rgb(0, 0, 0);
    text-decoration: none;
    margin-bottom: 10%;
}

.final-info a:hover {
    
    color: #16771e;
}








/*----------------------------------------PIE DE PÁGINA-------------------------------------------*/



/*Estilo y distribucion contenedor pie de pagina*/
footer {
    
    background: linear-gradient(135deg, #169227, #d2c887);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 230px;
}
/**/
.footer-links{
    display: flex;
    gap: 10px;
}

.footer-links a {
    font-family: "DM Sans", sans-serif;
	font-weight: 400; /* regular */
    text-decoration: none;
    color: rgb(0, 0, 0); /* Color del texto */
    font-size: 1.1rem;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.footer-links1 a {
    font-family: "DM Sans", sans-serif;
	font-weight: 400; /* regular */
    text-decoration: none;
    color: rgb(255, 255, 255); /* Color del texto */
    font-size: 1.1rem;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

/*Hover sobre el texto de pie*/
.footer-links a:hover {
    color: #023009; /* Cambia color al pasar el mouse */
}


