/* TecnoInteligente Modern Bold CSS Stylesheet - style.css */
/* 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, 
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8F9FB;
  color: #223148;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #548CA8;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #223148;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
}

/* TYPOGRAPHY -------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #223148;
  margin-bottom: 20px;
  line-height: 1.2;
}
h1 {  font-size: 2.5rem; margin-bottom: 16px; }
h2 {  font-size: 2rem;   margin-bottom: 16px; }
h3 {  font-size: 1.375rem; margin-bottom: 12px; }
h4 {  font-size: 1.125rem; margin-bottom: 8px;  }
h5 {  font-size: 1rem;    margin-bottom: 8px;  }
h6 {  font-size: 0.875rem; margin-bottom: 6px; }

p, li, label, input, span, b {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #223148;
}
p { margin-bottom: 16px; }
b, strong { font-weight: 700; }

.category-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  background: #548CA8;
  color: #fff;
  border-radius: 20px;
  padding: 4px 16px;
  margin-bottom: 12px;
  margin-right: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* CONTAINER & LAYOUTS ----------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 18px 0 rgba(34,49,72,0.05);
}
@media (max-width: 992px) {
 .section {
    margin-bottom: 40px;
    padding: 32px 12px;
 }
}

/* HERO SECTION ------------------------------------------------ */
.hero {
  background: #223148;
  color: #fff;
  padding: 64px 0 52px 0;
  margin-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 700px;
  gap: 18px;
}
.hero h1, .hero p {
  color: #fff;
}
.hero .cta-button {
  margin-top: 18px;
}
@media (max-width: 768px) {
  .hero { padding: 42px 0 28px 0; }
  .hero .content-wrapper { max-width: none; }
}

/* FLEXBOX LAYOUTS  -------------------------------------------- */
.features ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
  justify-content: space-between;
}
.features ul li {
  background: #E0E4EA;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  border-radius: 16px;
  padding: 32px 20px 22px 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 14px 0 rgba(34,49,72,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features ul li img{
  width: 36px; height: 36px; margin-bottom: 10px;
}

.section .text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article-list li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 9px 0 rgba(84,140,168,0.06);
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .18s;
}
.article-list li:hover {
  box-shadow: 0 5px 28px 0 rgba(84,140,168,0.13);
}

.articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-top: 24px;
}
.articles-grid article {
  background: #E0E4EA;
  border-radius: 16px;
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 362px;
  box-shadow: 0 2px 10px 0 rgba(84,140,168,0.05);
  padding: 24px 24px 16px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .18s;
}
.articles-grid article:hover {
  box-shadow: 0 7px 32px 0 rgba(34,49,72,0.13);
  background: #fff;
}

.quick-facts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.quick-facts-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(84,140,168,0.06);
  flex: 1 1 180px;
  min-width: 150px;
  max-width: 220px;
  padding: 20px 12px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.quick-facts-grid > div b {
  font-size: 1.35rem;
  color: #548CA8;
}

.cta {
  background: #548CA8;
  color: #fff;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 48px 20px;
}
.cta .content-wrapper {
  align-items: center;
  gap: 20px;
}
.cta h2, .cta p {
  color: #fff;
}

/* SPACING & ALIGNMENT PATTERNS (MANDATORY)--------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(34,49,72,0.07);
  padding: 26px 18px 18px 18px;
  position: relative;
  flex: 1 1 300px;
  min-width: 220px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: box-shadow .17s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(34,49,72,0.12);
}
.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;
  border-radius: 16px;
  background: #E0E4EA;
  box-shadow: 0 2px 10px 0 rgba(34,49,72,0.05);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SEARCH BAR, FILTERS & MISC COMPONENTS ----------------------- */
.search-bar {
  width: 100%;
  display: flex;
  flex: 1 1 100%;
  margin-bottom: 18px;
  margin-top: 10px;
}
.search-bar input {
  flex: 1;
  font-size: 1.05rem;
  padding: 14px 16px;
  border: 2px solid #548CA8;
  border-radius: 22px;
  outline: none;
  transition: border .18s;
}
.search-bar input:focus {
  border: 2px solid #223148;
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
  margin-bottom: 18px;
  align-items: center;
}

/* CTA BUTTONS & INTERACTIONS ---------------------------------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #548CA8;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 24px;
  padding: 14px 36px;
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 3px 15px 0 rgba(84,140,168,0.11);
  transition: background .17s, transform .16s, box-shadow .16s;
  margin-top: 10px;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus {
  background: #223148;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px 0 rgba(34,49,72,0.16);
  outline: none;
}

/* HEADER & NAVIGATION ----------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(34,49,72,0.05);
  position: sticky;
  top: 0;
  z-index: 51;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
}
header a img { height: 46px; padding: 8px 0; }
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #223148;
  padding: 6px 12px;
  border-radius: 16px;
  transition: background .16s, color .16s;
}
nav a:hover, nav a:focus {
  background: #548CA8;
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #223148;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 20px;
  transition: color .16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #548CA8;
}

/* MOBILE MENU ------------------------------------------------- */
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #223148;
  color: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform .37s cubic-bezier(.55,.19,.15,1.02);
  display: flex;
  flex-direction: column;
  padding-top: 40px;
}
.mobile-menu.active {
  transform: translateX(0);
  box-shadow: -2px 0 40px 0 rgba(34,49,72,0.14);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  z-index: 221;
  cursor: pointer;
  padding: 7px;
  transition: color .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #548CA8;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
  margin: 58px 0 0 0;
  padding: 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.37rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 10px;
  border-radius: 14px;
  transition: background .13s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #548CA8;
  color: #fff;
  text-decoration: none;
}
/* Mobile toggle/visibility rules */
@media (max-width: 980px) {
  nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* FOOTER ------------------------------------------------------ */
footer {
  background: #223148;
  color: #E0E4EA;
  padding: 36px 0 0 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav,
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  align-items: center;
}
.footer-nav a {
  color: #E0E4EA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  padding: 6px 10px;
  transition: background .12s, color .12s;
}
.footer-nav a:hover, .footer-nav a:focus { background: #548CA8; color: #fff; }
.footer-contact p, .footer-contact a { color: #E0E4EA; font-size: 0.98rem; }
.footer-logo { padding: 14px 0; }
.footer-logo img { height: 38px; }
@media (max-width: 780px) {
  footer .container {
    gap: 20px;
    padding-bottom: 24px;
  }
  .footer-nav, .footer-contact {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* CONTACT INFO ----------------------------------------------- */
.contact-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 0;
  margin-bottom: 14px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #223148;
  font-size: 1rem;
}
.contact-info img {
  width: 19px;
  height: 19px;
  vertical-align: middle;
}
.map-location {
  margin-top: 24px;
}

/* LEGAL & POLICY PAGES ---------------------------------------- */
.legal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(34,49,72,0.06);
  padding: 36px 24px 28px 24px;
  margin-bottom: 56px;
  letter-spacing: 0.01em;
}
.legal .text-section ul {
  margin: 10px 0 12px 0;
}

/* CONFIRMATION / THANK YOU ------------------------------------ */
.confirmation {
  background: #E0E4EA;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(34,49,72,0.07);
  padding: 48px 20px 36px 20px;
  text-align: center;
}
.confirmation h1 {
  color: #223148;
  font-size: 2rem;
}
.confirmation .cta-button {
  margin-top: 20px;
}

/* Cookie Consent Banner - Fixed Bottom ------------------------ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 350;
  background: #223148;
  color: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 16px;
  box-shadow: 0 -2px 24px 0 rgba(34,49,72,0.12);
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.45,.04,.12,1.0);
  font-size: 1rem;
}
.cookie-banner.active {
  transform: translateY(0);
}
.cookie-banner p {
  flex: 1 1 320px;
  margin: 0;
  color: #fff;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
}
.cookie-banner button, .cookie-banner .cookie-btns button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  background: #548CA8;
  color: #fff;
  cursor: pointer;
  transition: background .18s, color .16s, box-shadow .13s;
  margin-right: 0;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff;
  color: #223148;
  box-shadow: 0 3px 14px 0 rgba(84,140,168,0.12);
}
.cookie-banner .btn-outline {
  background: #fff;
  color: #223148;
  border: 2px solid #548CA8;
}
.cookie-banner .btn-outline:hover {
  background: #548CA8;
  color: #fff;
}

/* Cookie Modal Popup ----------------------------------------- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 400;
  background: rgba(34,49,72,0.52);
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade-in .32s;
}
.cookie-modal.active {
  display: flex;
}
@keyframes cookie-modal-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #223148;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(34,49,72,0.16);
  min-width: 340px;
  max-width: 90vw;
  padding: 32px 28px 21px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  color: #223148;
}
.cookie-modal-content .cookie-cat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 11px;
}
.cookie-modal-content label {
  font-size: 1rem;
  margin-left: 8px;
  cursor: pointer;
  font-weight: 600;
}
.cookie-modal-content .cat-toggle {
  appearance: none;
  background: #E0E4EA;
  border-radius: 32px;
  width: 46px; height: 26px;
  position: relative;
  outline: none;
  transition: background .13s;
  cursor: pointer;
}
.cookie-modal-content .cat-toggle:checked {
  background: #548CA8;
}
.cookie-modal-content .cat-toggle:before {
  content: '';
  display: block;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 4px;
  box-shadow: 0 1px 4px 0 rgba(34,49,72,0.13);
  transition: left .16s;
}
.cookie-modal-content .cat-toggle:checked:before {
  left: 22px;
}
.cookie-modal-content .category-note {
  font-size: 0.93rem;
  color: #548CA8;
  margin-bottom: 7px;
}
.cookie-modal-content .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}
.cookie-modal-content button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 16px;
  padding: 9px 19px;
  border: none;
  cursor: pointer;
  background: #548CA8;
  color: #fff;
  transition: background .16s, color .16s;
}
.cookie-modal-content button.btn-outline {
  background: #fff;
  color: #223148;
  border: 2px solid #548CA8;
}
.cookie-modal-content button.btn-outline:hover {
  background: #548CA8;
  color: #fff;
}
.cookie-modal-close {
  background: none;
  color: #548CA8;
  border: none;
  font-size: 1.55rem;
  position: absolute;
  right: 20px; top: 18px;
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: #223148;
}

/* RESPONSIVE DESIGN ------------------------------------------- */
@media (max-width: 1020px) {
  .features ul { gap: 20px; }
  .articles-grid { gap: 18px; }
  .quick-facts-grid { gap: 14px; }
}
@media (max-width: 860px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .section, .cta, .legal, .confirmation { padding: 22px 8px; }
  .features ul li, .card, .articles-grid article, .quick-facts-grid > div { padding: 16px 12px; }
}
@media (max-width: 768px) {
  .features ul,
  .footer-nav, .footer-contact {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .articles-grid, .quick-facts-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .hero .content-wrapper, .cta .content-wrapper {
    align-items: flex-start;
    text-align: left;
  }
  .section, .cta, .legal, .confirmation {
    padding: 14px 2px;
    margin-bottom: 30px;
  }
}
@media (max-width: 500px) {
  .container { padding-left: 4px; padding-right: 4px; }
  .features ul li, .card, .articles-grid article, .quick-facts-grid > div {
    min-width: 0;
    width: 100%;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
}

/* TRANSITIONS & MICROINTERACTIONS ----------------------------- */
button, .cta-button, .card, .articles-grid article, .mobile-menu, .cookie-banner, .category-tag {
  transition: all .15s cubic-bezier(.53,.15,.41,1.15) 0s;
}
.card:active, .articles-grid article:active {
  transform: scale(0.985);
}

/* SHADOWS & BOLD EFFECTS -------------------------------------- */
.card, .articles-grid article, .features ul li, .testimonial-card, .quick-facts-grid > div {
  box-shadow: 0 2px 10px 0 rgba(84,140,168,0.06);
}
.cta-button, .cookie-banner, .mobile-menu, .cookie-modal-content {
  box-shadow: 0 3px 18px 0 rgba(84,140,168,0.12);
}

/* VISUAL GEOMETRY & HIGH CONTRAST ----------------------------- */
.card, .articles-grid article, .features ul li, .testimonial-card, .section, .content-wrapper, .legal, .contact-info ul, .quick-facts-grid > div, .confirmation {
  border-radius: 16px;
}

/* ENSURE NO FLEXBOX OVERLAP ----------------------------------- */
.card, .articles-grid article, .features ul li, .quick-facts-grid > div {
  margin-bottom: 20px;
}
.section, .cta {
  margin-bottom: 60px;
}

/* UTILITIES --------------------------------------------------- */
.bg-primary { background: #223148 !important; color: #fff !important; }
.bg-secondary { background: #548CA8 !important; color: #fff !important; }
.bg-accent { background: #E0E4EA !important; color: #223148 !important; }
.text-primary { color: #223148 !important; }
.text-secondary { color: #548CA8 !important; }

/* Hide visually but keep for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
