/**
Theme Name: Casanova
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casanova
Template: astra
*/

ul {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
}
p {
	margin-bottom: 0 !important;
}
a {
	text-decoration: none !important;
	transition: opacity 0.3s ease-in-out;
}
a:hover {
	opacity: 0.7;
}
/*Menu*/
.main-menu .sub-menu {
	width: 100dvw !important;
	max-width: 100dvw !important;
	padding-bottom: 45px !important;
}
.main-menu .sub-menu li a {
	transition: color 0.3s ease-in-out;
}
.main-menu .sub-menu li {
	display: block;
    max-width: 1400px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.main-menu .sub-menu li a:hover {
	opacity: 1 !important;
}
.main-menu .sub-menu li.highlight-red a {
	color: #7D1C2A !important;
}
.mobile-btn {
	display: none !important;
}
.main-menu .sub-arrow {
	position: relative;
}

.main-menu .sub-arrow .fa-svg-chevron-down  {
	width: 20px;
    height: 20px;
    background-color: #7D1C2A ;
    
    -webkit-mask-image: url('https://fisioterapiacasanova.com/wp-content/uploads/2025/09/thin-arrow.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-composite: destination-in;

    mask-image: url('https://fisioterapiacasanova.com/wp-content/uploads/2025/09/thin-arrow.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    mask-composite: intersect;
	transform: rotate(0);
	transition: transform 0.3s ease-in-out;
} 
a.has-submenu.highlighted .sub-arrow .fa-svg-chevron-down  {
	transform: rotate(180deg);
} 
@media screen and (min-width: 1384px) {
	.main-menu .sub-menu li {
		margin-left: -1rem;
	}
} 
@media screen and (max-width: 767px) {
	.main-menu > nav {
		height: calc(100dvh - 60px);
		padding-top: 40px;
	}
	.main-menu > nav > ul {
		height: 100%;
		height: calc(100dvh - 145px);
	}
	.main-menu > nav > ul > li a {
		font-size: 38px !important;
		padding-top: 1.5rem !important;
		padding-bottom: 1rem !important; 
		color: #7D1C2A !important;
		line-height: 1;
	}
	.main-menu li.current-menu-item a {
		color: #000000 !important;
		opacity: 1 !important;
	}
	.main-menu .sub-menu {
		padding-top: 1rem !important;
		padding-bottom: 1rem !important;
	}

	.main-menu .sub-menu li a {
		font-size: 22px !important;
		padding-top: 0.5rem !important;
		padding-bottom: 0.5rem !important;
	}
	.mobile-btn {
		display: flex !important;
		background-color: #7D1C2A;
		border-radius: 20px;
		position: absolute !important;
		bottom: 30px;
		right: 20px;
	}
	.main-menu > nav > ul > li.mobile-btn a {
		color: #ffffff !important;
		font-size: 12px !important;
		padding: 8px 30px 8px 30px !important;
	}
}
/*Isntalaciones*/
@media screen and (min-width: 768px) {
	.instalaciones-item {
		max-height: 420px;
		overflow: hidden;
	}
	.instalaciones-item img,
	.instalaciones-item .elementor-widget-image{
		height: 100%;
		width: 100% !important;
	}
}
@media screen and (max-width: 767px) {
	.instalaciones-item img {
		aspect-ratio: 1 / 1;
		object-fit: cover;
	}
}
/*Galería*/
.video-container {
	overflow: hidden;
}
.video-container .elementor-widget-video,
.video-container .elementor-widget-video .elementor-open-lightbox,
.video-container .elementor-widget-video .elementor-custom-embed-image-overlay{
	height: 100%;
}
/*Trayectoria*/
.filtro  search {
	justify-content: space-between !important;
}
.filtro button{
	border: none !important;
	box-shadow: none !important;
	flex-grow: 0 !important;
}

.flip-item {
	aspect-ratio: 1 / 1;
	cursor: pointer;
	width: 100%;
}
.flip-item .elementor-flip-box {
	height: 100% !important;
}
.flip-item h3 {
	border-bottom: 1px solid black;
    padding-bottom: 1rem;
}
/*
@media screen and (max-width: 767px) {
	.loop-deportistas .e-loop-item > div {
		min-height: 33vh !important;
	}
}
@media screen and (max-width: 600px) {
	.loop-deportistas .e-loop-item > div {
		min-height: 250px !important;
	}
}
@media screen and (max-width: 450px) {
	.loop-deportistas .e-loop-item > div {
		min-height: 150px !important;
	}
}

*/
.grid-container > .e-con-inner {
	display: block !important;
}
.custom-lightbox-content {
	position: relative;

}
.lightbox-text {
	padding: 1rem 0;
	border-radius: 8px;
}
.lightbox-title {
    font-size: 1rem;
    font-weight: 500;	
	color: #ffffff;
}
.lightbox-description {
	font-size: 0.875rem;	
	font-weight: 500;
	color: #ffffff;
	border-top: 1px solid #ffffff;
	margin: 11px 0 0 0;
	padding-top: 11px;
}
@media screen and (max-width: 1024px) {
	.elementor-flip-box__layer.elementor-flip-box__back {
		display: none !important;
	}
}

@media screen and (min-width: 1025px) {
	.lightbox-text {
		display: none;
	}
}
/*Contacto*/
.contact-form input {
	padding: 20px 16px !important;
	height: 58px;
}
.contact-form  .elementor-field-option {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}
.contact-form .elementor-field-type-acceptance label {
	font-size: 14px !important;
}
.contact-form .elementor-field-type-acceptance input {
	height: auto !important;
	margin-top: 5px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  opacity: 1 !important; 
}

.contact-form textarea {
	border: 1px solid var(--e-global-color-text) !important;
	border-radius: 1rem !important;
	padding-top: 1rem !important;
}
.contact-form .elementor-field-type-submit {
	display: flex;
	justify-content: flex-end;
}
.contact-form .elementor-field-type-submit button {
	flex-basis: auto !important;
}
@media screen and (max-width: 767px) {
	.contact-form .elementor-field-type-acceptance label {
		font-size: 12px !important;
	}
	.contact-form .elementor-field-type-submit button {
		flex-basis: auto !important;
		min-height: initial !important;
	}
	.contact-form textarea {
		padding-top: 12px !important;
	}
	.contact-form input {
		padding: 12px 10px !important;
		height: 40px;
	}
}
.contact-text a{
	color: inherit !important;
}
.seccion-acordeon details {
	align-items: center !important;
	width: 100% !important;
	border-bottom: 1px solid #7D1C2A !important;

}
.seccion-acordeon .e-n-accordion details:last-child {
	border-bottom: none !important;
}

summary,
details > .elementor-element {
	max-width: var(--content-width) !important;
    width: 100% !important;
}
details > .elementor-element {
	margin: auto;
}
summary,
details > div {
	
	
}
@media screen and (min-width: 768px) {
	details .e-n-accordion-item-title-icon .e-closed{
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}
	details:hover .e-n-accordion-item-title-icon .e-closed {
		opacity: 1;
	}
}
@media screen and (max-width: 767px) {
	.e-n-accordion-item-title-icon svg path:first-child {
		display: none;
	}
	.e-n-accordion-item-title-icon {
		width: 21px !important;
		position: relative;
	}
	.e-n-accordion-item-title-icon svg {
		display: none;
	}
	.e-n-accordion-item-title-icon .e-opened::after{
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		height: 21px;
		width: 21px;
		background: url('https://casanova.displaynone.es/wp-content/uploads/2025/09/menos-mobil.svg');
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}
	.e-n-accordion-item-title-icon .e-closed::after{
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		height: 21px;
		width: 21px;
		background: url('https://casanova.displaynone.es/wp-content/uploads/2025/09/mas-mobil.svg');
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}
	.e-n-accordion-item-title-icon svg {
		width: 40px !important;
	}
}

.custom-posts-filter {
    display: flex;
	justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-btn {
    cursor: pointer;
    color: black;
    transition: color 0.3s;
	font-size: 0.75rem;
}
.filter-btn.active {
    color: #7D1C2A;
}

/* Masonry con columns */
.custom-posts-grid {
    column-count: 2;
    column-gap: 10px;
	margin-bottom: 50px;
}
.custom-post-item {
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Contenedor interno */
.custom-post-inner {
    position: relative;
    width: 100%;
	min-height: 150px;
}

/* Imagen (front) */
.custom-post-front {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    transition: opacity 0.4s ease;
}
.custom-post-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Contenido (back) */
.custom-post-back {
    position: relative; /* define altura con el texto */
    background: #fff;
    opacity: 0;
    border-radius: 12px;
    padding: 24px 16px 22px 16px;
    transition: opacity 0.4s ease;
	min-height: 150px;
}
.custom-post-back h3 {
    margin: 0 0 11px 0;
    border-bottom: 1px solid #000;
    padding-bottom: 11px;
	font-size: 0.875rem;
	font-weight: 500;
}
.custom-post-back p {
	font-size: 0.75rem;
}
/* === LIGHTBOX ESTILOS === */
.custom-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.custom-lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.custom-lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  object-fit: contain;
}
.custom-lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
@media screen and (min-width: 600px) and (max-width: 768px) {
	.custom-post-inner,
	.custom-post-back {
		min-height: 30dvh;
	}
}
@media screen and (min-width: 450px) and (max-width: 600px)  {
	.elite-grid .custom-post-inner,
	.elite-grid .custom-post-back {
		min-height: 30dvh;
	}
}
@media screen and (min-width: 601px) and (max-width: 768px)  {
	.elite-grid .custom-post-inner,
	.elite-grid .custom-post-back {
		min-height: 40dvh;
	}
}
/* Estados */
.custom-post-item.active .custom-post-front {
    opacity: 0;
    pointer-events: none;
}
.custom-post-item.active .custom-post-back {
    opacity: 1;
}

/*Footer*/
.menu-item.small a {
	font-size: 1rem !important;
	padding-top: 0.3rem !important;
	padding-bottom: 0.3rem !important;
}