/* =========================
   RESET & BASE NORMALIZATION
   ========================= */

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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #FCFBF7;
  color: #2E2253;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style-position: outside;
  margin-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #2E2253;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #DEC973;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
}

/* =========================
   BRANDING FONTS
   ========================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.13;
  color: #2E2253;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}

/* =========================
   STRUCTURAL LAYOUT & GRIDS
   ========================= */
.container {
  width: 100%;
  max-width: 1112px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.text-section {
  max-width: 750px;
  margin: 0 auto;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ================
   HEADER & NAVIGATION
   ================ */
header {
  width: 100%;
  background: #E9E6F2;
  position: relative;
  padding: 0 0 0 0;
  border-bottom: 2px solid #DEC973;
  z-index: 15;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 10px 16px;
}
header a img {
  height: 47px;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 7px 18px;
  color: #2E2253;
  border-radius: 30px 0 30px 0;
  transition: background 0.13s, color 0.13s;
  position: relative;
}
.main-nav a.nav-cta {
  background: #2E2253;
  color: #E9E6F2;
  border-radius: 0 30px 0 30px;
  box-shadow: 0 3px 14px 0 rgba(46, 34, 83, 0.14);
}
.main-nav a:hover, .main-nav a:focus {
  background: #DEC973;
  color: #2E2253;
}
.main-nav a.nav-cta:hover, .main-nav a.nav-cta:focus {
  background: #DEC973;
  color: #2E2253;
}

/* Burger for mobile: hidden on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2E2253;
  cursor: pointer;
  z-index: 53;
  padding: 8px 10px;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus {
  color: #DEC973;
}

/* Mobile Navigation Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(46, 34, 83, 0.96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.33,1,0.68,1);
  z-index: 99;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.25rem;
  color: #DEC973;
  margin: 15px 24px 24px 0;
  cursor: pointer;
  z-index: 101;
  transition: color 0.16s;
}
.mobile-menu-close:focus {
  color: #E9E6F2;
}
.mobile-nav {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-left: 32px;
}
.mobile-nav a {
  color: #E9E6F2;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  padding: 10px 0;
  border-radius: 0 30px 0 30px;
  margin-right: 24px;
  transition: background 0.15s, color 0.15s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #DEC973;
  color: #2E2253;
}

/* Hide main-nav and show burger on mobile */
@media (max-width: 990px) {
  header .container {
    flex-direction: row;
    padding: 8px 8px;
    gap: 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ================
   HERO SECTION
   ================ */
.hero {
  background: #E9E6F2;
  border-bottom: 2px solid #DEC973;
  padding: 44px 0 38px 0;
  position: relative;
  display: flex;
  align-items: center;
}
@media (max-width: 680px) {
  .hero {
    padding: 26px 0 20px 0;
  }
}
.hero .container {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.5rem;
  letter-spacing: 0.06em;
  color: #2E2253;
  margin-bottom: 6px;
}
.hero p {
  font-size: 1.2rem;
  color: #2E2253;
  margin-bottom: 14px;
}
.hero .cta {
  margin-top: 16px;
}

/* ================
   CTA BUTTONS
   ================ */
.cta {
  display: inline-block;
  background: #DEC973;
  color: #2E2253;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 15px 34px;
  border-radius: 16px 0 16px 0;
  box-shadow: 0 4px 16px rgba(46,34,83,0.10);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, transform 0.13s;
  border: none;
  outline: none;
  cursor: pointer;
  margin-top: 12px;
}
.cta:hover, .cta:focus {
  background: #2E2253;
  color: #E9E6F2;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 18px rgba(46,34,83,0.19);
}

/* ================
   FEATURE GRID (cards for services)
   ================ */
.feature-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 25px 0 12px 0;
}
.feature-grid > div {
  background: #fff;
  border-radius: 18px 0 18px 0;
  box-shadow: 0 2px 8px rgba(46,34,83,0.12);
  border: 2px solid #E9E6F2;
  flex: 1 1 278px;
  padding: 30px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  min-width: 235px;
  max-width: 325px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border 0.16s, transform 0.15s;
  position: relative;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 38px rgba(222,201,115,0.19), 0 1.5px 6px rgba(46,34,83,0.11);
  border: 2px solid #DEC973;
  transform: translateY(-5px) scale(1.03);
}
.feature-grid img {
  width: 42px;
  height: 42px;
}
.feature-grid h3 {
  font-size: 1.14rem;
  color: #2E2253;
}
.feature-grid p {
  font-size: 0.97rem;
  color: #2E2253;
}

/* ================
   CARD/CONTAINER UTILS for all section layouts
   ================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 24px 0;
}
.card {
  background: #fff;
  border-radius: 14px 0 14px 0;
  box-shadow: 0 2px 8px rgba(46,34,83,0.11);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 24px 18px 24px;
  min-width: 230px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ================
   TESTIMONIALS
   ================ */
.testimonial-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: 16px 0 16px 0;
  box-shadow: 0 2px 13px rgba(46,34,83,0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  min-width: 220px;
  max-width: 360px;
  color: #222045;
  border: 2px solid #E9E6F2;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, border 0.14s, transform 0.11s;
}
.testimonial-card:hover {
  border: 2px solid #DEC973;
  box-shadow: 0 7px 32px rgba(222,201,115,0.12), 0 2px 7px rgba(46,34,83,0.12);
  transform: translateY(-2px) scale(1.03);
}
.testimonial-card p {
  color: #2E2253;
  font-size: 1rem;
  margin-bottom: 6px;
  font-style: italic;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card strong {
  font-size: 0.97rem;
  color: #DEC973;
  letter-spacing: 0.03em;
}

/* ================
   FEATURE ITEM (generic for lists)
   ================ */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================
   SERVICE LIST PAGE (servicios.html)
   ================ */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 0 14px 0;
}
.service-list li {
  background: #fff;
  border-radius: 14px 0 14px 0;
  border: 2px solid #E9E6F2;
  box-shadow: 0 2px 8px rgba(46,34,83,0.09);
  padding: 26px 26px 16px 26px;
  transition: border 0.13s, box-shadow 0.12s, transform 0.13s;
  margin-bottom: 20px;
}
.service-list li:hover {
  border: 2px solid #DEC973;
  box-shadow: 0 5px 18px rgba(222,201,115,0.12);
  transform: translateY(-2px) scale(1.02);
}
.service-list h2 {
  font-size: 1.12rem;
  color: #2E2253;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-list h2 span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.93rem;
  color: #DEC973;
  margin-left: 8px;
}
.service-list p {
  font-size: 1rem;
}

/* ================
   FOOTER
   ================ */
footer {
  background: #E9E6F2;
  padding: 0 0 0 0;
  border-top: 2px solid #DEC973;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 28px 12px 16px 12px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.footer-menu a {
  color: #2E2253;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 5px 11px;
  border-radius: 12px 0 12px 0;
  background: rgba(222,201,115,0.11);
  transition: background 0.14s, color 0.14s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #DEC973;
  color: #2E2253;
}
.brand-info {
  text-align: center;
  color: #2E2253;
}
.brand-info img {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  margin: 0 4px 2px 0;
}
.brand-info p {
  margin-bottom: 5px;
  font-size: 0.99rem;
}

/* ================
   ZODIAC/GENERIC LIST
   ================ */
.zodiac-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zodiac-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 0;
  margin-left: 1px;
  margin-bottom: 10px;
}
.zodiac-list li {
  background: #E9E6F2;
  border-radius: 7px 0 7px 0;
  padding: 5px 16px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  color: #2E2253;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* Other Generics */
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.contact-info img {
  width: 20px;
  height: 20px;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding: 0 6vw;
  }
}
@media (max-width: 900px) {
  .feature-grid, .testimonial-grid, .card-container, .content-grid {
    gap: 16px;
  }
  .feature-grid > div, .testimonial-card, .card {
    max-width: 100%;
    min-width: 170px;
  }
  .section {
    padding: 36px 5vw;
  }
}
@media (max-width: 620px) {
  .container {
    padding: 0 5vw;
  }
  .section {
    margin-bottom: 36px;
    padding: 20px 0;
  }
  .feature-grid, .testimonial-grid {
    gap: 12px;
  }
  .feature-grid > div, .testimonial-card, .card {
    padding: 16px 10px 14px 10px;
  }
  .text-section {
    padding: 0;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero .cta, .cta {
    padding: 12px 20px;
    font-size: 1rem;
  }
}
@media (max-width: 540px) {
  .container {
    padding: 0 2vw;
  }
  h1, .hero h1 {
    font-size: 1.1rem;
  }
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #2E2253;
  color: #E9E6F2;
  box-shadow: 0 -3px 18px rgba(46,34,83,0.21);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 18px 8vw 16px 8vw;
  font-size: 1rem;
  transition: transform 0.31s cubic-bezier(0.33,1,0.68,1);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-content {
  flex: 1 1 auto;
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 9px 26px;
  border-radius: 7px 0 7px 0;
  font-size: 0.98rem;
  background: #DEC973;
  color: #2E2253;
  margin-right: 0;
  transition: background 0.14s, color 0.14s;
}
.cookie-btn.settings {
  background: #fff;
  color: #2E2253;
  border: 2px solid #DEC973;
  margin-left: 4px;
}
.cookie-btn.accept {
  background: #DEC973;
  color: #2E2253;
}
.cookie-btn.reject {
  background: #fff;
  color: #2E2253;
  border: 2px solid #DEC973;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #2E2253;
  color: #DEC973;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2020;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(46,34,83, 0.91);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s cubic-bezier(0.33,1,0.68,1);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #E9E6F2;
  color: #2E2253;
  border-radius: 20px 0 20px 0;
  box-shadow: 0 7px 36px rgba(46,34,83,0.17);
  min-width: 320px;
  max-width: 95vw;
  width: 410px;
  padding: 34px 28px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.45rem;
  color: #2E2253;
  background: #DEC973;
  border: none;
  border-radius: 6px 0 6px 0;
  cursor: pointer;
  padding: 3px 16px;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #2E2253;
  color: #DEC973;
}
.cookie-modal h2 {
  font-size: 1.18rem;
  color: #2E2253;
  margin-bottom: 2px;
}
.cookie-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 9px 13px;
  border-radius: 9px 0 9px 0;
  border: 2px solid #DEC973;
  font-size: 0.96rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-category .toggle {
  appearance: none;
  width: 42px;
  height: 22px;
  border-radius: 20px;
  background: #E9E6F2;
  position: relative;
  outline: none;
  cursor: pointer;
  margin-left: 15px;
  border: 1.5px solid #DEC973;
  transition: background 0.15s;
}
.cookie-category .toggle:checked {
  background: #DEC973;
}
.cookie-category .toggle:disabled {
  opacity: 0.48;
}
.cookie-category .toggle:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 100px;
  background: #fff;
  border: 1.4px solid #DEC973;
  transition: left 0.13s;
}
.cookie-category .toggle:checked:before {
  left: 21px;
  background: #DEC973;
}

.cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 450px) {
  .cookie-modal {
    width: 97vw;
    min-width: 0;
    padding: 21px 6vw 10px 6vw;
  }
}

/* =========================
   ANIMATIONS & MICROINTERACTIONS
   ========================= */
.cta, .main-nav a, .footer-menu a, .service-list li, .feature-grid > div, .testimonial-card, .card {
  transition: box-shadow 0.15s, border 0.14s, color 0.13s, background 0.13s, transform 0.13s;
}
.mobile-menu, .cookie-banner, .cookie-modal-overlay {
  transition: transform 0.31s cubic-bezier(0.36,0.66,0.04,0.99), opacity 0.19s;
}

/* =========================
   GEOMETRIC STYLED ANGULAR SHAPES
   ========================= */
.feature-grid > div,
.card,
.service-list li,
.testimonial-card,
.cookie-modal,
.cta,
.footer-menu a,
.main-nav a,
.mobile-nav a,
input[type="text"],
input[type="email"],
textarea {
  border-radius: 18px 0 18px 0 !important;
}

/* =========================
   UTILITY CLASSES & SPACING
   ========================= */
.mt-2 { margin-top: 16px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 32px !important; }
.text-center { text-align: center !important; }
.flex-row { display: flex; flex-direction: row; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* =========================
   ERROR/STATE CLASSES
   ========================= */
.text-error { color: #a9005d !important; font-weight: 700; }
.disabled, [disabled] { opacity: 0.62; pointer-events: none; }

/* =========================
   EXTRAS & OVERRIDES
   ========================= */
hidden, [hidden], .hidden { display: none !important; }

/* Prevent images stretching their containers */
img { max-width: 100%; height: auto; display: inline-block; }

/* Ensure no elements overlap (adequate spacing) */
.feature-grid > div, .testimonial-card, .card, .service-list li {
  margin-bottom: 20px;
}

/* ASSISTIVE FOCUS OUTLINE for accessibility */
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2.5px solid #DEC973;
  outline-offset: 2px;
}

/* ===============
   PRINT BASICS
   ===============*/
@media print {
  *, *:before, *:after { background: none !important; color: #222 !important; box-shadow: none !important; }
  header, footer, .main-nav, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body, .container { max-width: 100% !important; }
}
