/* Hero Image */
.vall-de-uxo .hero-section {
  background-image: url("images/valldeuxo-hero-image.jpg");
}
.barcelona-onze-setembre .hero-section {
  background-image: url("images/barcelonaonzesetembre-hero-image.jpg");
}
.leon .hero-section {
  background-image: url("images/leon-hero-image.jpg");
}

/* Variables de colores */
:root {
  --msmr-orange: #ff5c00;
  --msmr-orange-light: #fc7632;
  --msmr-orange-superlight: #ff551d4d;
  --msmr-yellow-superlight: #ff9f1d22;
  --msmr-yellow: #ffb147;
  --msmr-dark: #333333;
  --msmr-gray: #666666;
  --msmr-light-gray: #f5f5f5;
  --msmr-white-gray: #f9f9f9;
  --white: #ffffff;
  --transparent-white: #ffffffbb;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  --gray-900: #1a1a1a;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--msmr-dark);
  margin-bottom: 1rem;
}

/* 
h1 {
  font-size: 2.5rem;
}
*/

h2 {
  font-size: 4rem !important;
  text-transform: none !important;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  text-decoration: none;
  color: var(--msmr-orange);
}

img {
  max-width: 100%;
  height: auto;
}

.lucide-map-pin {
  width: 26px;
  height: 26px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.bg-gray {
  background-color: var(--msmr-light-gray);
}

.bg-light-gray {
  background-color: var(--msmr-white-gray);
}

.bg-orange-light {
  background-color: var(--msmr-orange-light) !important;
}

.bg-orange-superlight {
  background-color: var(--msmr-orange-superlight);
}

.bg-yellow-superlight {
  background-color: var(--msmr-yellow-superlight);
}

.bg-yellow {
  background-color: var(--msmr-yellow);
}

.bg-orange-gradient {
  background: linear-gradient(60deg, var(--msmr-orange-light), var(--sun));
}

.text-center {
  text-align: center;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 4rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.lucide {
  margin-right: 8px;
}

.location-section .lucide {
  margin-top: 4px;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Botones y enlaces */
main .btn {
  align-items: center;
  background-color: var(--msmr-orange);
  color: var(--white);
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 26px;
}

.btn i {
  margin-left: 0.5rem;
}

main .btn:hover {
  background-color: var(--msmr-orange-light);
  font-size: 26px;
}

main .btn-secondary {
  background-color: var(--msmr-yellow);
}

.link-icon {
  display: inline-flex;
  align-items: center;
  color: var(--msmr-orange);
  font-weight: 500;
  transition: color 0.3s ease;
}

.link-icon i {
  margin-right: 0.5rem;
}

.link-icon:hover {
  color: var(--msmr-orange-light);
}

.link-arrow {
  color: var(--msmr-orange);
  font-weight: 500;
  transition: color 0.3s ease;
}

.link-arrow:hover {
  color: var(--msmr-orange-light);
}

.link-hover {
  transition: color 0.3s ease;
}

.link-hover:hover {
  color: var(--msmr-orange);
}

.icon-small {
  width: 1rem;
  height: 1rem;
}

.chat-icon img {
    height: revert-layer;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-image: url("images/hero-image-valldeuxo.jpg");
  background-size: cover;
  background-position: center;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--msmr-orange), #FFFFFF11 70%);
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 800px;
  padding: 2rem 0;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-content h2 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.hero-content .btn-secondary {
  margin: 1rem 0 0;
  background-color: var(--mango);
}

.hero-content .btn-yellow {
  margin: 1rem 0 0;
  background-color: var(--yellow);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle-large {
  margin-top: -18px;
  text-align: center;
  margin-bottom: 6rem;
}

/* Image Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Modal */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 74px;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  top: 50%;
  transform: translateY(-50%);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--white);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#modalImage {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Navigation buttons for modal */
main .mod-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  z-index: 1001;
}

main .mod-nav-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Image counter */
.image-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 1001;
}

/* Hide navigation on small screens */
@media (max-width: 768px) {
  .mod-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }
}

/* Map */
.map-container {
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Info Items */
.info-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.info-item i {
  color: var(--msmr-orange);
  margin-right: 1rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.info-item h3 {
  margin-bottom: 0.5rem;
}

.about-section .section-title {
  color: var(--msmr-orange);
}

/* Team Cards */
.team-card {
  overflow: hidden;
}

.team-image-container {
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem auto;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem 0 0;
  text-align: center;
}

.team-info h3 {
  text-transform: none !important;
}

.team-position {
  color: var(--msmr-orange);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-description {
  color: var(--msmr-gray);
}

/* Course Cards */
.course-card {
  background-color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.course-image-container {
  height: 12rem;
  overflow: hidden;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-info {
  padding: 2.5rem 3rem;
  border-top: 4px solid var(--msmr-orange);
}

.course-info h3 {
  margin-bottom: 1rem;
}

.course-info p {
  color: var(--msmr-gray);
}

.contact-section,
.contact-section h3,
.contact-section .section-title {
  color: var(--white);
}

/* Testimonial Cards */
.team-section,
.testimonial-card {
  background: linear-gradient(135deg, var(--sand), var(--msmr-orange-superlight));
}

.testimonials-section .section-title,
.testimonials-section .link-icon {
  color: var(--msmr-yellow);
  opacity: 100%;
}

.team-section .section-title,
.team-section .section-subtitle-large {
  color: var(--msmr-orange);
  opacity: 100%;
}

.testimonial-card {
  padding: 2.4rem 3.4rem;
  position: relative;
  box-shadow: var(--shadow);
  border-radius: 5rem;
}

.testimonial-text {
  padding-top: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.testimonial-author {
  align-items: center;
}

.testimonial-author-info h4 {
  margin-bottom: 0.25rem;
  font-size: 18px !important;
  text-align: right;
}

/* Community Cards */
.community-card {
  background-color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.community-image-container {
  height: 12rem;
  overflow: hidden;
}

.community-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-info {
  padding: 2.5rem 3rem;
  border-top: 4px solid var(--msmr-orange);
}

.community-info h3 {
  margin-bottom: 1rem;
}

.community-info p {
  color: var(--msmr-gray);
  margin-bottom: 1rem;
}

/* Stats */
.stats-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background-color: var(--white);
  padding: 4rem 6rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-radius: 1.2rem;
  margin: 2rem 1rem 0;
}

.stat-number {
  font-family: "Poppins", sans-serif;
  font-size: 5rem;
  font-weight: bold;
  color: var(--msmr-orange);
  margin-bottom: 0rem;
  line-height: 1.4em;
}

.stat-text {
  color: var(--msmr-gray);
  margin-bottom: 6px;
}

/* Feature Cards */
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-card .feature-icon svg {
  width: 64px;
  height: 64px;
  stroke-width: 1px;
}

@media (min-width: 768px) {
  .feature-card {
    display: flex;
  }
}

.feature-icon {
  background-color: var(--msmr-orange-light);
  color: var(--white);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .feature-icon {
    width: 25%;
  }
}

.feature-content {
  padding: 2.5rem 3rem;
}

.feature-content svg {
  width: 22px;
  height: 22px;
  vertical-align: text-bottom;
}

@media (min-width: 768px) {
  .feature-content {
    width: 75%;
  }
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background-color: var(--msmr-light-gray);
  color: var(--msmr-dark);
  font-size: 1.45rem;
  font-weight: 500;
  padding: 0.25rem 0.8rem;
  border-radius: 0.6rem;
}

.feature-quote {
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: var(--msmr-light-gray);
  border-left: 4px solid var(--msmr-orange);
}

.feature-quote p {
  font-size: 1.6rem;
  font-style: italic;
  color: var(--msmr-gray);
  margin-bottom: 0;
}

/* Contact Section */
.contact-section .container{
  padding-left: 200px;
  padding-right: 200px;
}

.contact-item {
  display: flex;
}

.contact-item svg {
  color: var(--sun);
  margin-right: 1rem;
  flex-shrink: 0;
  margin-top: 6px;
}

.contact-item h3 {
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--white);
  font-weight: 300;
  text-decoration: underline !important;
}

.contact-section .link-hover:hover {
  opacity: 70%;
  color: var(--white);
}

.promo-box {
  padding: 4rem 3rem 1rem;
  margin-bottom: 2.5rem;
}

.promo-box h3 {
  margin-bottom: 1rem;
  text-transform: none;
  font-weight: 600;
  font-size: 26px !important;
}

.contact-form-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: initial;
}

.contact-section .btn-large {
  font-size: 28px;
}

.contact-form-container h3 {
  margin-bottom: 1.5rem;
}

.contact-form-container p {
  margin-bottom: 2rem;
}

.claim-section {
    background-color: var(--gray-900);
    color: white;
    padding: 56px 20px 0;
    text-align: center;
}

.texto-degradado {
    background: linear-gradient(to right, var(--msmr-orange), var(--white));
    background-clip: text;
    color: transparent;
    margin: -1px;
}

/* Social Footer */
.social-footer {
  background-color: var(--msmr-dark);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.social-footer h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.social-footer p {
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-icon {
  color: var(--white);
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--msmr-orange);
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 1.75rem;
  }
  .location-section .info-item div {
    width: 85%;
  }
  .btn {
    width: 100%;
  }
}

/* Filtros de servicios */
.service-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 5rem;
}

button.filter-btn {
  background-color: var(--msmr-light-gray);
  padding: 1.4rem 2.2rem;
  border-radius: 4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 22px;
  margin-top: 0;
  text-transform: capitalize;
  box-shadow: var(--shadow);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
}

button[data-filter="kids"] {
  color: var(--sun);
}

button[data-filter="teens"] {
  color: var(--msmr-yellow);
}

button[data-filter="adults"] {
  color: var(--msmr-orange);
}

button[data-filter="all"] {
  color: var(--msmr-dark);
}

[data-filter="kids"]:hover,
[data-filter="kids"].active {
  background-color: var(--sun);
}

[data-filter="teens"]:hover,
[data-filter="teens"].active {
  background-color: var(--msmr-yellow);
}

[data-filter="adults"]:hover,
[data-filter="adults"].active {
  background-color: var(--msmr-orange);
}

[data-filter="all"]:hover,
[data-filter="all"].active {
  background-color: var(--msmr-dark);
}

/* Grid de servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.4rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tarjetas de servicios */
.service-card {
  background-color: var(--msmr-light-gray);
  border-radius: 2rem;
  padding: 2rem 3rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 1;
  transform: scale(1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.service-emoji {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1;
}

.service-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  color: var(--msmr-dark);
  margin-bottom: 1rem;
  font-size: 24px !important;
  text-transform: none;
  text-decoration: underline 5px solid;
  text-underline-offset: 10px;
  line-height: 40px !important;
}

[data-category="kids"] .service-content h3 {
  text-decoration-color: var(--sun);
}

[data-category="kids teens"] .service-content h3 {
  text-decoration-color: var(--sun);
}

[data-category="teens kids"] .service-content h3 {
  text-decoration-color: var(--msmr-yellow);
}

[data-category="teens"] .service-content h3 {
  text-decoration-color: var(--msmr-yellow);
}

[data-category="teens adults"] .service-content h3 {
  text-decoration-color: var(--msmr-orange);
}

[data-category="adults"] .service-content h3 {
  text-decoration-color: var(--msmr-orange);
}

.service-content p {
  color: var(--msmr-gray);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.service-link {
  display: grid;
  align-items: center;
  color: var(--msmr-orange);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
  max-width: 160px;
}

.service-link:hover {
  transform: translateX(5px);
}

.service-link i {
  margin-left: 0.5rem;
  width: 1rem;
  height: 1rem;
}

.service-link svg {
  width: 20px !important;
}

/* Call to action de servicios */
.services-cta {
  color: var(--white);
  padding: 4rem;
  border-radius: 1rem;
  text-align: center;
  margin-top: 3rem;
}

.services-cta h3 {
  color: var(--white);
  font-size: 3rem !important;
  margin-bottom: 1rem;
  text-transform: none;
}

.services-cta p {
  margin: 2rem 0 3rem;
}

.services-cta .btn {
  background-color: var(--white);
  color: var(--mango);
}

.services-cta .btn:hover {
  background-color: #FFFFFF96;
}

/* Animaciones para el filtrado */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.fade-out {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
}

.service-card.fade-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-filters {
    gap: 18px;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-emoji {
    font-size: 2.5rem;
  }
  
  .services-cta {
    padding: 2rem 1.5rem;
  }
  
  .services-cta h3 {
    font-size: 1.5rem;
  }

  .service-link {
  font-size: 16px;
  }
}

