/* Global Styles */
:root {
  --primary-color: #D32F2F;
  /* Deep Red */
  --secondary-color: #121212;
  /* Dark Background */
  --surface-color: #1E1E1E;
  /* Slightly Lighter for cards */
  --text-color: #FFFFFF;
  --text-secondary: #B0B0B0;
  --max-width: 1200px;
  --nav-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: center;
}

p {
  margin-bottom: 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background-color: rgba(18, 18, 18, 0.95);
  height: var(--nav-height);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #333;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo span {
  color: var(--text-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-social {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-social a {
  font-size: 1.2rem;
  color: var(--text-color);
  transition: color 0.3s;
}

.nav-social a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #ddd;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  text-transform: uppercase;
  transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
  background-color: #b71c1c;
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--primary-color);
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* About / Location */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
}

.location-box {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

/* Map Container */
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #333;
}

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


/* Services / Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Schedules Grid (for Horarios page) */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.schedule-card {
  background-color: var(--surface-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.schedule-header {
  background-color: var(--primary-color);
  padding: 20px;
  text-align: center;
}

.schedule-header h3 {
  margin: 0;
  color: white;
  font-size: 1.5rem;
}

.schedule-body {
  padding: 20px;
}

.class-time {
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.class-time:last-child {
  border-bottom: none;
}

.class-time strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #eee;
}

.class-time span {
  color: var(--text-secondary);
}

/* Footer */
footer {
  background-color: #000;
  padding: 40px 0;
  text-align: center;
  margin-top: auto;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  margin: 0 10px;
  font-size: 1.2rem;
  color: white;
}

/* Images */
.img-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.nav-logo-img {
  max-height: 50px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }
}