/*******************************
CSS: style.css
*******************************/

/* ===== CSS VARIABLES ===== */
:root {
  /* Font families */
  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Primary & Accent Colors */
  --color-primary: #0057ff;
  --color-primary-dark: #003fcc;
  --color-accent: #ff008c;
  --color-accent-dark: #cc006f;

  /* Neumorphism Base Colors */
  --bg-light: #ebf0f4;
  --bg-dark: #1e1e2f;
  --card-bg: #f2f4f7;
  --text-dark: #222222;
  --text-light: #ffffff;

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #0057ff, #00d1b2);
  --gradient-subtle: linear-gradient(120deg, #f0f4ff, #dfe9f3);

  /* Shadows */
  --shadow-neumo: 5px 5px 15px rgba(0, 0, 0, 0.1),
                  -5px -5px 15px rgba(255, 255, 255, 0.6);

  --shadow-pop: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== GLOBAL STYLES ===== */
body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  scroll-behavior: smooth;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
}

a {
  color: var(--color-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-dark);
}

/* Smooth section spacing */
section {
  padding: 4rem 1.5rem;
}

/* Background image default */
section[data-prompt] {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* ===== TYPOGRAPHY ===== */
.title {
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.subtitle {
  font-size: 1.25rem;
}

/* ===== BUTTONS ===== */
.btn,
button,
input[type='submit'] {
  background: var(--gradient-main);
  border: none;
  border-radius: 50px;
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  font-family: var(--font-heading);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-neumo);
  cursor: pointer;
}

.btn:hover,
button:hover,
input[type='submit']:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-pop);
}

/* "Leer más" link */
a.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

a.read-more:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--text-light);
}

.hero .hero-body {
  z-index: 2;
}

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

/* ===== NAVBAR ===== */
.navbar {
  box-shadow: var(--shadow-neumo);
  background-color: white;
}

.navbar-item,
.navbar-link {
  font-weight: 600;
  font-size: 1rem;
}

.navbar-burger span {
  background-color: var(--color-primary);
}

/* ===== NEOMORPHIC CARDS ===== */
.card {
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-neumo);
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-pop);
}

.card-content {
  padding: 1.5rem;
}

.card-image,
.image-container {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image img,
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

/* ===== RESPONSIVE IMAGES ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== INSTRUCTORS GRID ===== */
.team-member {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== FOOTER ===== */
footer {
  padding: 2rem 1.5rem;
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

footer a {
  color: var(--color-accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  margin: 0.5rem 0;
}

/* Social icons (TEXT only) */
footer .social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-weight: 600;
}

/* ===== SECTION SPECIFICS ===== */
section.has-background-light {
  background: var(--gradient-subtle);
}

#projects,
#workshops,
#instructors,
#webinars {
  background-color: #ffffff;
}

/* ===== CONTACT FORM ===== */
#contact-form .field input,
#contact-form .field textarea {
  border-radius: 12px;
  border: 1px solid #ccc;
  padding: 0.75rem;
  transition: box-shadow 0.3s ease;
}

#contact-form .field input:focus,
#contact-form .field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-primary);
}

#contact-form button {
  width: 100%;
}

/* ===== SUCCESS PAGE ===== */
body.success-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--gradient-subtle);
}

body.success-page h1 {
  font-size: 2rem;
  font-family: var(--font-heading);
}

/* ===== PRIVACY & TERMS PAGES ===== */
body.legal-page main {
  padding-top: 100px;
  padding-bottom: 2rem;
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* ===== AOS + TRANSITIONS ===== */
[data-aos] {
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55) !important; /* Elastic */
}

a,
button,
.btn,
.card,
.navbar-item {
  transition: all 0.3s ease-in-out;
}

/* ===== PARALLAX EFFECTS ===== */
.parallax-background {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ===== GLASSMORPHIC EXAMPLE ===== */
.glass {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== GRID + FLEX ===== */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  .navbar-menu {
    background-color: #fff;
  }

  .card-image,
  .image-container {
    height: 200px;
  }
}