/* El Malacara - Estudio de grabación boutique */
@import url('https://fonts.googleapis.com/css2?family=Rowdies:wght@300;400;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/cal-sans@1.0.1/fonts/fonts.css');

/* Reset and Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a1a1a;
  --accent-color: #ff4d00;
  --text-color: #f5f5f5;
  --text-dark: #333;
  --font-main: 'Cal Sans', sans-serif;
  --font-accent: 'Rowdies', cursive;
  --transition-standard: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-standard: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-elevated: 0 8px 30px rgba(0, 0, 0, 0.25);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-image: url('img/bg_rejaw.jpg');
  background-size: cover;
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-accent);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all var(--transition-standard);
}

a:hover {
  color: #ff7733;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-standard);
  text-decoration: none;
  gap: 0.5rem;
}

.btn:hover {
  background-color: #ff7733;
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-standard);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-weight: bold;
  transition: all var(--transition-standard);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.3);
}

section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 5rem 0;
  }
}

/* Modern Navbar */
.modern-navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.logo-modern {
  display: flex;
  align-items: center;
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  gap: 0.75rem;
  transition: transform var(--transition-standard);
}

.logo-modern:hover {
  transform: scale(1.03);
  color: #fff;
}

.logo-img-modern {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-standard), border-color var(--transition-standard);
}

.logo-modern:hover .logo-img-modern {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.nav-links-modern {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  transition: transform var(--transition-standard), opacity var(--transition-standard);
}

.nav-links-modern li a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-standard);
}

.nav-links-modern li a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--accent-color);
  transition: width var(--transition-standard);
  position: absolute;
  left: 0;
  bottom: 0;
}

.nav-links-modern li a:hover {
  color: var(--accent-color);
}

.nav-links-modern li a:hover::after {
  width: 100%;
}

/* FDM Button */
.fdm-button {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background-color: rgba(255, 77, 0, 0.15);
  border-radius: 20px;
  padding: 0.3rem 0.8rem !important;
  transition: all var(--transition-standard) !important;
}

.fdm-button:hover {
  background-color: var(--accent-color);
  color: white !important;
  transform: translateY(-2px);
}

.fdm-button::after {
  display: none !important;
}

/* Hamburger for mobile */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 200;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #fff;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.nav-toggle-label span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  bottom: -8px;
}

.nav-toggle:checked + .nav-toggle-label span {
  background: transparent;
}

.nav-toggle:checked + .nav-toggle-label span::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--accent-color);
}

.nav-toggle:checked + .nav-toggle-label span::after {
  bottom: 0;
  transform: rotate(-45deg);
  background: var(--accent-color);
}

@media (max-width: 768px) {
  /* Set transparent navbar */
  .modern-navbar {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    position: absolute;
    width: 100%;
    z-index: 200;
  }
  
  /* Ensure logo is visible and clickable */
  .logo-modern {
    z-index: 201;
    position: relative;
  }
  
  /* Style the hamburger icon */
  .nav-toggle-label {
    display: block;
    z-index: 201;
    position: relative;
  }
  
  /* Full-screen menu */
  .nav-links-modern {
    position: fixed;
    top: 0;
    right: -100%;
    width: auto;
    height: auto;
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 80px 25px 25px 25px;
    z-index: 199; /* Below the logo and toggle */
    border-radius: 0 0 0 5px;
  }
  
  /* Apply correct selector based on HTML structure */
  .nav-toggle:checked ~ .nav-links-modern {
    opacity: 1;
    visibility: visible;
    height: fit-content;
    width: fit-content;
    min-width: 200px;
    max-width: 80vw;
    right: 0;
    left: auto;
    background-color: rgba(20, 20, 20, 0.9);
  }
  
  /* Menu items */
  .nav-links-modern li {
    width: auto;
    text-align: left;
    margin: 0.25rem 0;
  }
  
  .nav-links-modern li a {
    display: block;
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    color: white;
    white-space: nowrap;
  }
  
  .nav-links-modern li a::after {
    height: 3px;
    bottom: 5px;
  }
  
  /* Make sure the nav toggle is hidden but functional */
  .nav-toggle {
    position: absolute;
    opacity: 0;
  }
  
  /* Mobile FDM button */
  .fdm-button {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem !important;
    background-color: rgba(255, 77, 0, 0.3);
    border-radius: 25px;
  }
}

/* Modern Hero Section */
.modern-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-video-modern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25, 25, 25, 0.7) 0%, rgba(25, 25, 25, 0.5) 100%);
  z-index: 1;
}

.hero-center-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 90%;
  transform: translateY(-2rem);
  animation: fadeInUp 1.2s ease-out forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(2rem);
  }
  100% {
    opacity: 1;
    transform: translateY(-2rem);
  }
}

.hero-title-modern {
  font-family: var(--font-accent);
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle-modern {
  font-family: var(--font-accent);
  color: white;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 10rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: bounce 2s infinite;
  font-size: 1.5rem;
  transition: background-color var(--transition-standard);
}

.scroll-indicator:hover {
  background-color: var(--accent-color);
  animation-play-state: paused;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-15px) translateX(-50%);
  }
  60% {
    transform: translateY(-7px) translateX(-50%);
  }
}

@media (max-width: 768px) {
  .modern-hero {
    align-items: flex-start;
    padding-top: 25vh;
  }
  
  .hero-center-content {
    padding: 1.5rem;
    transform: translateY(0);
  }
  
  .hero-subtitle-modern {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-top: 1rem;
  }
  
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(2rem);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .scroll-indicator {
    bottom: 25vh;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .modern-hero {
    padding-top: 20vh;
  }
  
  .hero-subtitle-modern {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
    line-height: 1.2;
  }
  
  .scroll-indicator {
    bottom: 35vh;
  }
}

/* Modifier for small hero on internal pages */
.modern-hero.small, 
.servicios-hero,
.talleres-hero {
  min-height: 15vh;
  height: auto;
  padding: 2rem 0 1rem 0;
}

.modern-hero.small .hero-center-content,
.servicios-hero .hero-center-content,
.talleres-hero .hero-center-content {
  transform: translateY(0);
  animation: fadeIn 0.8s ease-out forwards;
  padding: 0.75rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .modern-hero.small,
  .servicios-hero,
  .talleres-hero {
    min-height: 12vh;
    padding: 2rem 0 0.75rem 0;
  }
  
  /* Hide the page titles on mobile/narrow screens */
  .servicios-hero .hero-title-modern,
  .talleres-hero .hero-title-modern,
  .modern-hero.small .hero-title-modern {
    display: none;
  }
}

/* Showcase Section */
.showcase-section {
  background: linear-gradient(to bottom, rgba(25, 25, 25, 0.95), rgba(30, 30, 30, 0.9));
  padding: 5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.showcase-intro {
  max-width: 800px;
  margin-bottom: 3.5rem;
  text-align: center;
}

.showcase-title {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--text-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.showcase-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.showcase-description {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: #e0e0e0;
  max-width: 600px;
  margin: 0 auto;
}

.showcase-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-card {
  width: 100%;
  max-width: 520px;
  background: rgba(30, 30, 30, 0.8);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-standard);
  transition: all var(--transition-standard);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(255, 77, 0, 0.3);
}

.showcase-img {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.showcase-img a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.showcase-img a:hover img {
  transform: scale(1.05);
}

.showcase-card:hover .showcase-img img {
  transform: scale(1.05);
}

.showcase-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.showcase-content h3 {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  align-self: center;
}

.showcase-content h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.showcase-card:hover .showcase-content h3::after {
  width: 60px;
}

.showcase-content p {
  color: #e0e0e0;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.showcase-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--accent-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  transition: all var(--transition-standard);
  text-decoration: none;
  font-size: 1rem;
  align-self: flex-start;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(255, 77, 0, 0.25);
}

.showcase-btn:hover {
  background-color: #ff7733;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 77, 0, 0.35);
}

.showcase-btn i {
  font-size: 0.9rem;
  transition: transform var(--transition-standard);
}

.showcase-btn:hover i {
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .showcase-grid {
    gap: 2.5rem;
  }
  
  .showcase-card {
    max-width: 480px;
  }
  
  .showcase-img {
    height: 220px;
  }
}

@media (min-width: 1024px) {
  .showcase-section {
    padding: 6rem 2rem;
  }

  .showcase-grid {
    gap: 3.5rem;
  }
  
  .showcase-card {
    max-width: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  }
  
  .showcase-img {
    height: 200px;
    position: relative;
  }
  
  .showcase-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(30, 30, 30, 0.8), transparent);
    z-index: 1;
  }
  
  .showcase-content {
    padding: 2.25rem;
  }
}

@media (max-width: 768px) {
  .showcase-section {
    padding: 4rem 1.5rem;
  }
  
  .showcase-content {
    padding: 1.5rem;
  }
  
  .showcase-content h3 {
    font-size: 1.5rem;
  }
  
  .showcase-content p {
    font-size: 1rem;
  }
}

/* Carousel Section */
.carousel-section {
  width: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
}

.carousel-container {
  display: flex;
  gap: 2rem;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2rem 1.5rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  background: rgba(24, 24, 24, 0.95);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-standard);
  min-width: 280px;
  max-width: 420px;
  width: 90%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-standard);
  scroll-snap-align: center;
  flex-shrink: 0;
}

.carousel-slide:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}

.carousel-img {
  width: 100%;
  height: 220px;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  overflow: hidden;
}

.carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-standard);
}

.carousel-slide:hover .carousel-img img {
  transform: scale(1.05);
}

.carousel-content {
  padding: 2rem 1.5rem;
  color: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.carousel-content h2 {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.carousel-content p {
  font-size: 1rem;
  color: #eee;
  margin-bottom: 0.75rem;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 5;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-standard);
  pointer-events: auto;
}

.carousel-btn:hover {
  background-color: var(--accent-color);
  transform: scale(1.05);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transition: all var(--transition-standard);
  cursor: pointer;
}

.pagination-dot.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

@media (min-width: 768px) {
  .carousel-container {
    padding: 2rem 10%;
  }
  
  .carousel-slide {
    max-width: 450px;
  }
  
  .carousel-controls {
    padding: 0 8%;
  }
}

@media (max-width: 768px) {
  .carousel-section {
    padding: 3rem 0;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* Service Page */
.service-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: var(--border-radius-md);
  padding: 2rem;
}

.service-img {
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  height: 250px;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-standard);
}

.service-img:hover img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: var(--border-radius-sm);
}

.service-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.service-content p, 
.service-content li {
  font-size: 1rem;
  line-height: 1.6;
}

.service-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.service-content li {
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .service-section {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem;
  }
  
  .service-img {
    height: 350px;
  }
  
  .service-section:nth-child(even) {
    grid-template-areas: "content image";
  }
  
  .service-section:nth-child(odd) {
    grid-template-areas: "image content";
  }
  
  .service-section:nth-child(even) .service-img {
    grid-area: image;
  }
  
  .service-section:nth-child(even) .service-content {
    grid-area: content;
  }
  
  .service-section:nth-child(odd) .service-img {
    grid-area: image;
  }
  
  .service-section:nth-child(odd) .service-content {
    grid-area: content;
  }
}

/* Workshops Page */
.workshop-section {
  background-color: rgba(0, 0, 0, 0.7);
  margin: 2rem 0;
  padding: 2rem;
  border-radius: var(--border-radius-md);
}

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

.workshop-item {
  padding: 1.5rem;
  background-color: rgba(51, 51, 51, 0.7);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-standard);
}

.workshop-item:hover {
  background-color: rgba(75, 75, 75, 0.9);
  transform: translateY(-5px);
  box-shadow: var(--shadow-standard);
}

@media (min-width: 768px) {
  .workshop-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .workshop-section {
    padding: 3rem;
  }
}

/* Ubicación Page */
.ubicacion-hero {
  background-image: url('img/bg_tita.jpg');
  background-size: cover;
  background-position: center;
  min-height: 15vh;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 0;
  padding: 2rem 0 1rem 0;
}

.ubicacion-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.ubicacion-hero .section-title {
  color: var(--text-color);
  z-index: 2;
  position: relative;
}

.service-img.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  height: auto;
}

.service-img.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  transition: transform var(--transition-standard);
}

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

@media (min-width: 768px) {
  .service-img.gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-img.gallery img {
    height: 220px;
  }
}

/* Modern Footer */
.modern-footer {
  background: #181818;
  color: #fff;
  padding: 3rem 0 1.5rem 0;
  margin-top: auto;
}

.footer-content-modern {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.footer-logo-modern {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.footer-links-modern {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}

.footer-links-modern li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition-standard);
}

.footer-links-modern li a:hover {
  color: var(--accent-color);
}

.footer-links-modern li a i {
  margin-right: 0.3rem;
}

.social-links-modern {
  display: flex;
  gap: 1.2rem;
  font-size: 1.5rem;
  justify-content: center;
}

.social-links-modern a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all var(--transition-standard);
}

.social-links-modern a:hover {
  color: #fff;
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.copyright-modern {
  font-size: 0.95rem;
  color: #bbb;
  margin-top: 0.5rem;
  text-align: center;
}

/* Animation Styles */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Remove old unused classes */
.hero, .hero-video, .hero-overlay, .hero-content, .hero-title, .hero-subtitle,
.navigation-hint {
  display: none !important;
}

/* Fixes for Mobile */
@media (max-width: 480px) {
  html, body {
    font-size: 15px;
  }
  
  .container {
    width: 95%;
    padding: 0 0.75rem;
  }
  
  .showcase-card {
    max-width: 100%;
  }
  
  .showcase-img {
    height: 200px;
  }
  
  .carousel-slide {
    min-width: 260px;
    width: 85%;
  }
  
  .carousel-img {
    height: 180px;
  }
  
  .service-section,
  .workshop-section {
    padding: 1.5rem;
  }
}

/* Accessibility Improvements */
:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

button, 
a, 
[role="button"] {
  cursor: pointer;
}

.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;
}

/* Fix any horizontal overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Service Page Grid Layout for Desktop */
@media (min-width: 768px) {
  .carousel-section {
    padding: 4rem 0;
  }
  
  /* Desktop grid layout (hide carousel functionality) */
  #servicios-carousel,
  #talleres-carousel,
  #ubicacion-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 8%;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  
  #servicios-carousel .carousel-slide,
  #talleres-carousel .carousel-slide,
  #ubicacion-carousel .carousel-slide {
    max-width: 100%;
    width: 100%;
    scroll-snap-align: unset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: none !important;
  }
  
  /* Hide carousel controls on desktop */
  #servicios-section .carousel-controls,
  #talleres-section .carousel-controls,
  #ubicacion-section .carousel-controls,
  #servicios-section .carousel-pagination,
  #talleres-section .carousel-pagination,
  #ubicacion-section .carousel-pagination {
    display: none;
  }
  
  /* Improve desktop card layout */
  #servicios-carousel .carousel-slide,
  #talleres-carousel .carousel-slide,
  #ubicacion-carousel .carousel-slide {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100%;
    background: rgba(24, 24, 24, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  #servicios-carousel .carousel-img,
  #talleres-carousel .carousel-img,
  #ubicacion-carousel .carousel-img {
    height: 280px;
  }
  
  #servicios-carousel .carousel-content,
  #talleres-carousel .carousel-content,
  #ubicacion-carousel .carousel-content {
    padding: 2rem;
  }
  
  #servicios-carousel .carousel-content h2,
  #talleres-carousel .carousel-content h2,
  #ubicacion-carousel .carousel-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }
}

@media (min-width: 1024px) {
  #servicios-carousel,
  #talleres-carousel,
  #ubicacion-carousel {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 10%;
  }
  
  #servicios-carousel .carousel-slide,
  #talleres-carousel .carousel-slide,
  #ubicacion-carousel .carousel-slide {
    background: rgba(24, 24, 24, 0.85);
  }
  
  #servicios-carousel .carousel-img,
  #talleres-carousel .carousel-img,
  #ubicacion-carousel .carousel-img {
    height: 320px;
  }
}