/* CSS for zqrmxvntlpka.life - Mail Art y Caligrafía */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --primary-color: #7c2d12; /* Dark Terracotta */
  --primary-light: #c2410c;
  --secondary-color: #ea580c; /* Warm Orange */
  --secondary-hover: #9a3412;
  --text-dark: #292524;
  --text-light: #fafaf9;
  --bg-light: #fdfbf7; /* Off-white warm sand */
  --bg-white: #ffffff;
  --bg-card: #f5f5f4;
  --border-color: #e7e5e4;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: var(--primary-color);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header & Nav */
header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Lora', serif;
}

.logo span {
  color: var(--secondary-color);
  font-style: italic;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: #44403c;
}

nav a:hover, nav a.active {
  color: var(--primary-light);
}

.btn-cta-nav {
  background-color: var(--primary-color);
  color: var(--text-light) !important;
  padding: 10px 22px;
  border-radius: 20px;
  font-family: 'Lora', serif;
}

.btn-cta-nav:hover {
  background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(180deg, #fef3c7 0%, var(--bg-light) 100%);
  position: relative;
}

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

.hero-content h1 {
  font-size: 3.25rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #57534e;
}

.badge-free {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--text-light);
  padding: 4px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Lora', serif;
  box-shadow: 0 4px 10px rgba(124, 45, 18, 0.15);
  transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  color: var(--bg-white);
}

.hero-image {
  display: flex;
  justify-content: center;
}

/* Artistic Envelope graphics */
.envelope-graphic {
  width: 320px;
  height: 200px;
  background-color: #fafaf9;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transform: rotate(5deg);
}

.envelope-graphic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-color: #f5f5f4;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 1px solid #e7e5e4;
}

.envelope-stamp {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 45px;
  height: 55px;
  border: 2px dashed var(--primary-light);
  background-color: #ffedd5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transform: rotate(-10deg);
}

/* Features */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-white);
  padding: 40px 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: #ffedd5;
  color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Syllabus / Temario */
.syllabus {
  padding: 80px 0;
  background-color: var(--bg-card);
}

.syllabus-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
}

.syllabus-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-light);
}

.syllabus-item {
  position: relative;
  margin-bottom: 40px;
}

.syllabus-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 3px solid var(--bg-card);
}

.syllabus-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* Registration Form Section */
.register {
  padding: 80px 0;
}

.register-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.register-card h2 {
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
}

.btn-block {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

.privacy-notice {
  font-size: 0.8rem;
  color: #78716c;
  margin-top: 15px;
  text-align: center;
}

/* Legal Pages Styling */
.legal-content {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 30px;
}

.legal-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 20px;
  color: #44403c;
}

.legal-content ul {
  padding-left: 20px;
}

/* Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.contact-info h3 {
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Modal Popup Success */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition-speed);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-icon {
  width: 70px;
  height: 70px;
  background-color: #ffedd5;
  color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.modal-box h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.modal-box p {
  margin-bottom: 25px;
  color: #57534e;
}

.btn-close {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 10px 25px;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-family: 'Lora', serif;
  cursor: pointer;
}

.btn-close:hover {
  background-color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #d6d3d1;
  padding: 50px 0 30px;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 25px;
  list-style: none;
}

.footer-nav a {
  color: #a8a29e;
  font-size: 0.9rem;
}

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

.footer-disclaimer {
  font-size: 0.75rem;
  color: #87817c;
  text-align: center;
  max-width: 800px;
  line-height: 1.5;
  margin-top: 15px;
}

.footer-copy {
  font-size: 0.8rem;
  color: #87817c;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid, .features-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero {
    padding: 50px 0;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  header .container {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
    gap: 15px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}
