/* General Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.slides {
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    animation: slide 15s infinite;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons a {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.btn-primary {
    background-color: #315428;
}

.btn-secondary {
    background-color: #315428;
}

/* WhatsApp Button */

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: #25d366;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.whatsapp-button img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.whatsapp-button:hover {
    background-color: #20b557;
}

/* Slide Animation */
@keyframes slide {
    0%, 33% {
        transform: translateX(0);
    }
    33.33%, 66.66% {
        transform: translateX(-100%);
    }
    66.67%, 100% {
        transform: translateX(-200%);
    }
}





/* Contenedores */

.stats-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #fff;
	height: 400px
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four columns in one line */
    gap: 20px; /* Spacing between columns */
    max-width: 1200px;
    width: 100%;
}

.stat-box {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px; /* Smaller height */
}

.stat-box .highlight-number {
    font-size: 2.5rem; /* Highlighted numbers */
    font-weight: bold;
    color: #315428;
    display: inline-block;
}

.stat-box .text {
    font-size: 1.2rem; /* Smaller text after the numbers */
    font-weight: normal;
    color: #333;
    margin-left: 4px;
}

.stat-box p {
    font-size: 0.9rem; /* Slightly smaller text for descriptions */
    color: #666;
    margin: 10px 0 0;
}

.stat-box img {
    width: 60px; /* Smaller icons */
    height: 60px;
    margin-bottom: 10px;
}










/* Frase Introductoria */


.intro-section {
    position: relative;
    background: url('../img/FondoIntroduccion.jpg') no-repeat center center/cover; /* Replace with your background image */
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay for better text readability */
    z-index: 1;
}

.intro-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.intro-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.intro-content p {
    font-size: 1.2rem;
    line-height: 1.5;
}








/* Beneficios Psicoanálisis */


.benefits-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 0px;
    background-color: #fff;
    width: 100%;
}

.benefits-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 20px;
}

.benefits-left {
    flex: 1;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    text-align: le;
/*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
}

.benefits-left h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #315428;
}

.benefits-right {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.benefit-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: left; /* Align text and icon to the left */
/*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
}

.benefit-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.benefit-item p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.benefit-item p strong {
    color: #315428;
}












/* Text Over Image Section */


.text-over-image {
    position: relative;
    background-image: url('../img/portada1.jpg'); /* Ruta de tu imagen de fondo */
    background-size: cover;
    background-position: center;
    height: 300px; /* Ajusta la altura según sea necesario */
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-container {
    position: relative;
/*    background-color: rgba(0, 0, 0, 0.5);  Fondo semi-transparente para mejor legibilidad */
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
}

.text-container h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.5;
/*    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);  Sombra para destacar el texto */
}







/* Empresas Hermanas */

.other-businesses {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.other-businesses h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #315428;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center; /* Align logos vertically */
    gap: 30px;
    height: 200px; /* Ensure sufficient height for centering */
}

.logos-container img {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
	margin: 20px;
}

.logos-container img:hover {
    transform: scale(1.1);
}




/* General Styles for Mobile */
@media (max-width: 768px) {
	
	    .hero {
        height: 70vh; /* Reducir altura */
    }

    .hero-content h1 {
        font-size: 2rem; /* Reducir tamaño de fuente */
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: 1rem; /* Reducir tamaño de fuente */
        margin-bottom: 1.5rem;
    }

    .cta-buttons a {
        padding: 0.8rem 1.5rem; /* Botones más pequeños */
        font-size: 0.9rem;
    }

    .whatsapp-button {
        width: 90%; /* Ampliar botón al ancho de la pantalla */
        right: 5%; /* Centrar horizontalmente */
        bottom: 10px; /* Reducir espacio inferior */
        justify-content: center; /* Centrar contenido */
    }

    .whatsapp-button img {
        width: 30px; /* Tamaño reducido del icono */
        height: 30px;
        margin-right: 5px;
    }
	
	    .stats-section {
        flex-direction: column; /* Colocar los contenedores en una sola columna */
        height: auto; /* Altura dinámica */
        padding: 10px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas en una fila */
        gap: 15px; /* Reducir el espacio entre columnas */
        width: 100%;
    }

    .stat-box {
        height: auto; /* Ajustar altura dinámica */
        padding: 10px; /* Espaciado interno reducido */
    }

    .stat-box .highlight-number {
        font-size: 2rem; /* Reducir tamaño de números destacados */
    }

    .stat-box .text {
        font-size: 1rem; /* Reducir tamaño de texto */
    }

    .stat-box p {
        font-size: 0.8rem; /* Reducir aún más el texto descriptivo */
        margin: 5px 0 0;
    }

    .stat-box img {
        width: 50px; /* Reducir tamaño de iconos */
        height: 50px;
    }
	
	    .intro-section {
        height: auto; /* Ajustar altura dinámica */
        padding: 15px; /* Reducir espaciado interno */
        background-size: cover; /* Asegurar que la imagen se ajuste bien */
    }

    .intro-content {
        max-width: 600px; /* Reducir ancho máximo del contenido */
        padding: 10px; /* Espaciado interno más reducido */
    }

    .intro-content h2 {
        font-size: 2rem; /* Reducir tamaño del texto principal */
        line-height: 1.4; /* Ajustar altura de línea */
    }

    .intro-content p {
        font-size: 1rem; /* Reducir tamaño del párrafo */
        line-height: 1.4; /* Ajustar altura de línea */
    }
	
	    .benefits-section {
        padding: 30px 10px; /* Reducir espaciado */
    }

    .benefits-container {
        flex-direction: column; /* Cambiar a columna para mejor visualización */
        gap: 30px; /* Ajustar separación entre elementos */
    }

    .benefits-left {
        text-align: center; /* Centrar texto para tabletas */
        padding: 15px; /* Reducir espaciado interno */
    }

    .benefits-left h2 {
        font-size: 1.6rem; /* Reducir tamaño de fuente */
    }

    .benefits-right {
        grid-template-columns: 1fr; /* Pasar a una columna */
        gap: 15px; /* Reducir separación entre elementos */
    }

    .benefit-item {
        padding: 15px; /* Reducir espaciado interno */
    }

    .benefit-item img {
        width: 50px; /* Reducir tamaño de los iconos */
        height: 50px;
    }

    .benefit-item p {
        font-size: 0.9rem; /* Reducir tamaño del texto */
        line-height: 1.4;
    }
	
	
	    .text-over-image {
        height: 200px; /* Reducir altura para pantallas medianas */
        background-position: center center; /* Centrar mejor la imagen */
    }

    .text-container {
        padding: 15px 20px; /* Reducir espaciado interno */
    }

    .text-container h2 {
        font-size: 1.5rem; /* Reducir tamaño del texto */
        line-height: 1.4; /* Ajustar la altura de línea */
    }
	
	    .other-businesses {
        padding: 30px 15px; /* Reducir padding para pantallas medianas */
    }

    .other-businesses h3 {
        font-size: 1.5rem; /* Reducir tamaño del encabezado */
        margin-bottom: 15px; /* Reducir margen inferior */
    }

    .logos-container {
        flex-direction: column; /* Apilar los logos verticalmente */
        gap: 20px; /* Reducir espacio entre logos */
        height: auto; /* Permitir que la altura se ajuste dinámicamente */
    }

    .logos-container img {
        width: 120px; /* Reducir tamaño de los logos */
        margin: 10px; /* Reducir margen */
    }
	
	

}

/* General Styles for Mobile */
@media (max-width: 428px) {
	

.slide img {
    width: 100%;
    height: 100%;
    object-fit:fill;
}

.hero-content {

	padding-top: 110px;
}
	
	 .hero {
        height: 60vh; /* Reducir aún más la altura */
		 margin-top:100px;
		 
    }

    .hero-content h1 {
        font-size: 1.8rem; /* Reducir más el tamaño de fuente */
        margin-bottom: 0.6rem;
    }

    .hero-content p {
        font-size: 0.9rem; /* Fuente más pequeña */
        margin-bottom: 1rem;
    }

    .cta-buttons a {
        padding: 0.6rem 1rem; /* Botones más pequeños */
        font-size: 0.8rem;
    }

    .whatsapp-button {
        width: 95%; /* Botón casi al ancho completo */
        right: 2.5%; /* Centrado horizontal */
        bottom: 10px; /* Reducir espacio inferior */
        font-size: 0.8rem; /* Texto más pequeño */
    }

    .whatsapp-button img {
        width: 25px; /* Tamaño reducido del icono */
        height: 25px;
        margin-right: 5px;
    }

	
	    .stats-container {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 10px; /* Reducir espacio entre los elementos */
        width: 100%;
    }

    .stat-box {
        padding: 8px; /* Espaciado interno más reducido */
    }

    .stat-box .highlight-number {
        font-size: 1.8rem; /* Reducir aún más tamaño de números destacados */
    }

    .stat-box .text {
        font-size: 0.9rem; /* Reducir tamaño de texto */
    }

    .stat-box p {
        font-size: 0.7rem; /* Texto descriptivo más pequeño */
        margin: 5px 0 0;
    }

    .stat-box img {
        width: 40px; /* Iconos más pequeños */
        height: 40px;
    }
	
	    .intro-section {
        height: auto; /* Altura dinámica para pantallas más pequeñas */
        padding: 10px; /* Espaciado interno reducido */
        background-size: cover; /* Ajustar la imagen al fondo */
    }

    .intro-content {
        max-width: 90%; /* Usar casi todo el ancho de la pantalla */
        padding: 5px; /* Espaciado más compacto */
    }

    .intro-content h2 {
        font-size: 1.5rem; /* Reducir aún más el tamaño del texto principal */
        line-height: 1.3; /* Ajustar altura de línea */
    }

    .intro-content p {
        font-size: 0.9rem; /* Texto descriptivo más pequeño */
        line-height: 1.3; /* Ajustar altura de línea */
    }
	
	
	 .benefits-section {
        padding: 20px 10px; /* Espaciado más compacto */
    }

    .benefits-container {
        flex-direction: column; /* Forzar disposición en columna */
        gap: 20px; /* Reducir separación entre elementos */
    }

    .benefits-left {
        text-align: center; /* Centrar texto */
        padding: 10px; /* Reducir espaciado */
    }

    .benefits-left h2 {
        font-size: 1.4rem; /* Reducir tamaño de fuente */
    }

    .benefits-right {
        grid-template-columns: 1fr; /* Una columna para pantallas pequeñas */
        gap: 10px; /* Reducir separación */
    }

    .benefit-item {
        padding: 10px; /* Espaciado más compacto */
    }

    .benefit-item img {
        width: 40px; /* Reducir aún más tamaño de los iconos */
        height: 40px;
    }

    .benefit-item p {
        font-size: 0.8rem; /* Texto más pequeño */
        line-height: 1.3; /* Ajustar altura de línea */
    }
	
	    .text-over-image {
        height: 150px; /* Ajustar altura para pantallas pequeñas */
        background-position: center top; /* Reposicionar la imagen */
    }

    .text-container {
        padding: 10px 15px; /* Espaciado más compacto */
    }

    .text-container h2 {
        font-size: 1.2rem; /* Reducir aún más el tamaño del texto */
        line-height: 1.3; /* Ajustar altura de línea para legibilidad */
    }
	
	
	    .other-businesses {
        padding: 20px 10px; /* Padding más compacto */
    }

    .other-businesses h3 {
        font-size: 1.2rem; /* Reducir tamaño del encabezado aún más */
        margin-bottom: 10px; /* Menor margen inferior */
    }

    .logos-container {
        flex-direction: column; /* Mantener disposición vertical */
        gap: 15px; /* Espaciado más compacto entre logos */
        height: auto; /* Ajustar altura automáticamente */
    }

    .logos-container img {
        width: 100px; /* Reducir aún más el tamaño de los logos */
        margin: 5px; /* Margen compacto */
    }
	
	
	
}

