/*
Theme Name: Giner
Theme URI:  https://www.newcode.tech
Author:     newcode
Author URI: https://newcode.tech
Template:   hello-elementor
Version:    1.0
License:    GNU General Public License v2 or later
*/

:root {
	--color-primary:#C4562F;
	--color-secondary:#1B3A2F;
}

h1, h2, h3, h4, h5, h6 { margin:0; margin-block-start:0; }
p { margin-top:0; margin-bottom:10px; }

/****** Filtros Proyectos *****/
.custom-filter-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.filter-select {
    appearance: none;
    background: transparent;
    border: 1px solid #C4562F;
	color:#C4562F;
	font-weight:700;
    border-radius: 50px;
    padding: 10px 35px 10px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a44f24' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center; /* Posiciona la flecha a la derecha */
    background-size: 16px; /* Tamaño de la flecha */
}
.filter-select:hover,
.filter-select:focus {
    outline: none;
    background-color: #f0ebe0; /* Ligeramente más oscuro en hover */
    border-color: #8c3f19;
}
.filter-select:focus, .filter-select:focus-visible { box-shadow:none; outline:none; }

.elementor-nav-menu .only__mobile { display:none !important; }




/*************** Compartir ****************/
/* Contenedor del botón y del dropdown */
.compartir-contenedor {
	position: relative;
	display: inline-block;
}

/* Estilo idéntico a la imagen provista */
.compartir-contenedor a.boton-compartir {
	background-color: transparent;
	color: var(--color-primary); /* Tono marrón/óxido de la foto */
	border: 1.5px solid var(--color-primary);
	display:block;
	text-align:center;
	padding: 12px 24px;
	line-height:1em;
	font-size: 15px;
	font-weight: 700;
	border-radius: 50px; /* Bordes muy redondeados */
	cursor: pointer;
	transition: all 0.3s ease;
	outline: none;
}

/* Pequeño feedback visual al pasar el cursor sobre el botón */
.compartir-contenedor a.boton-compartir:hover {
	background-color: var(--color-secondary);
	border-color: var(--color-secondary);
	color: #ffffff;
}

/* Menú de opciones (oculto por defecto) */
.compartir-opciones {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 0px;
	background-color: #ffffff;
	border: 1px solid var(--color-secondary);
	border-radius: 12px;
	box-shadow: none;
	z-index: 999;
	min-width: 180px;
	padding: 8px 0;
	animation: fadeIn 0.2s ease-out;
}

/* Pequeña flecha apuntando arriba en el menú */
.compartir-opciones::before {
	content: '';
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 10px;
	height: 10px;
	background-color: #ffffff;
	border-left: 1px solid #e0e0e0;
	border-top: 1px solid #e0e0e0;
}

/* Muestra el menú al pasar el cursor sobre el contenedor */
.compartir-contenedor:hover .compartir-opciones {
	display: block;
}

/* Estilos de las opciones individuales */
.compartir-opciones a.opcion-red {
	display: flex;
	align-items: center;
	gap: 5px;
	width: 100%;
	padding: 5px 16px;
	color: var(--color-secondary);
	text-decoration: none;
	background: none;
	border: none;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s;
	font-weight: 500;
	box-sizing: border-box;
}
.compartir-opciones a.opcion-red:hover {
	color:var(--color-primary);	
}


.opcion-red i {
	font-size: 16px;
	width: 20px;
	text-align: center;
}

/* Colores sutiles al pasar el cursor por cada opción */
.opcion-red:hover {
	background-color: #f8f5f2; /* Color crema suave a tono con la paleta */
	color: #b35a38;
}

/* Clases específicas para iconos en hover si deseas color corporativo (opcional) */
.opcion-red.facebook:hover i { color: #1877F2; }
.opcion-red.x-twitter:hover i { color: #000000; }
.opcion-red.whatsapp:hover i { color: #25D366; }
.opcion-red.copiar:hover i { color: #2ecc71; }

@keyframes fadeIn {
	from { opacity: 0; transform: translateX(-50%) translateY(5px); }
	to { opacity: 1; transform: translateX(-50%) translateY(0); }
}






/****************************
 *  Tablet
 *******************************/
@media screen and (max-width:1024px) {
	#filter-proyectos-form { width:1250px; }
	.elementor-nav-menu .only__mobile { display:block !important; }
}


/****************************
 *  Tablet
 *******************************/
@media screen and (max-width:767px) {
	#filter-proyectos-form { width:1000px; }
	.filter-select {
		padding: 8px 30px 8px 15px;
    	font-size: 13px;
	}
	.compartir-contenedor { width:100%; }
}