/* VISTA UNIVERSITARIA – STYLE.CSS – VIBRANT ENERGETIC DESIGN */

/* ================= CSS RESET & 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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #1a222c;
  background: #fafbfe;
  line-height: 1.6;
  overflow-x: hidden;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #204060;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.5,.1,.85,1);
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
  margin: 0 0 18px 0;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  color: inherit;
}
strong {
  font-weight: 700;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: #204060;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}
h1 {
  font-size: 2.375rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1.05rem; }
}

/* ================= BRAND COLOR PALETTE ================= */
:root {
  --primary: #204060;
  --secondary: #8BB174;
  --accent: #F2EEE3;
  --highlight: #ffcb05; /* energetic yellow */
  --danger: #e84646;
  --white: #fff;
  --dark: #104060;
  --text-main: #192948;
  --gray: #e0e9f1;
  --shadow: rgba(32,64,96,0.15);
  --orange: #f76707;
  --blue: #38a3f1;
  --green: #59ce8f;
  --pink: #ff3e86;
}

/* ===================== UTILITY FLEX CONTAINERS ===================== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}
.header-flex, .footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-flex {
  justify-content: flex-start;
  gap: 36px;
}

/* ===================== HEADER & NAVIGATION ===================== */
header {
  background: var(--primary);
  box-shadow: 0 4px 18px -6px var(--shadow);
  min-height: 70px;
  z-index: 98;
}
header .container {
  padding-top: 16px;
  padding-bottom: 16px;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
  padding: 6px 16px;
  border-radius: 9px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #ffcb05 10%, #38a3f1 90%);
  color: #204060;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 12px 32px;
  border-radius: 27px;
  font-size: 1.08rem;
  box-shadow: 0 2px 16px -4px var(--shadow);
  transition: background 0.2s, color 0.2s, box-shadow 0.16s;
  margin-left: 18px;
  border: none;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #ff3e86 10%, #204060 90%);
  color: #fff;
  box-shadow: 0 4px 22px -2px var(--blue);
}

/* Hamburger menu */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  background: var(--highlight);
  color: var(--primary);
  border-radius: 50%;
  border: none;
  font-size: 2.25rem;
  line-height: 42px;
  justify-content: center;
  align-items: center;
  z-index: 120;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 10px var(--shadow);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--pink);
  color: #fff;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-105vw);
  will-change: transform;
  transition: transform 0.35s cubic-bezier(.85,.1,.33,1);
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 28px 0 16px 26px;
  background: var(--danger);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 12px var(--shadow);
  transition: background 0.17s, color 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--orange);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
  width: 100%;
  padding-left: 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--accent);
  padding: 14px 0;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  min-width: 230px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--primary);
  background: var(--highlight);
}

/* ============= HERO SECTIONS & SECTION SPACING ============= */
.hero-section {
  background: linear-gradient(90deg, #F2EEE3 92%, #ffcb05 100%);
  padding: 0;
  margin-bottom: 60px;
}
.hero-section .container {
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 54px;
  padding-bottom: 54px;
}
.hero-section h1 {
  color: var(--primary);
  font-size: 2.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  background: none;
}
.hero-section p {
  color: #38629b;
  font-size: 1.14rem;
  margin-bottom: 28px;
  margin-top: -5px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===================== FEATURE GRIDS & CARDS ===================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 20px;
  margin-top: 18px;
  justify-content: flex-start;
}
.features-grid > div {
  flex: 1 1 220px;
  max-width: 265px;
  background: #fff;
  border-radius: 18px;
  border: 2.5px solid var(--accent);
  box-shadow: 0 4px 22px -7px var(--gray);
  padding: 30px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.24s, transform 0.19s;
  min-width: 210px;
}
.features-grid > div:hover {
  box-shadow: 0 8px 38px -9px var(--blue);
  transform: translateY(-5px) scale(1.034);
  border-color: var(--secondary);
  background: var(--accent);
}
.features-grid img {
  margin-bottom: 18px;
  width: 56px;
  height: 56px;
}
.features-grid h3 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 1px;
}
.features-grid p {
  color: var(--text-main);
  text-align: center;
  font-size: 0.99rem;
}

/* ==================== CARD CONTAINERS ==================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px -4px var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 38px -7px var(--pink);
  transform: translateY(-3px) scale(1.022);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  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;
}

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

/* ===================== TESTIMONIALS ===================== */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  margin-top: 14px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 360px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 24px -9px var(--primary);
  padding: 28px 24px 22px 24px;
  margin-bottom: 16px;
  border: 2px solid var(--secondary);
  color: #18293d;
  transition: box-shadow 0.16s, border 0.18s;
  font-size: 1.04rem;
}
.testimonial-card strong {
  color: var(--primary);
  background: none;
  font-size: 1.01rem;
}
.testimonial-card p {
  color: #304270;
  font-size: 1rem;
  margin-bottom: 0;
  text-align: center;
}
.testimonial-card .star-rating {
  color: #ffcb05;
  font-size: 1.36rem;
  letter-spacing: 1.5px;
  margin-bottom: -3px;
  margin-top: -7px;
}
.testimonial-card:hover {
  box-shadow: 0 11px 38px -9px var(--secondary), 0 2px 24px -11px var(--orange);
  border-color: var(--primary);
  background: #F2EEE3;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--primary);
  color: var(--accent);
  margin-top: 48px;
  padding: 34px 0 20px 0;
  font-size: 0.97rem;
  position: relative;
}
.footer-flex {
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 44px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  opacity: 0.95;
  font-size: .98rem;
  transition: color 0.19s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #ffcb05;
  text-decoration: underline;
}
.footer-contact, .footer-hours {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-contact div, .footer-hours {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img, .footer-hours img {
  width: 28px; height: 28px;
}
.footer-hours {
  margin-top: 6px;
  font-size: .95rem;
}

/* ============ SECTIONS, SPACING, AND TYPOGRAPHY HIERARCHY =========== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.text-section {
  max-width: 670px;
  margin: 0 auto;
}
section h2 {
  font-size: 2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  margin-bottom: 14px;
}
section h3 {
  color: var(--secondary);
}
section ul, section ol {
  margin: 18px 0 18px 18px;
  padding-left: 18px;
}
section ul li, section ol li {
  font-size: 1.05rem;
  margin-bottom: 10px;
  list-style: disc inside;
}
dt {
  font-weight: bold;
  margin-top: 18px;
}
dd {
  margin-left: 6px;
  margin-bottom: 7px;
}

/* ============= FAQ SECTIONS ============= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list > div {
  background: #fff;
  border-left: 5px solid var(--secondary);
  border-radius: 13px;
  box-shadow: 0 2px 11px -4px var(--secondary);
  padding: 20px 22px 22px 20px;
  margin-bottom: 10px;
  color: #223460;
  transition: box-shadow 0.16s, border 0.14s;
}
.faq-list > div strong {
  color: var(--primary);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  padding-bottom: 2px;
}
.faq-list > div:hover {
  box-shadow: 0 8px 20px -7px var(--blue);
  border-left: 5px solid var(--blue);
}

/* ============= LISTS FOR 'before/after' & benefit sections ============= */
.before-after-stories ul, .text-section ul, .text-section ol {
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid var(--accent);
  padding: 14px 24px;
  margin: 0 0 28px 0;
  color: var(--primary);
}
.text-section ul li {
  list-style: disc inside;
  color: #2e4a70;
}

/* ============= BUTTONS ============= */
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
  outline: none;
  font-weight: 900;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  background: linear-gradient(90deg, #ffcb05 10%, #38a3f1 95%);
  color: #204060;
  border-radius: 27px;
  padding: 12px 30px;
  font-size: 1.02rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.16s, transform 0.13s;
  box-shadow: 0 2px 14px -5px var(--shadow);
  min-width: 195px;
  text-align: center;
  margin-top: 18px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.btn-primary:focus,
.btn-primary:hover {
  background: linear-gradient(90deg, #ff3e86 10%, #204060 90%);
  color: #fff;
  transform: translateY(-2px) scale(1.021);
  box-shadow: 0 3px 20px 0 var(--blue);
}

/* ========= COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #18293d;
  border-top: 4px solid var(--secondary);
  box-shadow: 0 -4px 20px -6px var(--primary);
  padding: 22px 16px 18px 16px;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: slideUpFadeIn 0.32s cubic-bezier(.66,0,.41,1);
}
.cookie-banner p {
  color: #223460;
  font-size: 1.01rem;
  text-align: center;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.cookie-btn-accept, .cookie-btn-reject, .cookie-btn-settings {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 21px;
  border-radius: 20px;
  border: none;
  margin: 0 3px;
  cursor: pointer;
  box-shadow: 0 1px 7px -4px var(--blue);
  transition: background 0.15s, color 0.15s, box-shadow 0.13s;
}
.cookie-btn-accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: var(--green);
}
.cookie-btn-reject {
  background: var(--danger);
  color: #fff;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: var(--orange);
  color: #fff;
}
.cookie-btn-settings {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--highlight);
  color: var(--primary);
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,64,96,0.6);
  z-index: 20001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px -18px var(--primary);
  padding: 38px 28px 28px 28px;
  min-width: 320px; max-width: 98vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: popIn 0.24s cubic-bezier(.49,1.5,.54,1.1);
  z-index: 20010;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.34rem;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.cookie-toggle {
  width: 40px; height: 22px;
  border-radius: 11px;
  background: var(--gray);
  position: relative;
  transition: background 0.13s;
  margin-left: 10px;
}
.cookie-toggle input {
  opacity: 0;
  width: 40px;
  height: 22px;
  position: absolute;
  left: 0; top: 0;
  margin: 0;
  z-index: 10;
}
.cookie-toggle input:checked + span {
  background: var(--green);
}
.cookie-toggle span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 11px;
  background: var(--gray);
  transition: background 0.12s;
  position: absolute;
  left: 0; top: 0;
}
.cookie-toggle input:checked + span:after {
  left: 18px;
  background: var(--secondary);
}
.cookie-toggle span:after {
  content: "";
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gray);
  position: absolute;
  left: 3px; top: 3px;
  transition: left 0.14s, background 0.14s;
  box-shadow: 0 1px 4px -1px #9995;
}
.cookie-pref-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  right: 19px;
  top: 15px;
  font-size: 1.8rem;
  background: var(--danger);
  color: #fff;
  border-radius: 13px;
  width: 34px; height: 34px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .close-cookie-modal:hover {
  background: var(--orange);
}

@keyframes slideUpFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1.02) translateY(0); }
}

/* ===================== FORMS & CTA =============== */
input,
textarea,
select {
  padding: 9px 15px;
  border: 1.5px solid var(--gray);
  border-radius: 9px;
  font-size: 1rem;
  color: #2e4a70;
  margin-bottom: 17px;
  background: #fafdfe;
  transition: border-color 0.13s;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.next-steps ul {
  background: #fafbfe;
  border: 1.5px solid var(--secondary);
  padding: 13px 24px;
  border-radius: 10px;
}
.next-steps ul li {
  color: #1e3c76;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.99rem;
}

/* =================== MEDIA QUERIES - RESPONSIVE DESIGN =================== */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding: 0 14px;
  }
  .features-grid {
    gap: 22px;
  }
  .footer-flex {
    gap: 28px;
  }
}
@media (max-width: 900px) {
  .features-grid {
    justify-content: center;
    gap: 18px;
  }
  .card-container {
    gap: 14px;
  }
  .testimonial-list {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 10px;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .btn-primary {
    margin-left: 0;
    margin-top: 10px;
  }
  .features-grid {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  section {
    padding: 32px 6px;
    margin-bottom: 38px;
  }
  .testimonial-list {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}

@media (max-width: 540px) {
  .footer-contact, .footer-hours {
    flex-direction: column;
    gap: 7px;
  }
  footer {
    padding: 24px 0 16px 0;
    font-size: 0.95rem;
  }
  .footer-nav {
    gap: 14px;
  }
}

@media (max-width: 430px) {
  .footer-nav a, .footer-hours span, .footer-contact span {
    font-size: 0.86rem;
  }
  .footer-hours {
    font-size: 0.9rem;
  }
  .cookie-banner {
    padding: 11px 3px 10px 3px;
  }
}

/* =================== MICRO-INTERACTIONS, TRANSITIONS, EFFECTS =================== */
a, .btn-primary, button, .main-nav a, .mobile-nav a {
  transition: all 0.16s cubic-bezier(.36,.11,.69,1.19);
}
.features-grid > div, .faq-list > div, .card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.13s, border 0.18s;
}
.btn-primary {
  transition: background 0.18s, color 0.14s, box-shadow 0.16s, transform 0.14s;
}

/* =================== ACCESSIBILITY =================== */
.btn-primary:focus,
.main-nav a:focus, 
.mobile-nav a:focus,
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #ffe87777;
}

/* =================== PRINT-FRIENDLY OVERRIDE =================== */
@media print {
  header, footer, .mobile-menu, .btn-primary, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body, .container section {
    background: #fff !important;
    color: #000 !important;
  }
}
