/* RESET AND BASE STYLES */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAFAFA;
  color: #273A61;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
a {
  color: #273A61;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.65,.05,.36,1);
}
a:hover, a:focus {
  color: #FBB040;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
img {
  max-width: 100%;
  display: block;
}
input, button, textarea, select {
  font: inherit;
}
strong, b {
  font-weight: bold;
}

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  margin-bottom: 12px;
  color: #273A61;
}
h1 {
  font-size: 2.3rem;
  letter-spacing: -1px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  color: #FBB040;
}
h3 {
  font-size: 1.25rem;
  color: #273A61;
}
h4 {
  font-size: 1.05rem;
}
p, li, blockquote, ul, ol, span {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #273A61;
}

/* HERO SPACING */
.hero {
  background: linear-gradient(90deg, #FBB040 0%, #273A61 100%);
  color: #FAFAFA;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 6px 32px 0 rgba(39,58,97,0.10);
  margin-bottom: 60px;
}
.hero .container {
  min-height: 340px;
  justify-content: center;
  flex-direction: column;
  display: flex;
  align-items: center;
}
.hero h1, .hero p {
  color: #FAFAFA;
}
.hero h1 {
  margin-bottom: 24px;
  font-size: 2.6rem;
}
.hero p {
  color: #f3f3f3;
  font-size: 1.18rem;
  margin-bottom: 32px;
}

/* CONTAINER AND LAYOUT FLEXBOX */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* FLEX UTILITIES (MANDATORY FROM INSTRUCTIONS) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(39,58,97,0.08);
  transition: box-shadow 0.16s cubic-bezier(.65,.05,.36,1);
  position: relative;
  padding: 32px 24px;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(251,176,64,0.23);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(39,58,97,0.09);
  margin-bottom: 20px;
  color: #273A61;
  max-width: 600px;
}
.testimonial-card blockquote {
  font-style: italic;
  color: #333751;
  font-size: 1.05rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
footer nav {
  gap: 8px;
}

/* HEADER */
header {
  background: #273A61;
  color: #FAFAFA;
  padding: 0;
  width: 100%;
  z-index: 30;
  box-shadow: 0 2px 14px rgba(39,58,97,0.06);
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}
header img {
  height: 44px;
  margin-right: 16px;
}
header nav {
  gap: 18px;
  margin-right: 24px;
}
header nav a {
  color: #FAFAFA;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background 0.14s,color 0.14s;
}
header nav a:hover, header nav a:focus {
  background: #FBB040;
  color: #273A61;
}
.cta.primary, .cta.primary:visited {
  display: inline-block;
  background: #FBB040;
  color: #273A61;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 30px;
  box-shadow: 0 2px 12px rgba(251,176,64,0.13);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  text-shadow: none;
  cursor: pointer;
  border: none;
  margin-left: 10px;
}
.cta.primary:hover, .cta.primary:focus {
  background: #273A61;
  color: #FBB040;
  transform: translateY(-1px) scale(1.04);
  outline: none;
}

/* BUTTON SHARED STYLES */
button {
  cursor: pointer;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 26px;
  border-radius: 28px;
  background: #273A61;
  color: #FAFAFA;
  transition: background 0.18s, color 0.16s, transform 0.12s;
}
button:hover, button:focus {
  background: #FBB040;
  color: #273A61;
  outline: none;
}

/* DISTINCTIVE SECTION LISTS + CARDS */
section ul, section ol {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin: 18px 0 0 0;
}
section ul li, section ol li {
  background: #fff;
  padding: 28px 32px;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(39,58,97,0.07);
  flex: 1 1 240px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.12s;
  margin-bottom: 20px;
  position: relative;
}
section ul li:hover, section ol li:hover {
  box-shadow: 0 8px 32px rgba(251,176,64,0.18);
  transform: translateY(-3px) scale(1.02);
}
section ul li img, section ol li img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  filter: drop-shadow(0 1px 3px #FBB04033);
}
section ul li h3 {
  margin-bottom: 5px;
  font-size: 1.15rem;
  font-weight: 800;
}
section ul li p {
  margin-bottom: 0;
  color: #273A61;
  font-size: 1rem;
  line-height: 1.6;
}

/* SECTION LAYOUTS AND SPACING (MANDATORY) */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* TESTIMONIAL EXTRAS */
.testimonial-card span {
  color: #FBB040;
  margin-left: 8px;
  font-size: 1.18rem;
}
.testimonial-card strong {
  font-weight: bold;
  color: #273A61;
  font-size: 1.07rem;
}

/* CARDS VISUALS */
.card h3 {
  color: #FBB040;
  font-weight: 800;
  margin-bottom: 7px;
}

/* FOOTER */
footer {
  padding: 40px 0 0 0;
  background: #1e2640;
  color: #fafafa;
  font-size: 1rem;
  width: 100%;
}
footer .container {
  flex-direction: column;
  gap: 0;
  padding: 0 20px 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid #FBB04030;
}
footer nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #FBB040;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 4px;
  transition: color 0.12s;
}
footer nav a:hover {
  color: #ffb80f;
}
.footer-contact p {
  color: #fafafa;
  font-size: 1rem;
}

/* SPACING BETWEEN ALL CARDS/SECTIONS */
section > *, .card-container > *, .content-grid > *, .testimonial-card, .card, section ul li, section ol li {
  margin-bottom: 20px;
}
section ul, section ol {
  margin-bottom: 16px;
}

/* MOBILE MENU: HAMBURGER + OVERLAY */
.mobile-menu-toggle {
  display: none;
  background: #FBB040;
  color: #273A61;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 24px;
  top: 15px;
  z-index: 120;
  border: none;
  transition: background 0.18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #faeba2;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #273A61;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1200;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(.86,0,.07,1), opacity 0.25s;
  justify-content: flex-start;
  align-items: stretch;
  box-shadow: 0 8px 36px #273A6133;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 30px 12px 0;
  background: #FBB040;
  color: #273A61;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: none;
}
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
  padding: 24px 32px;
}
.mobile-nav a {
  color: #FAFAFA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 12px 0;
  border-bottom: 1px solid #fafafa13;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FBB040;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #273A61;
  color: #FAFAFA;
  padding: 24px 20px 20px 20px;
  z-index: 1250;
  box-shadow: 0 -4px 32px #273A6133;
  font-size: 1rem;
  transition: transform 0.32s cubic-bezier(.8,.2,.3,1), opacity 0.18s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
}
.cookie-banner .cookie-btn {
  background: #FBB040;
  color: #273A61;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin-right: 12px;
  border-radius: 22px;
  padding: 9px 20px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 2px 8px #fbb04022;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #ffc966;
  color: #273A61;
}
.cookie-banner .cookie-btn.secondary {
  background: #273A61;
  color: #FBB040;
  border: 2px solid #FBB040;
}
.cookie-banner .cookie-btn.secondary:hover, .cookie-banner .cookie-btn.secondary:focus {
  background: #414d76;
  color: #ffb458;
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  justify-content: center;
  align-items: center;
  z-index: 1260;
  background: rgba(39,58,97,0.82);
  animation: fadeInBg 0.28s;
}
.cookie-modal.active {
  display: flex;
}
@keyframes fadeInBg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #273A61;
  border-radius: 24px;
  box-shadow: 0 2px 36px #273A6133;
  padding: 40px 32px 28px 32px;
  max-width: 380px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  animation: fadeInModal 0.32s;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; }
}
.cookie-modal-content h3 {
  color: #FBB040;
  margin-bottom: 5px;
}
.cookie-modal-content .cookie-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #273A61;
  color: #FAFAFA;
  border-radius: 999px;
  width: 32px; height: 32px;
  border: none;
  font-size: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.12s;
}
.cookie-modal-content .cookie-close:hover {
  background: #FBB040;
  color: #273A61;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #273A6117;
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: #FBB040;
  width: 18px; height: 18px;
  margin-right: 4px;
}
.cookie-category .essential {
  color: #273A61;
  font-weight: 700;
  font-size: 0.98rem;
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  margin-top: 12px;
}
.cookie-modal-content .cookie-btn {
  flex: 1 1 auto;
}

/* VISUAL ACCENTS */
::-webkit-scrollbar {
  width: 9px;
  background: #f3f3f3;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #FBB040;
  border-radius: 8px;
}

/* BOLD FONTS FOR ENERGETIC HEADINGS */
h1, h2, h3 {
  font-weight: 900;
  letter-spacing: -0.5px;
}

/* HIGH ENERGY BUTTON ANIMATION */
.cta.primary, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.15s, transform 0.16s;
}
.cta.primary:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* CARD HIERARCHY & VISUALS */
.card {
  border-left: 8px solid #FBB040;
}
section ul li, section ol li {
  border-left: 5px solid #FBB040;
}

/* RESPONSIVE DESIGN (MOBILE FIRST) */
@media (max-width: 1024px) {
  .container {
    max-width: 980px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .hero .container { min-height: 260px; }
  .section { padding: 30px 8px; }
  section { padding: 30px 8px; }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  nav {
    gap: 10px;
    flex-wrap: wrap;
    font-size: 1rem;
  }
  .content-wrapper, .section, section {
    padding-left: 0;
    padding-right: 0;
  }
  .hero {
    border-radius: 0 0 28px 28px;
    margin-bottom: 38px; padding: 0;
  }
  .hero .container {
    min-height: 140px;
    padding: 22px 0;
  }
  .hero h1 {
    font-size: 1.52rem;
    line-height: 1.16;
    margin-bottom: 16px;
  }
  .hero p {
    font-size: 1rem; margin-bottom: 18px;
  }
  .testimonial-card, .card, section ul li, section ol li {
    max-width: 100vw;
    min-width: unset;
    padding: 18px 12px;
  }
  section ul, section ol {
    gap: 13px;
    flex-direction: column;
  }
  .text-image-section, .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .cookie-modal-content {
    padding: 20px 8px 14px 8px;
    max-width: 98vw;
  }
}

@media (max-width: 600px) {
  section, .section {
    padding-left: 0;
    padding-right: 0;
  }
  .footer-contact {
    font-size: 0.97rem;
    gap: 6px;
  }
  .hero {
    padding-top: 8px; padding-bottom: 10px;
  }
  .mobile-menu-close {
    margin-right: 16px;
  }
}

/* HIDE MAIN NAV ON MOBILE, SHOW BURGER */
@media (max-width: 1020px) {
  header nav {
    display: none !important;
  }
  .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 650px) {
  .footer-contact {
    font-size: 0.89rem;
    padding-bottom: 8px;
  }
}

/* Make sure no element overlaps */
.card, .testimonial-card, section ul li, section ol li {
  box-sizing: border-box;
  min-width: 0;
}

/* MICRO-INTERACTIONS: subtle pop on cards */
.card:hover, .testimonial-card:hover, section ul li:hover, section ol li:hover {
  box-shadow: 0 8px 28px rgba(251,176,64,0.18), 0 2px 10px rgba(39,58,97,0.08);
  transform: scale(1.015);
  z-index: 2;
}

/* Inputs, if present (for contacto.html forms) */
input, textarea, select {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1.2px solid #FBB040;
  border-radius: 8px;
  background: #fafafa;
  margin-bottom: 18px;
  outline: none;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.8px solid #273A61;
}

/* Section titles accent */
section h2 {
  font-size: 2rem;
  color: #FBB040;
  margin-bottom: 6px;
}
section h3 {
  color: #273A61;
}

/* Add vibrance: hover scale, color pops */
.cta.primary {
  box-shadow: 0 2px 12px #fbb04033;
  letter-spacing: 0.6px;
  font-size: 1.13rem;
}

/* Ensure testimonial text is highly readable */
.testimonial-card, .testimonial-card blockquote {
  background: #fff;
  color: #273A61;
}

/* Blog category span */
span {
  font-family: 'Lato', Arial, sans-serif;
  color: #FBB040;
  font-size: 0.98rem;
}

/* Highlight links in body */
p a, li a, blockquote a {
  color: #FBB040;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.15s;
}
p a:hover, li a:hover {
  color: #273A61;
}

/* MOBILE Z-INDEX RULES FOR OVERLAYS */
.mobile-menu, .cookie-modal, .cookie-banner {
  z-index: 99999;
}

/* End of style.css */
