/*
 Theme Name: Farmacia Plus Ultra
 Theme URI: https://elementor.com/
 Description: Child theme para Hello Elementor
 Author: ACF coder
 Author URI: https://farmaciaplusultra.com
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: Farmacia Plus Ultra
*/

* {
	
}


/**
 * Estilos CSS básicos para el grid
 * Añade esto a tu archivo style.css o en Appearance > Customize > CSS adicional


--e-global-typography-secondary-font-family: "Akshar";
 */


/*toggle button*/
.elementor-menu-toggle {
	padding-right: 16px!important;
	background: none!important;
}

.link, .glang a {
	font-family: Akshar, sans-serif !important;
}

.glang > a:first-child {
	display:none;
}

/* Contenedor principal de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en desktop */
    gap: 40px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cada item de servicio */
.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Imagen circular del servicio */
.service-imagen {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    flex-shrink: 0;
    background: #f5f5f5; /* Fondo opcional para que se vea mejor */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-imagen img {
    width: auto;
    height: 100%!important;
    object-fit: cover; /* CAMBIO AQUÍ: contain en lugar de cover */
	max-width: none!important;;
}

/* Contenido del servicio */
.service-contenido {
    width: 100%;
}

/* Título centrado */
.taxonomia-titulo {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
    text-align: center;
}

/* Extracto centrado */
.service-extracto {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    text-align: center;
}


/* ========================================
   LAYOUT LIST (Página servicios - lista)
   ======================================== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.services-list .service-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 46px;
}

.services-list .service-imagen {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.services-list .service-imagen img {
    width: auto;
    height: 100% !important;
    object-fit: contain;
}


.services-list .service-contenido {
    flex: 1;
    text-align: left;
}

.services-list .taxonomia-titulo {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
	text-align: left;
}

.services-list .service-extracto {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
	text-align: left;
}



/* TABLET: 2 columnas */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .service-imagen {
        width: 180px;
        height: 180px;
    }
}

/* MÓVIL: 1 columna */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 15px;
    }
    
    .service-imagen {
        width: 160px;
        height: 160px;
    }
    
    .taxonomia-titulo {
        font-size: 1.1rem;
    }
    
    .service-extracto {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
	
	
	
/*toggle button*/
.elementor-menu-toggle {
	padding-right: 36px!important;
	background: none!important;
	border: 1px solid;
}
	
	.services-list {
    margin: 0 auto;
	display: flex;
    gap: 24px;
    padding: 20px 0;
    max-width: 90%;
    margin: 0 auto;
}

	.services-list .service-imagen {
    width: 200px;
    height: 200px;
    border-radius: 50%;
	}
 
	.services-list .service-item{
		display: flex!important;
		flex-direction: column!important;
		 padding: 20px 0;
	}
	
}