/* ==========================================
   SEMILLAS DEL FUTURO — Landing Page
   Mobile-First · HTML/CSS/JS Puro
   ========================================== */

/* === CSS VARIABLES === */
:root {
  --primary: #E8742A;
  --primary-dark: #C95D1A;
  --secondary: #F5A623;
  --accent: #D4683C;
  --bg-light: #FFF8F0;
  --bg-warm: #FDEBD0;
  --bg-warm-alt: #FFF3E6;
  --bg-white: #FFFFFF;
  --text-dark: #3C2415;
  --text-body: #5A4030;
  --text-light: #8A7060;
  --text-white: #FFFFFF;
  --border-light: #F0D8C0;
  --shadow-sm: 0 2px 8px rgba(60, 36, 21, 0.08);
  --shadow-md: 0 4px 20px rgba(60, 36, 21, 0.12);
  --shadow-lg: 0 8px 40px rgba(60, 36, 21, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
  --transition: 0.3s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

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

/* === UTILITY === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(232, 116, 42, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 116, 42, 0.45);
}

.btn-full {
  width: 100%;
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === SECTION HEADERS === */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.title-decoration {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.title-decoration span {
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo i {
  color: var(--primary);
  font-size: 1.3rem;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Hamburger active */
.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile menu */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-white);
  padding: 90px 30px 30px;
  box-shadow: var(--shadow-lg);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-menu.open {
  right: 0;
}

.nav-link {
  display: block;
  padding: 12px 15px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--bg-warm-alt);
}

/* Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #FFF3E0 0%, #FFE0B2 30%, #FFCC80 60%, #FFB74D 100%);
  padding: 100px 20px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 116, 42, 0.15) 0%, transparent 70%);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 5px;
}

.hero-author {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.hero-author strong {
  color: var(--text-dark);
}

.hero-image {
  position: relative;
  max-width: 280px;
}

.hero-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: scale(1.03) rotate(-1deg);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 60px;
}

/* ==========================================
   SINOPSIS
   ========================================== */
.sinopsis {
  background: var(--bg-light);
  padding: 70px 0;
}

.sinopsis-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sinopsis-icon {
  text-align: center;
}

.sinopsis-icon i {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.8;
}

.sinopsis-text p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}

.sinopsis-text p:last-of-type {
  margin-bottom: 25px;
}

.sinopsis-text blockquote {
  position: relative;
  background: var(--bg-warm);
  border-left: 4px solid var(--primary);
  padding: 25px 25px 25px 30px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.sinopsis-text blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-style: normal;
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================
   AUTORA
   ========================================== */
.autora {
  background: var(--bg-warm);
  padding: 70px 0;
}

.autora-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.autora-image {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 5px solid var(--bg-white);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.autora-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.autora-text {
  text-align: center;
}

.autora-text h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.autora-role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.autora-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.autora-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.autora-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  color: var(--primary);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.autora-social a:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ==========================================
   PRESENTACIÓN
   ========================================== */
.presentacion {
  background: var(--bg-light);
  padding: 70px 0;
}

.presentacion-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.presentacion-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.presentacion-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.presentacion-image:hover img {
  transform: scale(1.02);
}

.presentacion-text h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.presentacion-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.presentacion-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-warm);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  flex: 1;
  min-width: 180px;
}

.highlight-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* ==========================================
   TESTIMONIOS
   ========================================== */
.testimonios {
  background: var(--bg-warm);
  padding: 70px 0;
}

.testimonios-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonio-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px 25px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.testimonio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testimonio-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 15px;
}

.testimonio-stars i {
  color: var(--secondary);
  font-size: 0.9rem;
}

.testimonio-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonio-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonio-avatar i {
  color: var(--primary);
  font-size: 1.2rem;
}

.testimonio-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.testimonio-author span {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ==========================================
   CONTACTO
   ========================================== */
.contacto {
  background: var(--bg-light);
  padding: 70px 0;
}

.contacto-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contacto-info p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.contacto-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-body);
}

.contacto-item i {
  color: var(--primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.contacto-social {
  display: flex;
  gap: 12px;
}

.contacto-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-warm);
  color: var(--primary);
  font-size: 1rem;
  transition: all var(--transition);
}

.contacto-social a:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Form */
.contacto-form {
  background: var(--bg-white);
  padding: 30px 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 116, 42, 0.15);
  background: var(--bg-white);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

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

.form-error {
  display: block;
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 4px;
  min-height: 20px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 15px;
  margin-top: 15px;
  background: #d4edda;
  color: #155724;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form-success.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.footer-brand h3 i {
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.8rem;
}

/* ==========================================
   MEDIA QUERIES — TABLET (>=768px)
   ========================================== */
@media (min-width: 768px) {
  html {
    scroll-padding-top: 75px;
  }

  .section-title {
    font-size: 2.4rem;
  }

  /* Hero */
  .hero {
    padding: 120px 30px 0;
  }

  .hero-content {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 40px;
    padding-bottom: 100px;
  }

  .hero-text {
    flex: 1;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-image {
    max-width: 320px;
  }

  .hero-wave svg {
    height: 80px;
  }

  /* Sinopsis */
  .sinopsis {
    padding: 90px 0;
  }

  .sinopsis-content {
    flex-direction: row;
    gap: 35px;
    align-items: flex-start;
  }

  .sinopsis-icon {
    padding-top: 5px;
  }

  .sinopsis-icon i {
    font-size: 3.5rem;
  }

  /* Autora */
  .autora {
    padding: 90px 0;
  }

  .autora-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .autora-image {
    width: 250px;
    height: 250px;
  }

  .autora-text {
    text-align: left;
    flex: 1;
  }

  .autora-role {
    justify-content: flex-start;
  }

  .autora-social {
    justify-content: flex-start;
  }

  /* Presentación */
  .presentacion {
    padding: 90px 0;
  }

  .presentacion-content {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .presentacion-image {
    flex: 1;
    max-width: 50%;
  }

  .presentacion-text {
    flex: 1;
  }

  /* Testimonios */
  .testimonios {
    padding: 90px 0;
  }

  .testimonios-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .testimonio-card {
    flex: 1;
    min-width: 300px;
  }

  /* Contacto */
  .contacto {
    padding: 90px 0;
  }

  .contacto-content {
    flex-direction: row;
    gap: 50px;
  }

  .contacto-info {
    flex: 1;
  }

  .contacto-form {
    flex: 1;
    padding: 35px 30px;
  }

  /* Footer */
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================
   MEDIA QUERIES — DESKTOP (>=1024px)
   ========================================== */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .section-title {
    font-size: 2.6rem;
  }

  /* Navbar desktop */
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    flex-direction: row;
    gap: 5px;
  }

  .nav-link {
    padding: 8px 14px;
    font-size: 0.92rem;
  }

  .nav-container {
    height: 70px;
  }

  /* Hero */
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.35rem;
  }

  .hero-image {
    max-width: 380px;
  }

  .hero-wave svg {
    height: 100px;
  }

  /* Autora */
  .autora-image {
    width: 280px;
    height: 280px;
  }

  /* Testimonios */
  .testimonio-card {
    min-width: 0;
  }

  /* Contacto form */
  .contacto-form {
    padding: 40px 35px;
  }
}

/* ==========================================
   MEDIA QUERIES — LARGE DESKTOP (>=1280px)
   ========================================== */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 4rem;
  }

  .hero-image {
    max-width: 420px;
  }
}
