@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Premium Palette */
  --primary-color: #1A2B4C; /* Dark Blue Elegant */
  --primary-light: #2A406B; 
  --gold: #C5A880; /* Soft Gold */
  --gold-light: #E8D8C3;
  --beige: #FAF8F5; /* Light Beige */
  --marble: #FCFCFC; /* Marble White */
  
  --text-dark: #1E293B; /* Deep Slate */
  --text-body: #475569; /* Slate 600 */
  --text-muted: #94A3B8;
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(26, 43, 76, 0.08);
  --shadow-lg: 0 20px 40px -5px rgba(26, 43, 76, 0.12);
  --shadow-gold: 0 10px 25px -5px rgba(197, 168, 128, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--beige);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif-text {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  letter-spacing: -0.01em;
}

/* --- Typography & Badges --- */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
}
.badge-gold {
    background: rgba(197, 168, 128, 0.15);
    color: #A38656;
    border: 1px solid rgba(197, 168, 128, 0.3);
}
.badge-blue {
    background: rgba(26, 43, 76, 0.05);
    color: var(--primary-color);
    border: 1px solid rgba(26, 43, 76, 0.1);
}
.badge-scarcity {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* --- Header --- */
header {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1300px;
  margin: 0 auto;
}

.logo-img {
    height: 50px;
    object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--marble) !important;
  box-shadow: 0 10px 20px -5px rgba(26, 43, 76, 0.3);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -5px rgba(26, 43, 76, 0.4);
}

.btn-gold {
  background: var(--gold);
  color: var(--marble) !important;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: #B39665;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(197, 168, 128, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: var(--marble) !important;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26, 43, 76, 0.85) 0%, rgba(26, 43, 76, 0.6) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin-top: 60px;
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--marble);
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--marble);
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.2rem;
}
.stat-item p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    font-weight: 600;
}

/* --- Features (Por qué elegirnos) --- */
.features {
    padding: 6rem 5%;
    background-color: var(--marble);
    position: relative;
}
.features::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--gold-light) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--marble);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26, 43, 76, 0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: var(--gold);
    transform: scaleX(0); transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
    width: 60px; height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--gold);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

/* --- Emotional Section --- */
.emotional-section {
    padding: 8rem 5%;
    background: var(--primary-color);
    color: var(--marble);
    text-align: center;
    position: relative;
}

.emotional-content {
    max-width: 800px;
    margin: 0 auto;
}

.emotional-content h2 {
    font-size: 3.5rem;
    color: var(--marble);
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.emotional-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* --- Courses Catalog --- */
.courses {
  padding: 6rem 5%;
  background-color: var(--beige);
  max-width: 1400px;
  margin: 0 auto;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 3rem;
}

.course-card {
  background: var(--marble);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.02);
  position: relative;
}

.course-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
}

.course-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.course-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.course-card:hover .course-image-container img {
    transform: scale(1.08);
}

.course-overlay {
    position: absolute;
    top: 1rem; left: 1rem; right: 1rem;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.btn-share {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-share:hover {
    background: var(--gold);
    color: white;
    transform: scale(1.1);
}

.course-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.course-desc {
  margin-bottom: 2rem;
  font-size: 1rem;
  flex: 1;
}

.course-features {
    list-style: none;
    margin-bottom: 2rem;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.course-features svg {
    width: 18px; height: 18px;
    color: var(--gold);
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--beige);
}

/* --- Testimonials --- */
.testimonials {
    padding: 6rem 5%;
    background-color: var(--marble);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.test-card {
    background: var(--beige);
    padding: 3rem 2rem;
    border-radius: 20px;
    position: relative;
}

.test-stars {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.test-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.test-author-img {
    width: 50px; height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold;
}

/* --- Communities / CTA Final --- */
.communities-section {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, var(--beige) 0%, var(--marble) 100%);
    text-align: center;
}

.communities-title {
    font-size: 2.5rem;
}

.final-cta {
    padding: 6rem 5%;
}

.communities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    max-width: 900px;
    margin: 3rem auto 0;
}

.community-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--marble);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 43, 76, 0.05);
    transition: all 0.4s ease;
}

.community-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.community-icon {
    font-size: 1.5rem;
}

/* --- Footer --- */
footer {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-col h4 {
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col p, .footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--marble);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding-top: 100px; }
  .hero h1 { font-size: 2.2rem; margin-bottom: 1rem; }
  .hero p { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .nav-links { display: none; }
  .emotional-content h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
  .section-header h2 { font-size: 1.8rem; }
  .whatsapp-float { width: 55px; height: 55px; bottom: 20px; right: 20px; }
  .community-card { width: 100%; justify-content: center; padding: 1.2rem; font-size: 1rem; }
  .communities-title { font-size: 2rem; }
  
  .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
  
  .features, .courses, .testimonials, .communities-section, .emotional-section, .final-cta {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .emotional-content h2 { font-size: 1.5rem; }
  .section-header h2 { font-size: 1.5rem; }
  .communities-title { font-size: 1.6rem; }
}
