/* =====================================================
   Zappooltra Cursos Oratoria - NATURE/ORGANIC CSS STYLE
   Modern, earth-toned, organic, FLEXBOX ONLY, Responsive
   ===================================================== */

/* =============================
   1. CSS RESET & BASELINE 
   ============================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #3C3F37;
  background: #F8F8F8;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: url('../assets/bg-organic-texture.png');
  background-repeat: repeat;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #254080;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #447a3c;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* ================================
   2. BRANDING & ORGANIC PALETTE
   ================================ */
:root {
  --color-primary: #254080;
  --color-secondary: #F4B41A;
  --color-accent: #F8F8F8;
  --color-earth: #A89366;
  --color-green: #447a3c;
  --color-brown: #735d40;
  --color-light-green: #e5edd4;
  --color-dark: #222925;
  --color-testimonial-bg: #F3F6F2;
  --color-cookie-bg: #e6e0d0;
  --color-focus: #F4B41A;
}

/* ============================
   3. TYPOGRAPHY
   ============================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #254080;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-weight: 600;
}
p, li, blockquote {
  font-size: 1rem;
  color: #3C3F37;
}
blockquote {
  font-style: italic;
  color: #254080;
  background: #e5edd4;
  padding: 16px 22px;
  border-left: 5px solid var(--color-green);
  border-radius: 12px 20px 12px 20px;
  margin-bottom: 12px;
}
cite {
  font-size: 0.95rem;
  color: #735d40;
  font-style: normal;
  display: block;
}

strong {
  font-weight: 700;
  color: #447a3c;
}

ul, ol {
  margin-bottom: 16px;
  padding-left: 20px;
}
li {
  margin-bottom: 8px;
  list-style: disc inside;
}

/* Extra organic list style for icon lists */
ul li img {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px #cfc5ab);
  transition: transform 0.18s;
}
ul li:hover img {
  transform: scale(1.09) rotate(-3deg);
}

/* ============================
   4. ORGANIC CONTAINER SYSTEM
   ============================ */
.container {
  max-width: 1180px;
  width: 94%;
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* For flexbox based layouts in children */
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 36px 24px 30px 36px;
  background: var(--color-accent);
  box-shadow: 0 4px 19px 0 rgba(67,91,60,0.07);
  /* organic asymmetry with radius */
}

@media (max-width: 900px) {
  .section {
    padding: 28px 8px;
  }
}

/* Add organic touches - light green tint alternate sections */
.section:nth-child(even) {
  background: var(--color-light-green);
}

/* ============================
   5. HEADER & NAVIGATION
   ============================ */
header {
  width: 100%;
  background: #e5edd4;
  box-shadow: 0 2px 16px 0 rgba(67,91,60,0.03);
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
}
header a img {
  height: 45px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  padding: 7px 16px;
  color: #254080;
  border-radius: 16px 10px 20px 17px;
  transition: background 0.15s, color 0.15s, box-shadow 0.25s;
}
nav a:hover, nav a:focus {
  background: var(--color-green);
  color: #fff;
  box-shadow: 0 2px 10px 0 rgba(67,91,60,0.08);
}

nav .cta-btn {
  background: var(--color-secondary);
  color: #254080;
  border-radius: 30px 20px 30px 20px;
  font-weight: 700;
  margin-left: 18px;
  box-shadow: 0 3px 13px 0 rgba(244,180,26,0.06);
  transition: background 0.20s, color 0.14s, box-shadow .19s;
}
nav .cta-btn:hover, nav .cta-btn:focus {
  background: var(--color-green);
  color: #fff;
  box-shadow: 0 4px 20px 0 rgba(68,122,60,0.14);
  transform: translateY(-2px) scale(1.03);
}

/* ============================
   6. MOBILE BURGER MENU
   ============================ */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--color-secondary);
  color: #254080;
  padding: 7px 16px;
  border-radius: 25px 18px 22px 20px;
  box-shadow: 0 2px 6px 0 #a89366;
  margin-left: 18px;
  transition: background .18s, color .13s;
  z-index: 1202;
}
.mobile-menu-toggle:focus {
  outline: 3px solid var(--color-focus);
  background: #ffe5a3;
}

@media (max-width: 1050px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 550px) {
  .mobile-menu-toggle {
    font-size: 1.5rem;
    padding: 5px 11px;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(245,250,242,0.98);
  box-shadow: 0 7px 32px 0 rgba(55,95,60,0.11);
  z-index: 1990;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.65,0,.55,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  margin: 20px 20px 10px 0;
  background: var(--color-earth);
  color: #fff;
  border-radius: 50%;
  padding: 8px 16px;
  transition: background 0.17s, color .13s;
  z-index: 1191;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-green);
  color: #ffe5a3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 86vw;
  margin: 26px 30px 0 30px;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #254080;
  padding: 16px 0 12px 0;
  width: 100%;
  border-radius: 14px 22px 16px 18px;
  transition: background .13s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-light-green);
  color: var(--color-green);
}

.mobile-nav .cta-btn {
  background: var(--color-secondary);
  color: #254080;
  margin: 18px 0 0 0;
  border-radius: 20px 16px 24px 18px;
  padding: 13px 18px;
  width: unset;
}
.mobile-nav .cta-btn:hover {
  background: var(--color-green);
  color: #fff;
}

/* For overlay fade-in on open */
.mobile-menu.active {
  animation: mobilePanelIn 0.38s cubic-bezier(.57,.16,.45,1);
}
@keyframes mobilePanelIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================
   7. CTA BUTTONS & INTERACTIVES
   ============================ */
.cta-btn {
  background: var(--color-secondary);
  color: #254080;
  border: none;
  border-radius: 24px 16px 32px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.09rem;
  padding: 12px 32px;
  box-shadow: 0 3px 13px rgba(244,180,26,0.08);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 18px;
  cursor: pointer;
  transition: background 0.18s, color 0.13s, box-shadow .22s, transform 0.10s;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-green);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 7px 26px 0 rgba(68,122,60,0.13);
}

/* ============================
   8. FLEXBOX LAYOUTS (MANDATORY)
   ============================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 30px 17px 18px 31px;
  box-shadow: 0 2px 10px rgba(67,91,60,0.07);
  padding: 28px 22px;
  flex: 1 1 270px;
  transition: box-shadow 0.18s, border .13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px 0 #e5edd4;
  border: 2px solid #e5edd4;
  z-index: 2;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-testimonial-bg);
  border-radius: 24px 16px 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 17px 0 rgba(67,91,60,0.06);
  transition: box-shadow 0.19s, border 0.13s;
  border: 1.5px solid #dde5cf;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 #e5edd4;
  border: 2px solid var(--color-green);
}
.testimonial-card blockquote {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  color: #254080;
  font-size: 1.12rem;
}
.testimonial-card cite {
  color: var(--color-brown);
  font-size: 0.95em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #fff;
  border-radius: 18px 12px 14px 22px;
  padding: 20px 18px;
  box-shadow: 0 2px 11px 0 #e5edd4;
  position: relative;
}
.faq-item h3 {
  color: var(--color-green);
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

/* ============================
   9. ORGANIC TEXTURES & DECOR
   ============================ */
.section {
  background-image: url('../assets/organic-shape1.svg');
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 220px 110px;
}
.section:nth-child(even) {
  background-image: url('../assets/organic-shape2.svg');
  background-position: top left;
  background-size: 170px 78px;
}

/* Make sure backgrounds do not overlap text on small screens */
@media (max-width: 700px) {
  .section, .section:nth-child(even) {
    background-size: 100px 50px;
  }
}

/* ============================
   10. FOOTER
   ============================ */
footer {
  background: #254080;
  color: #fff;
  padding: 48px 0 0 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 24px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 180px;
  padding-top: 8px;
}
.footer-menu a {
  color: var(--color-secondary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.15s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #fff;
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  color: #d4e8cf;
  font-size: 0.98rem;
}
.footer-contact img {
  height: 36px;
}
footer p {
  color: #e0e9da;
  margin: 0 0 5px 0;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding-bottom: 18px;
  }
  .footer-menu {
    flex-direction: row;
    gap: 16px;
  }
}

/* ============================
   11. RESPONSIVE LAYOUTS
   ============================ */
@media (max-width: 1050px) {
  .container {
    width: 99%;
    max-width: 99vw;
	  padding: 0 4vw;
  }
}
@media (max-width: 900px) {
  .content-wrapper, .feature-list, .card-container, .content-grid {
    gap: 12px;
  }
  h1 {
    font-size: 1.68rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .section {
    margin-bottom: 32px;
    padding: 22px 3vw;
    background-size: 80px 32px;
  }
}
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 2vw;
  }
  .content-grid, .card-container, .feature-list {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  main .cta-btn {
    width: 100%;
    text-align: center;
    min-width: 0;
  }
}
@media (max-width: 550px) {
  h1 {
    font-size: 1.28rem;
  }
  .section {
    margin-bottom: 18px;
    padding: 12px 1vw;
    border-radius: 19px 13px 22px 17px;
  }
}
/* Ensure cards and sections never overlap */
.card, .section, .testimonial-card, .faq-item {
  margin-bottom: 20px;
}


/* ============================
   12. MICROMOTIONS & HOVER EFFECTS
   ============================ */
.section, .card, .faq-item, .testimonial-card {
  transition: box-shadow 0.18s, border-color 0.13s, background 0.16s;
}
.card:focus-within, .card:focus-visible, .faq-item:focus-within, .faq-item:focus {
  outline: 2px solid var(--color-focus);
  box-shadow: 0 0 0 3px #ffe5a3;
}


/* ============================
   13. COOKIE CONSENT BANNER
   ============================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-cookie-bg);
  color: #36522a;
  font-size: 0.96rem;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 -4px 23px rgba(97,103,80,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 5300;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.22s, transform 0.3s;
}
.cookie-banner.active {
  opacity: 1; pointer-events: all; transform: translateY(0);
  animation: cookieBannerIn 0.38s cubic-bezier(.38,.89,.53,1.07);
}
@keyframes cookieBannerIn { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }

.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-banner button {
  font-size: 1rem;
  padding: 9px 22px;
  background: #fff;
  color: #36522a;
  border-radius: 18px 13px 19px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 6px 0 #dde5cf;
  border: 1.7px solid #c9c1a0;
  transition: background 0.13s, color 0.14s, box-shadow 0.16s;
  margin: 0;
}
.cookie-banner button.accept {
  background: var(--color-green);
  color: #fff;
  border: none;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: #36522a;
  color: #ffe5a3;
}
.cookie-banner button.reject {
  background: #fff9e6;
  color: var(--color-brown);
  border: 2px solid #dcc18c;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #fadcb3;
  color: #447a3c;
}
.cookie-banner button.settings {
  background: var(--color-secondary);
  color: #36522a;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #ffe5a3;
}

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 14px; align-items: flex-start; padding: 20px 10px 12px 12px; }
  .cookie-banner-buttons { flex-direction: column; gap: 9px; }
}

/* Cookie modal (overlay) */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  left:0; top:0; width:100vw; height:100vh;
  background: rgba(54,61,42,0.18);
  display: none;
  align-items: center; justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: cookieModalIn 0.32s;
}
@keyframes cookieModalIn { from { opacity: 0; } to { opacity: 1; } }

.cookie-modal {
  background: #fff;
  border-radius: 25px 19px 30px 18px;
  padding: 32px 24px 20px 24px;
  max-width: 360px;
  box-shadow: 0 11px 42px 0 #e5edd4;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #3C3F37;
  display: flex; flex-direction: column; gap: 22px;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 7px;
  font-size: 1.19rem;
  color: var(--color-green);
}
.cookie-modal .cookie-category {
  display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #ece7d1;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal label {
  font-size: 1.02rem;
  color: #3C3F37;
  cursor: pointer;
}
.cookie-modal .switch {
  position: relative;
  width: 34px; height: 20px;
  display: inline-block;
}
.cookie-modal .switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e5edd4;
  border-radius: 16px;
  transition: background .22s;
}
.cookie-modal .switch input:checked + .slider {
  background: var(--color-green);
}
.cookie-modal .slider:before {
  position: absolute; content: "";
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s;
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(14px);
}
.cookie-modal .switch input[disabled] + .slider {
  background: #d9dacd;
}
.cookie-modal .switch input[disabled] + .slider:before {
  background: #ecebe1;
}

.cookie-modal .modal-actions {
  display: flex; flex-direction: row; gap: 15px; justify-content: flex-end; margin-top: 18px;
}
.cookie-modal button {
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 16px 12px 15px 12px;
  margin-top: 0;
  background: #e5edd4;
  color: #254080;
  font-weight: 600;
  box-shadow: none;
}
.cookie-modal button.accept {
  background: var(--color-green);
  color: #fff;
}

/* =============================
   14. MISC & UTILITY
   ============================= */
.text-section {
  margin-bottom: 8px;
  display: flex; flex-direction: column; gap: 17px;
}

@media (max-width: 1000px) {
  .text-image-section, .card-container, .content-grid, .feature-list {
    flex-direction: column;
    gap: 18px;
  }
}

/* Hide decorative background shapes on small phones for clarity */
@media (max-width: 390px) {
  .section, .section:nth-child(even) {
    background-image: none;
  }
}

/* Fix for full width hero on mobile */
main > section:first-child .section {
  padding-top: 54px;
  padding-bottom: 54px;
}

/* Accessibility: focus-visible for all buttons and links */
a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--color-focus);
  outline-offset: 2px;
  background: #ffe5a3 !important;
}

/* =============================
   15. FORM ELEMENTS (Contact, etc)
   ============================= */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 14px 11px 15px 13px;
  border: 1.5px solid #c9c1a0;
  padding: 13px 15px;
  width: 100%;
  margin-bottom: 12px;
  background: #f8f8f8;
  color: #254080;
  transition: border-color 0.15s, background 0.1s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-focus);
  background: #fffce5;
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #735d40;
  font-weight: 500;
  margin-bottom: 5px;
  display: inline-block;
}

/* =============================
   END CSS
   ============================= */
