:root {
  --primary-gold: #c8b067;
  --dark-green: #274133;
  --sage-green: #a6b297;
  --brown: #643015;
  --cream: #e1d9c7;
  --rust: #9c5b3f;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--dark-green);
  background-color: var(--cream);
}

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

/* Header */
header {
  background: #e1d9c7;
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background: #e1d9c7;
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Aboreto", serif;
  font-size: 1.8rem;
  color: #9c5b3f;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.logo-secondary {
  margin-left: 15px;
}

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

.nav-links a {
  color: #9c5b3f;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #9c5b3f;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: #643015;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #9c5b3f;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #e1d9c7;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 1rem 0;
}

.mobile-menu li {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a {
  display: block;
  padding: 1rem;
  color: #9c5b3f;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  background-color: rgba(200, 176, 103, 0.2);
  color: var(--primary-gold);
}

/* Hero Section */
.hero {
  background: var(--rust);
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  padding: 120px 0 80px;
}

/* Parallax Hero Section */
.parallax-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 1;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background-image: url('./hoja-verde-horizontal-con-cracks.jpg');*/
  background-image: url("./hora-atras-macro.png");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 1;
}

.parallax-bg--sobre-mi {
  background-image: url("./mari-sofa.jpg");
  background-position: top center;
}

.parallax-bg--programa {
  background-image: url("./compu-cafe-notas.jpg");
  background-position: center center;
  opacity: 0.8;
}



.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}


.hero-description {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}



.hero .tagline {
  font-family: "Gotu", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: white;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5rem;
}

.hero img {
  max-width: 1000px;
  max-height: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  object-fit: cover;
}

.hero p {
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  background: transparent;
  color: white;
  padding: 18px 40px;
  text-decoration: none;
  border: 2px solid white;
  border-radius: 0;
  font-weight: bolder;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s ease;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.cta-button:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.cta-button--fondo-blanco {
  color: var(--dark-green);
  border: 2px solid var(--dark-green);
}

.cta-button--fondo-blanco:hover {
  background-color: rgba(255, 255, 255, 0.35);
}


/* Main Content Sections */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 10;
}

.section:nth-child(odd) {
  background: var(--cream);
}

/* First section after parallax hero should overlay */
.parallax-hero + .section {
  background: var(--cream);
  margin-top: -20px;
  /* border-radius: 20px 20px 0 0; */
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.section h2 {
  font-family: "Aboreto", serif;
  font-size: 2.3rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--dark-green);
}

.section h3 {
  font-family: "Aboreto", serif;
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--dark-green);
}

.section h4 {
  font-family: "Gotu", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--rust);
}

.section p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.section em {
  font-style: italic;
  color: var(--brown);
}

/* Program Section */

/* Footer */
footer {
  background: var(--cream);
  color: var(--rust);
  text-align: center;
  padding: 2rem 0;
  position: relative;
  z-index: 20;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.social-link {
  color: #9C5B3F; /* matches nav links/rust accents */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--brown);
  transform: translateY(-2px);
}

.icon-instagram {
  width: 28px;
  height: 28px;
}

#contact {
  display: flex;
  padding: 0;
}

#contact img {
  width: 50%;
  height: auto;
  object-fit: cover;
  max-height: 700px;
}

#contact > div {
  width: 50%;
  padding: 40px 100px;
}

.programas {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.programa {
  background: white;
  width: 50%;
  padding-bottom: 20px;
}

.programa img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px;
  padding-bottom: 20px;
}

.programa img.logo-mamasana {
  width: 400px;
  height: 100px;
}

.programa p {
  padding: 0 40px;
}

/* Responsive Design */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
    padding: 0 40px;
  }

  .hero .tagline {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1.4rem;
  }

  .section {
    padding: 100px 0;
  }

  .content-grid {
    gap: 5rem;
  }
}

/* Tablet (768px to 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {

  .nav-links a {
    font-size: 0.80rem;
  }

  .container {
    padding: 0 30px;
  }

  .hero {
    padding: 100px 0 60px;
  }

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

  .hero .tagline {
    font-size: 1.2rem;
  }

  .section {
    padding: 70px 0;
  }

  .section h2 {
    font-size: 2.2rem;
  }

  .content-grid {
    gap: 3rem;
  }

  .program-details {
    padding: 1.5rem;
  }

  .programas {
    display: block;
  }

  .programa {
    width: 80%;
    margin: 0 10% 50px;
  }

  html #contact > div {
    padding: 0;
  }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
  .container {
    padding: 0 15px;
  }

  /* Navigation */
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  nav {
    position: relative;
  }

  /* Logo responsive */
  .logo-img {
    height: 40px;
    max-width: 150px;
  }

  .logo-secondary {
    margin-left: 10px;
    max-width: 120px;
  }

  /* Hero Section */
  .hero {
    min-height: 100vh;
    padding: 100px 0 50px;
  }

  /* Parallax Hero Mobile */
  .parallax-bg {
    position: absolute;
    height: 100%;
    background-attachment: scroll;
  }

  .hero-content {
    padding: 0 15px;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Overlay effect on mobile */
  .parallax-hero + .section {
    margin-top: -10px;
    padding: 60px 0;
  }

  .hero .tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .hero img {
    max-width: 300px;
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 15px 30px;
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  /* Sections */
  .section {
    padding: 50px 0;
  }

  .section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .section h4 {
    font-size: 1.1rem;
  }

  .section p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
  }

  /* Grid Layout */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Boxes and Cards */
  .highlight-box {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .program-details {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .program-details ul {
    margin-left: 1rem;
  }

  /* Text Content */
  .text-content {
    max-width: 100%;
  }

  .programas {
    display: block;
  }

  .programa {
    width: 90%;
    margin: 0 5% 30px;
  }

  html #contact > div {
    width: 100%;
    padding: 0 20px;
  }

  html #contact img {
    display: none;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .hero img {
    max-width: 250px;
    margin-bottom: 1.5rem;
  }

  .section {
    padding: 40px 0;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  

  .cta-button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .cta-button {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-links a,
  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cta-button:hover {
    transform: none;
  }

  .programa img.logo-mamasana {
    width: 100%;
  }
  
}

/* Small Mobile Newsletter Responsive (removed unused custom form styles) */

/* Mailchimp Form Styling */

#mc_embed_signup {
  clear: none;
  font-family: "Montserrat", sans-serif;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  border: none;
  padding: 0;
  border-radius: 15px;
}

#mc_embed_signup_scroll {
  text-align: center;
  padding: 2rem;
}

#mc_embed_signup h2 {
  font-family: "Aboreto", serif;
  font-size: 2rem;
  color: var(--dark-green);
  margin-top: 1.3rem;
  margin-bottom: 1.8rem;
  text-align: center;
  font-weight: 400;
  line-height: 1.2;
}

#mc_embed_signup p {
  color: var(--dark-green);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.indicates-required {
  color: var(--dark-green);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.mc-field-group {
  display: inline-block;
  margin: 0 0 1rem;
  vertical-align: top;
}

/* Email field takes full width */

.mc-field-group:nth-of-type(3) {
  display: block;
  width: 100%;
  margin: 0 0 1.5rem 0;
}

/* Name fields (Nombre and Apellido) on same row */
.mc-field-group:first-of-type,
.mc-field-group:nth-of-type(1) {
  display: inline-block;
  width: calc(49.3% - 1rem);
}

.mc-field-group label {
  display: block;
  color: var(--dark-green);
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-align: left;
}

.mc-field-group input {
  padding: 12px 15px;
  border: none;
  border-bottom: 1px solid var(--dark-green);
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-green);
  font-size: 1rem;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  background: transparent;
}

.mc-field-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.6);
}

.email-field {
  margin-top: 1.5rem;
  width: 100%;
}

#mc-embedded-subscribe {
  display: inline-block;
  background: transparent;
  color: var(--dark-green);
  padding: 18px 40px;
  text-decoration: none;
  border: 2px solid var(--dark-green);
  border-radius: 10px;
  font-weight: bolder;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s ease;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
}

#mc-embedded-subscribe:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

.clear.foot {
  text-align: center;
  margin-top: 1.5rem;
}

#mce-responses {
  text-align: center;
  margin-top: 1rem;
}

.response {
  color: var(--dark-green);
  font-weight: 500;
}

/* Hide honeypot field */
div[aria-hidden="true"] {
  display: none;
}

.asterisk {
  color: var(--primary-gold);
}

/* Form layout for name fields */
.name-fields-container {
  display: flex;
  gap: 1rem;
}

.name-field {
  margin: 0;
  flex: 1;
}

.email-field {
  width: 100%;
}

/* Mobile styles for Mailchimp form */
@media (max-width: 768px) {
  .name-fields-container {
    flex-direction: column;
    gap: 0;
  }

  .name-field {
    margin: 0 0 1rem 0;
  }

  .mc-field-group,
  .mc-field-group:first-of-type,
  .mc-field-group:nth-of-type(2),
  .mc-field-group:nth-of-type(3) {
    display: block;
    width: 100%;
    margin: 0 0 1rem 0;
  }

  .mc-field-group input {
    width: 100%;
  }

  #mc_embed_signup h2 {
    font-size: 1.8rem;
  }
}
