/* Variables y Paleta INTRA (Turquesa y Rojo Acento) */
:root {
  --primary-turquoise: #00a896;
  --secondary-turquoise: #028090;
  --accent-red: #e63946;

  --bg-color: #f8fbfb;
  --surface-color: #ffffff;
  --surface-border: #e2ece9;
  --text-dark: #1e2d2f;
  --text-muted: #5c6f72;
}

/* Detección de Modo Oscuro del Sistema */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0b1416;
    --surface-color: #121e21;
    --surface-border: #1d2e33;
    --text-dark: #f0f7f6;
    --text-muted: #95a8ab;
  }
}

/* Reset Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.accent-text {
  color: var(--primary-turquoise);
}

/* Header Navegación Dinámica */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 2rem;
  background: transparent;
  transition:
    background-color 0.4s ease,
    padding 0.4s ease,
    box-shadow 0.4s ease;
}

.navbar.scrolled {
  background-color: var(--primary-turquoise);
  padding: 0.8rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.4rem;
}

.brand-logo img {
  height: 40px;
  border-radius: 50%;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 1.8rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent-red);
}

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

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 30, 0.65);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.hero-logo-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 0 25px rgba(0, 168, 150, 0.5);
}

.hero-content h1 {
  font-size: 3.8rem;
  letter-spacing: 2px;
}

.hero-tagline {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.btn-turquoise {
  background-color: var(--primary-turquoise);
  color: #ffffff;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-turquoise:hover {
  background-color: var(--accent-red);
  transform: translateY(-3px);
}

/* Nosotros Section */
.about-section {
  padding: 5rem 0;
  text-align: center;
}

.about-description {
  max-width: 800px;
  margin: 1.5rem auto 0;
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Servicios Section (Acordeón) */
.services-section {
  padding: 4rem 0 6rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-card {
  background-color: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-card:hover {
  border-color: var(--primary-turquoise);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.accordion-card .arrow {
  color: var(--primary-turquoise);
  transition: transform 0.3s ease;
}

.card-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    margin-top 0.3s ease;
  opacity: 0;
}

.accordion-card.active {
  border-left: 5px solid var(--primary-turquoise);
}

.accordion-card.active .card-content {
  max-height: 350px;
  opacity: 1;
  margin-top: 1rem;
}

.accordion-card.active .arrow {
  transform: rotate(180deg);
}

.card-content ul {
  list-style: none;
  margin: 0.8rem 0;
  color: var(--text-muted);
}

.duration {
  margin-top: 0.5rem;
}

.tags {
  margin-top: 0.8rem;
  display: inline-block;
  background-color: rgba(0, 168, 150, 0.1);
  color: var(--primary-turquoise);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Sedes Section */
.sedes-section {
  padding: 5rem 0;
  background-color: var(--surface-color);
}

.sedes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.sede-card {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  text-align: center;
}

.sede-icon {
  font-size: 2rem;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.sede-card h3 {
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.sede-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.main-footer {
  background-color: var(--primary-turquoise);
  color: #ffffff;
  padding-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 3rem;
}

.alert-text {
  margin-top: 1rem;
  background: rgba(230, 57, 70, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 32px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Estilos para el Mapa de Google */
.map-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--surface-border);
  margin-bottom: 2.5rem;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 450px;
}
