/* ------------------------------------------------------------
   CSS RESET & NORMALIZE
-------------------------------------------------------------*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { 
  height: 100%;
  font-size: 16px;
}
body {
  min-height: 100vh;
  background: #F7F8EF;
  color: #254971;
  font-family: 'Open Sans', 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
ul,ol {
  list-style-position: inside;
  margin-left: 18px;
  margin-bottom: 16px;
}
a {
  color: #254971;
  background: transparent;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #81A263;
  text-decoration: underline;
}
:focus {
  outline: 2px solid #81A263;
  outline-offset: 2px;
}
button,input,select,textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
/* Remove default outline for non-accessibility elements (we handle focus above) */
button, a {
  outline: none;
}

/* ------------------------------------------------------------
   TYPOGRAPHY - ELEGANT CLASSIC
-------------------------------------------------------------*/
h1, .hero h1, .thank-you h1 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #254971;
  margin-bottom: 0.75em;
}
h2 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  font-size: 2rem;
  color: #254971;
  margin-bottom: 0.6em;
  line-height: 1.22;
}
h3 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: #254971;
  margin-bottom: 0.5em;
  line-height: 1.28;
}
h4,h5,h6 {
  font-family: 'Montserrat', serif;
  font-size: 1.1rem;
  color: #254971;
}
p,li,blockquote {
  font-family: 'Open Sans', 'Georgia', serif;
  font-size: 1rem;
  color: #254971;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
blockquote {
  font-style: italic;
  background: #E3EDD6;
  color: #254971;
  border-left: 4px solid #81A263;
  padding: 16px 24px;
  border-radius: 12px;
  margin: 24px 0 24px 0;
}
strong, b {
  font-weight: 700;
  color: #254971;
}

hr {
  border: 0;
  border-top: 1px solid #d0ddd6;
  margin: 32px 0;
}

/* ------------------------------------------------------------
   LAYOUT & SPACING
-------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ------------------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------------------*/
header {
  background: #fff;
  border-bottom: 1px solid #e2e8ee;
  padding: 0;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
  min-width: 120px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1.08rem;
  padding: 6px 2px;
  color: #254971;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #f7f8ef;
  color: #81A263;
}
.cta-button {
  display: inline-block;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: #254971;
  border-radius: 24px;
  padding: 12px 32px;
  margin-left: 12px;
  border: none;
  box-shadow: 0 2px 8px rgba(37, 73, 113, 0.06);
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.16s, color 0.21s;
}
.cta-button:hover,
.cta-button:focus {
  background: #81A263;
  color: #fff;
  box-shadow: 0 4px 16px rgba(129, 162, 99, 0.13);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #254971;
  cursor: pointer;
  margin-left: 12px;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #81A263;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  box-shadow: -2px 0 16px rgba(37,73,113,0.06);
  padding: 0 0 36px 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: -5px 0 28px rgba(37,73,113,0.11);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #254971;
  margin: 18px 24px 12px 0;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #81A263;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 0 0 32px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.18rem;
  color: #254971;
  padding: 10px 0;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #81A263;
  background: #f7f8ef;
}

/* Responsive (Header/Nav)  */
@media (max-width: 1020px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 12px;
  }
  .main-nav a {
    font-size: 1rem;
  }
  .cta-button {
    font-size: 1rem;
    padding: 11px 22px;
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ------------------------------------------------------------
   HERO, FEATURE, CTA, ABOUT, ETC.
-------------------------------------------------------------*/
.hero {
  background: #E3EDD6;
  padding: 64px 0 40px 0;
  border-bottom: 1px solid #e2e8ee;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero .content-wrapper {
  max-width: 700px;
}
.features {
  background: #fff;
  padding: 48px 0 32px 0;
}
.feature-grid, .benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature-grid > div, .benefits-grid > div {
  background: #F7F8EF;
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(37, 73, 113, 0.07);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 295px;
  padding: 24px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.17s;
  border: 1px solid #e3edd6;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px rgba(129, 162, 99, 0.14);
  transform: translateY(-4px) scale(1.025);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

.cta-bar {
  background: #254971;
  color: #fff;
  padding: 36px 0;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 2px 24px rgba(37, 73, 113, 0.04);
}
.cta-bar h2 {
  color: #fff;
  margin-bottom: 1em;
}
.cta-bar .cta-button {
  margin-left: 0;
  background: #81A263;
  color: #fff;
}
.cta-bar .cta-button:hover {
  background: #fff;
  color: #254971;
}

.about-preview {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 22px rgba(37, 73, 113, 0.05);
  padding: 46px 18px 38px 18px;
  margin-top: 32px;
  margin-bottom: 64px;
  border: 1px solid #e2e8ee;
}

.values ul, .services ul, .about-preview ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.values ul li img, .services ul li img, .about-preview ul li img {
  vertical-align: middle;
  margin-right: 8px;
  width: 24px;
  height: 24px;
}

.how-to-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
}
.how-to-card {
  background: #fff;
  border: 1px solid #e2e8ee;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(37,73,113,0.06);
  padding: 22px 22px 16px 22px;
  flex: 1 1 255px;
  min-width: 220px;
  max-width: 375px;
}

.team-bio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 6px;
}
.team-bio-grid > div {
  background: #F7F8EF;
  border-radius: 16px;
  border: 1px solid #e3edd6;
  padding: 18px 20px;
  box-shadow: 0 1px 11px rgba(37,73,113,0.04);
  flex: 1 1 220px;
  min-width: 200px;
}

/* ------------------------------------------------------------
   TESTIMONIALS, CARDS, CONTENT LAYOUTS
-------------------------------------------------------------*/
.testimonials {
  background: #fff;
  padding: 54px 0 36px 0;
}
.testimonials h2 {
  margin-bottom: 28px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px;
  background: #F7F8EF;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(37,73,113,0.09);
  margin-bottom: 20px;
  margin-top: 0;
  border: 1px solid #e2e8ee;
  transition: box-shadow 0.18s, background 0.16s;
}
.testimonial-card strong {
  color: #254971;
  font-size: 1.04rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 22px rgba(37, 73, 113, 0.13);
  background: #e3edd6;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid #e2e8ee;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(37,73,113,0.04);
  margin-bottom: 20px;
  position: relative;
  padding: 20px 22px;
  min-width: 240px;
  transition: box-shadow 0.16s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 26px rgba(37, 73, 113, 0.13);
  transform: translateY(-3px) scale(1.018);
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/**** Contact and Map Embed ****/
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.contact-info > div {
  flex: 1 1 210px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f7f8ef;
  border-radius: 10px;
  border: 1px solid #e3edd6;
  padding: 14px 16px;
}
.contact-info img {
  width: 24px;
  height: 24px;
}
.map-embed {
  border-radius: 12px;
  border: 1px solid #e2e8ee;
  background: #e6e6e6;
  margin: 10px 0 16px 0;
  padding: 12px;
}

/**** Accordion, FAQ ****/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8ee;
  box-shadow: 0 2px 8px rgba(37,73,113,0.06);
  padding: 18px 24px;
  transition: box-shadow 0.16s;
}
.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.13rem;
}

/**** Legal Sections ****/
.legal {
  background: #fff;
  border-radius: 12px;
  padding: 40px 24px 34px 24px;
  box-shadow: 0 2px 16px rgba(37,73,113,0.035);
  border: 1px solid #e3edd6;
}

/**** Thank You Section */
.thank-you {
  background: #E3EDD6;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(129,162,99,0.08);
  margin: 40px 0;
  padding: 48px 24px 52px 24px;
  text-align: center;
}
.thank-you .cta-button {
  margin-top: 24px;
}

/* ------------------------------------------------------------
   FOOTER
-------------------------------------------------------------*/
footer {
  background: #fff;
  border-top: 1px solid #e2e8ee;
  margin-top: 36px;
  padding: 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px 20px 28px 20px;
  font-size: 0.97em;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
}
.footer-nav a {
  color: #254971;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  padding: 4px 0;
  transition: color 0.18s;
}
.footer-nav a:hover { color: #81A263; }
.footer-contact {
  flex: 2 1 285px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1em;
  color: #254971;
}
.footer-contact img {
  width: 36px;
  margin-bottom: 8px;
}
.footer-contact a {
  color: #254971;
  text-decoration: underline;
  word-break: break-all;
}
.footer-contact a:hover { color: #81A263; }

/* ------------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
-------------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 20px rgba(37,73,113,0.08);
  border-top: 2px solid #e3edd6;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 10px 18px 10px;
  font-size: 1rem;
  transition: transform 0.33s cubic-bezier(.77,0,.18,1), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  max-width: 720px;
  width: 100%;
  margin-bottom: 14px;
  text-align: center;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  width: 100%;
}
.cookie-btn {
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  background: #254971;
  border: none;
  border-radius: 18px;
  padding: 8px 26px;
  margin: 0 6px;
  transition: background 0.17s, color 0.17s;
  cursor: pointer;
}
.cookie-btn.cookie-settings {
  background: #81A263;
}
.cookie-btn.cookie-reject {
  background: #98928A;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #81A263;
  color: #fff;
}
.cookie-btn.cookie-settings:hover,
.cookie-btn.cookie-settings:focus {
  background: #254971;
}
.cookie-btn.cookie-reject:hover, .cookie-btn.cookie-reject:focus {
  background: #d8d4ca;
  color: #254971;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 12000;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,73,113,0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.33s cubic-bezier(.77,0,.18,1);
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(37,73,113,0.12);
  padding: 38px 26px 26px 26px;
  min-width: 320px;
  max-width: 98vw;
  width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: dropin 0.32s cubic-bezier(.54,.25,.62,1);
}
@keyframes dropin {
  0% { transform: translateY(-55px) scale(0.98); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #254971;
  font-family: 'Montserrat', serif;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.46rem;
  color: #254971;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #81A263;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  padding: 9px 0;
  border-bottom: 1px solid #e2e8ee;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category label {
  font-family: 'Montserrat', serif;
  font-size: 1.07rem;
  color: #254971;
}
.cookie-category .switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #e3edd6;
  border-radius: 15px;
  transition: background 0.2s;
}
.switch input:checked + .switch-slider {
  background: #81A263;
}
.switch-slider:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.switch input:checked + .switch-slider:before {
  transform: translateX(14px);
}
.cookie-category .always-on {
  color: #81A263;
  font-size: 1rem;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  margin-left: 8px;
}

/* ------------------------------------------------------------
   RESPONSIVE DESIGN - MOBILE FIRST
-------------------------------------------------------------*/
@media (max-width: 1280px) {
  .container { max-width: 980px; }
}
@media (max-width: 1024px) {
  .container { max-width: 820px; }
  .footer-contact { min-width: unset; }
}
@media (max-width: 900px) {
  .hero { padding: 46px 0 20px 0; }
  .about-preview { padding: 34px 14px; }
  .cta-bar { border-radius: 0 0 22px 22px; }
}
@media (max-width: 768px) {
  h1, .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.47rem; }
  .cta-bar h2, .about-preview h2, .features h2, .testimonials h2, .legal h1 { font-size: 1.33rem; }
  .container { padding-left: 12px; padding-right: 12px; }
  .feature-grid, .benefits-grid, .how-to-grid, .card-container, .content-grid, .team-bio-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper { gap: 16px; }
  .about-preview, .legal, .thank-you { padding: 18px 7px; }
  .cta-bar { padding: 24px 0; }
  .testimonial-card, .card, .how-to-card { padding: 16px 12px; }
  .contact-info {
    flex-direction: column;
    gap: 14px;
  }
  .footer-contact, .footer-nav, footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 24px 10px 16px 10px;
  }
}
@media (max-width: 500px) {
  .hero h1 { font-size: 1.3rem; }
  .cta-button { font-size: 0.98rem; padding: 9px 16px; }
  .feature-grid > div, .benefits-grid > div, .card {
    max-width: 100%;
    min-width: unset;
  }
  .about-preview, .legal, .thank-you {
    padding: 6px 1px;
    border-radius: 10px;
  }
}

/* ------------------------------------------------------------
   MICRO-INTERACTIONS & TRANSITIONS
-------------------------------------------------------------*/
.cta-button, .card, .testimonial-card, .feature-grid > div, .card, .how-to-card {
  transition: box-shadow 0.18s, transform 0.15s, background 0.17s, color 0.19s;
}
/* Subtle shadow on hover for tactile feedback */
.card:active,
.feature-grid > div:active,
.cta-button:active {
  transform: scale(0.96);
}

/* ------------------------------------------------------------
   UTILITY CLASSES
-------------------------------------------------------------*/
.hide { display: none !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.pt-1 { padding-top: 8px !important; }
.pt-2 { padding-top: 16px !important; }

/*************************************************************/
/* END - CSS - Hábitos a Tiempo "elegant_classic" ************/
/*************************************************************/
