/*
Theme Name: Windup Business Theme
Theme URI: https://windup.es/
Template: hello-elementor
Author: Windup Business
Author URI: https://windup.es/
Description: Tema hijo de Hello desarrollado por Windup Business. Tema optimizado para trabajar con Elementor page builder.
Tags: flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 2.4.1.1638184772
Updated: 2022-06-06 11:11:11

*/

/* Menú oculto con scroll */
#menu-oculto {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Para que esté por encima de todo */
    transform: translateY(-100%);
    transition: transform 0.6s ease-in-out;
	transition: opacity 0.8s ease-in-out;
    pointer-events: none; /* Evita que interfiera cuando está oculto */
    opacity: 0;
}

#menu-oculto.headershow {
    transform: translateY(0);
    pointer-events: auto; /* Se activa al aparecer */
    opacity: 1;
}

#menu-oculto ul.sub-menu li.menu-item {
    padding: 10px;
}

#menu-oculto ul.sub-menu li.menu-item:hover,
#menu-oculto ul.sub-menu li.menu-item:active{
    background: #f9f9f7;
} 

/* Ajustes Toogle WPML menú */
.wpml-ls-legacy-list-horizontal {
    padding: 0px;
    border: 0px solid transparent;
}
.wpml-ls-legacy-list-horizontal a{
    padding: 12px 8px;
}
.wpml-ls-legacy-list-horizontal .wpml-ls-item {
    width: 100%;
}
.wpml-ls-legacy-list-horizontal .wpml-ls-flag,
.menu_scroll .wpml-ls-legacy-list-horizontal .wpml-ls-flag{
    width: 32px;
}
.menu_scroll .wpml-ls-legacy-list-horizontal a {
    padding: 10px 6px;
}

/* Slider Promociones */
.list_promociones .jet-listing-grid__slider-icon.swiper-arrow.next-arrow{
    right: 45%;
}
.list_promociones .jet-listing-grid__slider-icon.swiper-arrow.prev-arrow{
    left:45%;
}
.list_promociones .jet-listing-grid__slider-icon.swiper-arrow svg {
    height: 50px;
}
.list_promociones .jet-listing-grid__slider-icon.swiper-arrow {
    bottom: -60px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: #000;
    top: auto;
}


/* Menú lateral Pop-Up */
ul.sub-menu.elementor-nav-menu--dropdown.sm-nowrap {
    min-width: 25em !important;
}

.popup_menu ul.elementor-nav-menu li {
    padding: 10px 20px;
}
.popup_menu li:hover {
	background: #EEEEEE;
}
.popup_menu ul.sub-menu{
	left:30px;
}
ul#menu-1-4839fd5d li.menu-item ul.sub-menu{
    margin-left: 100% !important;
}	
ul.sub-menu li.menu-item {
    padding: 5px;
}

/* Reset margen en iconos */
.elementor-icon-wrapper{
	line-height:0;
}

/* SCROLL INDICATOR HERO */ 
.scroll-indicator{
  position: absolute;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 99;
  text-decoration: none;
  display: inline-block;
  pointer-events: auto;
  animation: arrow-bob 3s ease-in-out infinite;
}

/* La imagen solo rota; no la animes para evitar diagonales */
.scroll-arrow{
  width: clamp(75px, 6vw, 40px);
  height: auto;
  display: block;
}

.scroll-indicator-prueba{
	position: absolute;
	left: 50%;
	bottom: calc(0px + env(safe-area-inset-bottom));
	transform: translateX(-50%);
	z-index: 99;
	text-decoration: none;
	display: inline-block;
	pointer-events: auto;
	animation: arrow-bob 3s ease-in-out infinite;
}

.scroll-arrow-prueba{
	width: clamp(35px, 6vw, 40px);
	height: auto;
 	display: block;
}

/* Movimiento estrictamente vertical (mantén el translateX del centrado) */
@keyframes arrow-bob {
  0%   { transform: translateX(-50%) translateY(0);   }
  50%  { transform: translateX(-50%) translateY(28px);}
  100% { transform: translateX(-50%) translateY(0);   }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce){
      .scroll-indicator{ animation: none; }
}

/* Galería horizontal 3 imagenes */
.gallery_swiper .swiper-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.fondo_sombra,
.sombra_imagen img{
	border-radius: 4px;
    box-shadow: 17px 12px 62px -7px rgba(0, 0, 0, 0.21) !important;
}

.cinta_promociones{
    position: relative;
    top: 55px;
}

.elementor-11686 .enlaces ul li:hover a span.elementor-icon-list-text,
.elementor-11686 .enlaces .elementor-widget-container a:hover{
	color: #000;
}


/* Formularios y Blog */
a.enlace_form,
.enlace_form a{
	color: #002F3C;	
}
a.enlace_form:hover,
.enlace_form a:hover{
	color: #84754F;	
	text-decoration: underline;
}
a.enlace_form_dorado {
	color: #FFFFFF;	
}
a.enlace_form_dorado:hover {
	color: #84754F !important;	
	text-decoration: underline;
}
.enlaces_blog a{
	color: #84754F;
}
.enlaces_blog a:hover{
	color: #84754F !important;	
	text-decoration: underline;
}
.enlaces_footer a,
a.enlaces_footer{
	color: #FFFFFF !important;
}
.enlaces_footer a:hover,
a:hover.enlaces_footer{
	text-decoration: underline;
}

.enlaces_textform a,
a.enlaces_textform{
	color: #002F3C; !important;
	text-decoration: underline !important;
}
.enlaces_textform a:hover,
a:hover.enlaces_textform{
	color: #84754F !important;	
}

.icono_tee{
	background-attachment: url('https://www.nuevahacienda.windupweb.es/wp-content/uploads/2026/02/tee_campo_marron.svg');
}

.texto-scroll {
	border: 1px solid #002F3C;
	background-color: #FFFFFF;
	height: 100px;
	overflow-y: auto;
	padding: 10px;
	font-size: 12px; 
	color: #002F3C; 
	line-height: 1.5; 
}
.enlaces_blog.elementor-widget.elementor-widget-theme-post-content h2 {
    color: var(--e-global-color-text);
    font-family: "Cormorant", Sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 30px;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.enlaces_blog.elementor-widget.elementor-widget-theme-post-content h3 {
    color: var(--e-global-color-text);
    font-family: "Cormorant", Sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 30px;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

div#ez-toc-container ul li,
div#ez-toc-container ul li a {
    padding: 3px 0px;
}

div#ez-toc-container ul.ez-toc-list a {
    color: #002f3c;
    padding: 0px;
}

/* ==========================================================================
   GALERÍA SWIPER + GLIGHTBOX (GOLF)
   ========================================================================== */
:root {
  --swiper-gallery-color: #002F3C;
}

#custom-gallery.gallery-wrapper {
  width: 100%;
  max-width: 100%; 
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 50px;
}

#custom-gallery .swiper-custom {
  width: 100%;
  height: 500px; 
  cursor: grab;
}

#custom-gallery .swiper-slide {
  width: 850px; 
  height: 100%;
  transition: transform 1.5s ease;
  overflow: hidden;
}

#custom-gallery .swiper-slide:nth-child(odd) {
  width: 400px;
}

#custom-gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
  display: block; 
}

#custom-gallery .swiper-slide:hover img {
  transform: scale(1.1);
}

#custom-gallery .swiper-slide a.glightbox {
  display: block;
  width: 100%;
  height: 100%;
}

#custom-gallery .pagination-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

#custom-gallery .swiper-pagination-custom {
  position: relative !important;
  bottom: 0 !important;
  width: auto !important;
}

#custom-gallery .swiper-pagination-bullet {
  width: 40px; 
  height: 3px;
  border-radius: 0;
  background: #ccc;
  opacity: 0.5;
  transition: all 0.3s ease;
  margin: 0 5px !important;
}

#custom-gallery .swiper-pagination-bullet-active {
  width: 60px; 
  background: var(--swiper-gallery-color);
  opacity: 1;
}

#custom-gallery .nav-container-custom {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 20px;
}

#custom-gallery .arrow-prev-custom, 
#custom-gallery .arrow-next-custom {
  cursor: pointer;
  transition: opacity 0.3s;
}

#custom-gallery .arrow-prev-custom:hover, 
#custom-gallery .arrow-next-custom:hover {
  opacity: 0.6;
}

#custom-gallery .arrow-prev-custom::after { content: url("https://www.nuevahacienda.windupweb.es/wp-content/uploads/2026/03/arrow_left_blue.svg"); }
#custom-gallery .arrow-next-custom::after { content: url("https://www.nuevahacienda.windupweb.es/wp-content/uploads/2026/03/arrow_right_blue.svg"); }

@media (max-width: 767px) {
	#custom-gallery .swiper-slide {
		width: 85% !important; 
		height: 350px;
	}
	#custom-gallery .swiper-custom {
		height: 350px !important;
	}
	#custom-gallery .swiper-pagination-custom {
	  width: 90% !important;
	}
	#custom-gallery .swiper-pagination-bullet {
		width: 15px;
	}
	#custom-gallery .swiper-pagination-bullet-active {
		width: 30px;
	}
	#custom-gallery .nav-container-custom{
		gap: 30px;
		margin-top: 5px;
	}
	#custom-gallery .arrow-prev-custom,
	#custom-gallery .arrow-next-custom {
		scale: 0.65;
	}
}


/* Slider resturantes en gastronomía */
/* --- Reset & Base --- */

/* --- Section --- */
.slider-box-section {
	max-width: 1920px;
	margin: 0 auto;
	padding: 80px 40px;
}

#profesores.slider-box-section {
	padding: 80px 0px;
}	

.slider-box-section span{
	font-size:1.25rem;
}

#membresias h2.section-title,
#torneos h2.section-title,
#restaurantes h2.section-title,
#vista-real h2.section-title,
.slider-box-section h2{
	font-family: "Cormorant", Sans-serif !important;
	font-size: clamp(1.75rem, 3vw, 3rem) !important;
	font-weight: 400;
	letter-spacing: inherit;
	color: #002F3C !important;
	text-align: start;
    margin: 15px auto;
    max-width: 1280px;
}

#membresias h2.section-title{
	text-align: center;
}

p.section-subtitle{
  	color: #002F3C;
  	text-align: start;
	color: #002F3C;
	max-width: 1280px;
	margin: 15px auto;
}
div.info-cta{
	max-width: 1280px;
	margin: 15px auto;
}

#membresias .info-cta{
	text-align: center;
}	

/* --- Grid --- */
.slider-box-grid {
	display: flex;
	gap: 20px;
 	align-items: stretch;
	margin: 50px 0;
	width: 1440px;
}

/* --- Card --- */
.slide-box-card {
  flex: 1;
  display: flex;
  position: relative;
  height: 520px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-box-card:hover {
  flex: 2.2;
}

/* --- Card Image Container --- */
.card-image {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.card-image .center-left{
	object-position: center left;
}

.slide-box-card:hover .card-image {
  width: 50%;
}

.slide-box-card img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-box-card:hover .card-image img {
  transform: scale(1.05);
}

/* --- Image Overlay --- */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.15) 50%,
      rgba(0, 0, 0, 0.05) 100%);
  transition: opacity 1s ease;
}

.slide-box-card:hover .card-overlay {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.02) 100%);
}

/* --- Card Name (over image) --- */
.card-name {
  position: absolute;
  bottom: 30px;
  left: 20px;
  font-family: "Cormorant", serif;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: inherit;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: opacity 1s ease;
  text-transform: uppercase;
  margin-right: 50px;
}

.slide-box-card:hover .card-name {
  opacity: 0.85;
}

#torneos h3.card-name{
	font-size: clamp(1.8rem, 2.5vw, 2rem);
}

#profesores h4.card-name {
    position: absolute;
    top: 15px;
    left: 30px;
    font-family: "Cormorant", serif;
    font-size: 0.85rem;
    color: #84754F;
    text-shadow: none;
}

/* --- Info Panel (hidden by default) --- */
.card-info {
  position: absolute;
  right: -20px;
  top: 0;
  width: 50%;
  height: 100%;
  background-color: #F5F5F6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 30px 15px 30px;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
  pointer-events: none;
}

.slide-box-card:hover .card-info {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

#torneos .card-info{
	padding:30px;
}

#torneos p.info-text{
	font-size:1rem;
}


/* --- Info Content --- */
.info-title {
  font-family: "Cormorant", serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: #002F3C;
  letter-spacing: inherit;
  margin-bottom: 8px;
}

.info-subtitle {
  font-family: "Cormorant", serif;
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  color: #002F3C;
  letter-spacing: inherit;
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0.8;
}

.info-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.75;
  color: #000000;
  margin-bottom: 30px;
}

#restaurantes .info-text {
	font-size: 0.9rem;
}

#restaurantes .info-horarios {
font-family: "Cormorant", serif;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: #002F3C;
    margin-bottom: 22px;
    opacity: 1;
}

#profesores .info-text {
    font-size: 0.9rem;
	line-height: 1.65;
	margin-bottom: 0px;
}

.info-text strong {
  font-weight: 600;
}

#vista-real .card-info ul{
	margin-bottom: 50px;
}

.languaje-info {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 10px;
}

.languaje-info img{
    width: 32px;
	padding-top: 5px;
}


/* SECCIÓN HOYO A HOYO EN LA PÁGINA DE LINKS Y HEATHLAND */
#hacienda-golf-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

#hacienda-golf-links-section * { box-sizing: border-box; margin: 0; padding: 0; }
#hacienda-golf-heathland-section * { box-sizing: border-box; margin: 0; padding: 0; }
#hacienda-golf-links-section .section-title, #hacienda-golf-heathland-section .section-title { font-family: 'Cormorant', serif; color: #002F3C; font-size: 1.8rem; text-align: center; margin-bottom: 2rem; font-weight: 600; letter-spacing: 1px; }

#hacienda-golf-links-section .carousel-container, #hacienda-golf-heathland-section .carousel-container { position: relative; width: 100%; margin-bottom: 3rem; overflow: hidden; }
#hacienda-golf-links-section .image-wrapper, #hacienda-golf-heathland-section .image-wrapper { width: 100%; aspect-ratio: 16 / 9; background-color: #ddd; }
#hacienda-golf-links-section .image-wrapper img, #hacienda-golf-heathland-section .image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s ease-in-out; }

#hacienda-golf-links-section .nav-arrow, #hacienda-golf-heathland-section .nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; color: white; border: none; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: transform 0.2s; z-index: 10; padding: 0; }
#hacienda-golf-links-section .nav-arrow:hover, #hacienda-golf-heathland-section .nav-arrow:hover { transform: translateY(-50%) scale(1.5); }
#hacienda-golf-links-section .prev-arrow, #hacienda-golf-heathland-section .prev-arrow { left: 10px; }
#hacienda-golf-links-section .next-arrow, #hacienda-golf-heathland-section .next-arrow { right: 10px; }

/* Desktop Tees Navigation */
#hacienda-golf-links-section .tees-container, #hacienda-golf-heathland-section .tees-container { display: flex; justify-content: center; align-items: flex-start; gap: 20px; width: 100%; position: relative; padding-bottom: 150px; flex-wrap: wrap; }
#hacienda-golf-links-section .tee-item, #hacienda-golf-heathland-section .tee-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; position: relative; transition: transform 0.3s ease; }

#hacienda-golf-links-section .tee-button, #hacienda-golf-heathland-section .tee-button { width: 44px; height: 44px; background-color: #002F3C; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-family: 'Cormorant', serif; font-weight: 500; font-size: 1.2rem; transition: all 0.3s ease; z-index: 2; }
#hacienda-golf-links-section .tee-stem, #hacienda-golf-heathland-section .tee-stem { width: 2px; height: 12px; background-color: #002F3C; margin-top: -2px; transition: all 0.3s ease; }

/* Active State */
#hacienda-golf-links-section .tee-item.active .tee-button, #hacienda-golf-heathland-section .tee-item.active .tee-button { background-color: #84754F; width: 56px; height: 56px; font-size: 1.5rem; }
#hacienda-golf-links-section .tee-item.active .tee-stem, #hacienda-golf-heathland-section .tee-item.active .tee-stem { background-color: #84754F; height: 40px; }
#hacienda-golf-links-section .tee-item:not(.active):hover .tee-button, #hacienda-golf-heathland-section .tee-item:not(.active):hover .tee-button { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }

/* Info Box */
#hacienda-golf-links-section .tee-info, #hacienda-golf-heathland-section .tee-info { position: absolute; top: 92px; width: 390px; text-align: center; color: #333; font-size: 0.9rem; line-height: 1.5; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; pointer-events: none; left: 50%; transform: translateX(-50%); }
#hacienda-golf-links-section .tee-item.active .tee-info, #hacienda-golf-heathland-section .tee-item.active .tee-info { opacity: 1; visibility: visible; }
#hacienda-golf-links-section .tee-stats, #hacienda-golf-heathland-section .tee-stats { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; font-weight: 600; font-family: 'Cormorant', serif; color: #84754F; }
#hacienda-golf-links-section .tee-stats span, #hacienda-golf-heathland-section .tee-stats span { font-size: 1.1rem; letter-spacing: 0.5px; }

/* Mobile specific title (hidden on desktop) */
#hacienda-golf-links-section .mobile-hole-title, #hacienda-golf-heathland-section .mobile-hole-title { display: none; margin-bottom: 12px; font-family: 'Cormorant', serif; color: #002F3C; font-size: 1.5rem; }

/* Responsive */
@media (max-width: 800px) {
    #hacienda-golf-links-section .section-title, #hacienda-golf-heathland-section .section-title { font-size: 1.4rem; }
    #hacienda-golf-links-section .image-wrapper, #hacienda-golf-heathland-section .image-wrapper { width:100%; aspect-ratio: 16 / 9; height: auto; }
    
    /* Hide the visual tees for mobile */
    #hacienda-golf-links-section .tee-button,
	#hacienda-golf-heathland-section .tee-button,
    #hacienda-golf-links-section .tee-stem,
	#hacienda-golf-heathland-section .tee-stem{ display: none !important; }
    
    /* Adjust the container for mobile layout */
    #hacienda-golf-links-section .tees-container, #hacienda-golf-heathland-section  .tees-container { padding-bottom: 20px; gap: 0; }
    #hacienda-golf-links-section .tee-info, #hacienda-golf-heathland-section  .tee-info {position: static; width: 100%; max-width: 400px; transform: none; margin: 0 auto; display: none;}
    #hacienda-golf-links-section .tee-item.active .tee-info, #hacienda-golf-heathland-section  .tee-item.active .tee-info { display: block; opacity: 1; visibility: visible; }
    #hacienda-golf-links-section .tee-stats span, #hacienda-golf-heathland-section  .tee-stats span { font-size: 1.1rem; } /* Keep stats readable */
    #hacienda-golf-links-section .mobile-hole-title, #hacienda-golf-heathland-section  .mobile-hole-title { display: block; } /* Show "Hoyo X" title */
    #hacienda-golf-links-section .tee-item, #hacienda-golf-heathland-section  .tee-item { width: 100%; display: none; }
    #hacienda-golf-links-section .tee-item.active, #hacienda-golf-heathland-section  .tee-item.active { display: flex; }
}

/* Menú categorias */
.menu_categorias ul {
    gap: 20px;
}
.menu_categorias li.menu-item.menu-item-type-taxonomy.menu-item-object-category {
    border: 1px solid #ccc;
    background-color: #002F3C;
    color: #fff;
}
.menu_categorias ul.elementor-nav-menu li.menu-item a {
    color: #fff;
}

.menu_categorias li:hover.menu-item {
    background-color: #84754F !important;
}


/* --- Buttons --- */
.info-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: inherit;
  text-decoration: none;
  padding: 12px 22px;
  border: 1.5px solid #002F3C;
  transition: all 0.5s ease;
  text-align: center;
}

.btn-primary {
  background-color: #002F3C;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: transparent;
  color: #002F3C;
}

.btn-secondary {
  background-color: transparent;
  color: #002F3C;
}

.btn-secondary:hover {
  background-color: #002F3C;
  color: #ffffff;
}

/* Títulos y enlaces en textos legales */

.elementor-widget-text-editor .h2_legales{
	font-family: "Cormorant", Sans-serif;
	font-size:clamp(2.5em, 60px, 2em);
	color:#002F3C;
}

/* ==========================================================================
   SOLUCIÓN RESPONSIVE PARA DISPOSITIVOS MÓVILES Y TABLETS (<= 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    /* 1. Liberamos la sección y quitamos los paddings exagerados */
    .slider-box-section,
    #profesores.slider-box-section {
        padding: 40px 20px !important;
    }

    /* 2. El contenedor Grid pasa de horizontal fijo (1440px) a vertical flexible */
    .slider-box-grid {
        display: flex;
        flex-direction: column; /* Apilamos las tarjetas una debajo de otra */
        width: 100% !important; /* Ocupa el ancho disponible real */
        max-width: 100%;
        gap: 35px; /* Separación generosa entre bloques */
        margin: 30px 0;
    }

    /* 3. Reconfiguración de la tarjeta (Anulamos el efecto flex-grow) */
    .slide-box-card {
        flex: none !important;
        display: flex;
        flex-direction: column; /* La imagen arriba, la info abajo */
        height: auto !important; /* Que el alto lo determine el contenido */
        box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Un toque sutil de separación */
    }

    /* Forzamos que al pulsar con el dedo no intente hacer comportamientos raros de escritorio */
    .slide-box-card:hover {
        flex: none !important;
    }

    /* 4. El contenedor de la imagen ocupa todo el ancho */
    .card-image {
        width: 100% !important;
        height: 300px !important; /* Altura fija para la imagen en móvil */
    }

    .slide-box-card:hover .card-image {
        width: 100% !important;
    }

    .slide-box-card img {
        height: 100% !important;
    }
    
    /* Desactivamos el zoom al hacer tap */
    .slide-box-card:hover .card-image img {
        transform: none !important;
    }

    /* 5. El nombre sobre la imagen se mantiene pero más integrado */
    .card-name {
        bottom: 20px;
        left: 20px;
        font-size: 1.8rem !important;
    }

    /* 6. Convertimos el panel flotante oculto en un bloque estático visible debajo de la imagen */
    .card-info {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important; /* Al 100% del ancho de la tarjeta */
        height: auto !important;
        background-color: #F5F5F6;
        padding: 25px 20px !important; /* Un padding más cómodo para móviles */
        opacity: 1 !important; /* SIEMPRE VISIBLE */
        transform: translateX(0) !important; /* Sin desplazamientos */
        pointer-events: auto !important; /* Interactivo por defecto */
    }

    /* Anulamos las transiciones de escritorio en móvil para evitar retrasos visuales */
    .slide-box-card:hover .card-info {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    /* 7. Ajustes menores del contenido de texto para pantallas pequeñas */
    .info-title {
        font-size: 1.4rem !important;
        margin-bottom: 5px;
    }

    .info-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 15px;
    }

    .info-text {
        font-size: 0.95rem !important;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    #restaurantes .info-text {
        font-size: 0.9rem !important;
    }

    /* Los botones ahora se adaptan al ancho completo en teléfonos si es necesario */
    .info-buttons, .info-buttons a {
        width: 100%;
        text-align: center;
    }
}

/* Tablet */
@media (max-width: 768px) {
	
  .slider-box-section {
    padding: 25px 15px;
  }
	
  .slider-box-grid {
    flex-direction: column;
    gap: 16px;
  }

  .slide-box-card {
    height: 350px;
    flex: none;
  }

  .slide-box-card:hover {
    flex: none;
    height: 600px;
  }

  .slide-box-card:hover .card-image {
    width: 100%;
    height: 45%;
  }

  .card-image {
    width: 100%;
    height: 100%;
  }

  .card-info {
    width: 100%;
    height: 55%;
    top: auto;
    bottom: 0;
    padding: 25px 20px;
  }

  .card-name {
    bottom: 20px;
    left: 20px;
    font-size: 1.8rem;
  }

  .info-title {
    font-size: 1.3rem;
  }

  .info-text {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }

  .btn {
    font-size: 0.65rem;
    padding: 10px 18px;
  }
  
  #profesores h4.card-name {
	position: relative;
	top: 0px;
	left: 0px;
  }
}

/* Mobile */
@media (max-width: 440px){
	.slider-box-section span {
    	font-size: 1rem;
	}
	.slider-box-section, #profesores.slider-box-section{
        padding: 0px !important;
    }
	.card-name {
        font-size: 1.3rem !important;
    }
}	
    
} 