/* ============ RESET & VARIABLES ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-light: #d1d5db;
  --gray: #9ca3af;
  --bg-dark: #020617;
  --bg-mid: #0f172a;
}

body {
  background: #000;
  color: #fff;
}

a { text-decoration: none; }

/* ============ UTILITIES ============ */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.logo {
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 6px;
}

.nav-links a:hover { color: var(--white); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--white);
  transition: width 0.25s ease;
}

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

.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  width: 100%;
}

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--white);
  color: var(--black);
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--gray-light);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255,255,255,0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-3px);
}

/* ============ HERO (INDEX) ============ */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background: url("../assets/hero.jpg") center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  padding-left: 8%;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-subtitle {
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin: 20px 0;
}

.hero-content h1 span { color: var(--gray-light); }

.hero-content p {
  font-size: 1.1rem;
  color: var(--gray-light);
  margin-bottom: 35px;
}

/* ============ PAGE TITLE (CURSOS) ============ */
.page-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 40px;
  margin-top: 10px;
  color: var(--white);
}

/* ============ CURSOS PAGE ============ */
.course-page {
  padding-top: 90px; /* compensa navbar */
  background: #000;
}

.course-page .container {
  padding-top: 40px;
  padding-bottom: 60px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.course-card {
  background: var(--white);
  color: var(--black);
  border-radius: 20px;
  padding: 50px 40px;
  width: 100%;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  transition: all 0.35s ease;
}

.course-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.course-card h2 { margin-bottom: 15px; }
.course-card p { color: #333; }

.course-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
  margin-bottom: 25px;
}

.course-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.5;
}

.course-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
  font-size: 1.2rem;
  line-height: 1;
}

/* Botón WhatsApp */
.btn-whatsapp {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 40px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-whatsapp img {
  width: 20px;
  height: 20px;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* ============ SOBRE MI (IDENTITY) ============ */
.identity-bg {
  position: relative;
  min-height: 100vh;
  padding-top: 75px;
  background: url("../assets/rebek-filosofia.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.identity-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.7) 40%,
    rgba(0,0,0,0.4) 70%,
    rgba(0,0,0,0.2) 100%
  );
  z-index: 1;
}

.identity-content {
  position: relative;
  z-index: 2;
}

.identity-text {
  max-width: 640px;
  margin-bottom: 60px;
}

.identity-text h2 {
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.identity-text p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.identity-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 70px;
}

.identity-block {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 26px;
}

.identity-block h3 {
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.identity-block p {
  color: var(--gray-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Timeline */
.timeline-wrap { margin-top: 10px; }

.timeline-title {
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 40px 0 18px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 34px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.12);
}

.timeline-item {
  position: relative;
  margin-bottom: 22px;
}

.timeline-date {
  display: block;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.timeline-badge {
  position: absolute;
  left: -34px;
  top: 20px;
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px;
}

.timeline-card {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px 18px;
}

.timeline-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.timeline-role {
  margin-top: 6px;
  color: var(--gray);
  font-size: 0.9rem;
}

.timeline-achievements {
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

.timeline-achievements li {
  color: var(--gray-light);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

.timeline-achievements li::before {
  content: "🏆";
  position: absolute;
  left: 0;
  top: 0;
}

/* ============ CONTACTO PAGE (FONDO) ============ */
.contact-page {
  position: relative;
  padding-top: 120px;
  background: url("../assets/contacto-bg.jpg") center/cover no-repeat;
}

.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.contact-page .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Info */
.contact-info h2 {
  font-size: 2.4rem;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--gray-light);
  font-size: 1rem;
}

.contact-item img {
  width: 22px;
  opacity: 0.9;
}

/* Redes */
.contact-social {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.contact-social img {
  width: 28px;
  opacity: 0.7;
  transition: 0.3s ease;
}

.contact-social img:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* Form */
.contact-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-row {
  display: flex;
  gap: 15px;
}

.input-row input,
.input-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-enviar {
  align-self: flex-end;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  background-color: #111;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-enviar:hover {
  background-color: #333;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .input-row {
    flex-direction: column;
  }

  .btn-enviar {
    width: 100%;
    text-align: center;
  }
}


/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .identity-bg {
    min-height: auto;
    padding: 120px 0;
  }

  .identity-text {
    text-align: center;
    margin: 0 auto 50px;
  }

  .identity-sections {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-info { text-align: center; }
  .contact-item { justify-content: center; }
  .contact-social { justify-content: center; }
  .btn-contact { align-self: center; }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    padding: 100px 20px;
    padding-left: 20px;
    text-align: center;
    margin-top: 70px;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-content p { font-size: 1rem; }

  .nav-links { gap: 20px; }

  .page-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }

  .timeline { padding-left: 30px; }
  .timeline-badge { left: -30px; }

  .course-card { padding: 30px 20px; }
  .container { padding: 60px 20px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  h2 { font-size: 1.8rem; }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

.gracias-section {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.gracias-card {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gracias-card h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #111;
}

.gracias-card p {
  font-size: 16px;
  margin-bottom: 30px;
  color: #555;
}
