/* ==========================================================================
   Step by Step - Academia de inglés en Llanes
   ========================================================================== */

:root {
  --accent: #5b9e9a;
  --accent-light: #7abfbb;
  --accent-dark: #3d7a76;
  --bg-dark: #121212;
  --bg-card: #1a1a1a;
  --text-light: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.5);
}

/* Base */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
  letter-spacing: 0.02em;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fff;
}

.bg-dark-custom {
  background-color: var(--bg-dark);
}

.text-accent {
  color: var(--accent) !important;
}

/* Navbar */
#mainNav {
  background-color: transparent;
  transition: background-color 0.4s, box-shadow 0.4s;
  padding: 1rem 0;
}

#mainNav.navbar-shrink {
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
}

#mainNav .navbar-brand {
  font-family: 'Varela Round', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.1em;
}

#mainNav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  transition: color 0.2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #fff;
}

/* Hero / Masthead */
.masthead {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 18, 0.2) 0%,
    rgba(18, 18, 18, 0.6) 60%,
    var(--bg-dark) 100%
  ), url("../img/portada.jpg");
  background-position: center;
  background-size: cover;
}

.masthead h1 {
  font-family: 'Varela Round', sans-serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: 0.3em;
  color: #fff;
}

.masthead h2 {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  max-width: 30rem;
}

/* Sections */
section {
  padding: 6rem 0;
}

section h2 {
  font-family: 'Varela Round', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
}

/* About */
.about-section {
  padding-top: 8rem;
  background: linear-gradient(to bottom, var(--bg-dark) 0%, #1a1a1a 100%);
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Course cards */
.course-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.course-card h4 {
  font-family: 'Varela Round', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #fff;
}

.course-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(91, 158, 154, 0.15);
  color: var(--accent);
  font-size: 1.5rem;
}

.accent-hr {
  border: none;
  border-top: 3px solid var(--accent);
  width: 3rem;
  margin: 1rem auto;
  opacity: 1;
}

/* Links section */
.link-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
}

.link-card h5 {
  font-family: 'Varela Round', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.link-card a {
  display: inline-block;
  margin-bottom: 0.25rem;
}

/* Contact cards */
.contact-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  border-bottom: 3px solid var(--accent);
}

.contact-card h4 {
  font-family: 'Varela Round', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #fff;
}

.contact-card .card-text {
  color: rgba(255, 255, 255, 0.7);
}

.course-card .card-text,
.contact-card .card-text {
  color: rgba(255, 255, 255, 0.7);
}

.contact-card a {
  color: var(--accent-light);
}

/* Social */
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  transition: background 0.3s, color 0.3s;
}

.social a:hover {
  background: var(--accent);
  color: #fff;
}

/* Footer */
footer a {
  color: var(--accent-light);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .course-card,
  .link-card,
  .contact-card {
    animation: fadeUp 0.5s ease-out both;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
