/* ======================================================================
   TecnoVisión Hoy - Scandinavian Clean CSS
   Modern, clean, light, natural, and highly usable (mobile-first)
   - Font families: Montserrat (display), Roboto (body)
   - Colors: #222D3B (primary), #28B3A2 (secondary), #F1F7FA (accent), #fff, #E3EBF1, #A6ADB7
   - Only uses flex for layouts! (no grid, no columns)
   ======================================================================= */
/* ------ CSS RESET & NORMALIZE ------ */
html { box-sizing: border-box; font-size: 16px; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  background: #F1F7FA;
  color: #222D3B;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #222D3B;
  line-height: 1.16;
}
h1 { font-size: 2.375rem; margin-bottom: 20px; }
h2 { font-size: 1.65rem; margin-bottom: 18px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
h4, h5 { font-size: 1rem; }
p, li, span, a, label {
  font-size: 1rem;
  color: #222D3B;
  line-height: 1.7;
}
a { color: #28B3A2; background: none; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #178f82; outline: none; }
img { max-width: 100%; height: auto; display: block; border: none; }
ul, ol { list-style: none; padding-left: 0; margin-bottom: 0; }
strong { font-weight: 700; color: #222D3B; }
section { width: 100%; background: none; }

/* ------- FLEXBOX CONTAINERS & LAYOUTS ------- */
.container {
  width: 100%;
  max-width: 1030px;
  margin: 0 auto;
  padding: 0 18px;
}
.flex-row { display: flex; flex-direction: row; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 #E3EBF1;
}
.content-wrapper { padding: 0; }

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34,45,59,0.05);
  margin-bottom: 20px;
  position: relative;
  padding: 22px 22px 18px 22px;
  transition: transform 0.17s cubic-bezier(.33,1,.68,1), box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 20px rgba(40,179,162,0.10);
  transform: translateY(-3px) scale(1.012);
}

.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-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  padding: 20px 28px;
  border-radius: 12px;
  box-shadow: 0 2px 12px #E3EBF1;
  min-width: 280px;
  max-width: 320px;
  color: #222D3B;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 20px rgba(34,45,59,0.11);
  transform: translateY(-2px) scale(1.014);
}
.testimonial-card p {
  color: #222D3B;
  font-size: 1.05rem;
}
.testimonial-card span {
  color: #28B3A2;
  font-weight: 600;
  font-size: 1rem;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F1F7FA;
  border-radius: 10px;
  padding: 18px 22px;
  min-width: 220px;
  flex: 1 1 220px;
  box-shadow: 0 1px 5px #E3EBF1;
  transition: background 0.17s, box-shadow 0.18s;
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  object-fit: contain;
}
.feature-item h3 {
  font-size: 1.14rem;
  margin-bottom: 4px;
  color: #222D3B;
}
.feature-item p {
  color: #222d3b;
  font-size: 1rem;
}
.feature-item:hover {
  background: #E3EBF1;
  box-shadow: 0 4px 12px rgba(40,179,162,0.08);
}

/* ------- HEADER, NAVIGATION, LOGO --------- */
header {
  background: #fff;
  box-shadow: 0 2px 12px #E3EBF1;
  padding: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
header img {
  height: 34px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  padding: 7px 10px;
  border-radius: 7px;
  color: #222D3B;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  background: none;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E3EBF1;
  color: #28B3A2;
}
.main-nav .btn-primary {
  padding: 7px 18px;
  color: #fff;
  background: #28B3A2;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(40,179,162,0.12);
}
.main-nav .btn-primary:hover, .main-nav .btn-primary:focus {
  background: #19a28f;
  color: #fff;
  box-shadow: 0 4px 16px rgba(40,179,162,0.16);
}

.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  font-size: 1.8rem;
  color: #222D3B;
  padding: 5px 12px;
  border-radius: 7px;
  margin-left: 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.17s;
  z-index: 1112;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E3EBF1;
  color: #28B3A2;
}

/* ------ MOBILE MENU STYLES ------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.30s cubic-bezier(.47,1.64,.41,.8);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  padding: 0 22px;
  justify-content: flex-start;
  align-items: flex-start;
  box-shadow: -4px 0 18px -5px #E3EBF1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #222D3B;
  font-size: 2.1rem;
  position: absolute;
  top: 22px;
  right: 32px;
  cursor: pointer;
  z-index: 1114;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #28B3A2; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 80px;
  width: 100%;
}
.mobile-nav a {
  color: #222d3b;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  padding: 15px 10px 13px 4px;
  border-radius: 8px;
  background: none;
  transition: background 0.15s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E3EBF1;
  color: #28B3A2;
}

@media (max-width: 1024px) {
  .main-nav { gap: 11px; }
}
@media (max-width: 890px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 891px) {
  .mobile-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* -------- CTA + BUTTONS + SOCIAL --------- */
.btn-primary,
button.btn-primary {
  background: #28B3A2;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 32px;
  border-radius: 10px;
  font-size: 1.10rem;
  border: none;
  box-shadow: 0 2px 8px rgba(40,179,162,0.10);
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.14s, color 0.14s, box-shadow 0.15s;
  outline: none;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #19a28f;
  color: #fff;
  box-shadow: 0 4px 16px rgba(40,179,162,0.18);
}
.btn-secondary {
  background: #222D3B;
  color: #fff;
  padding: 10px 26px;
  border-radius: 7px;
  font-weight: 600;
  transition: background 0.14s, color 0.14s;
  border: none;
}
.btn-secondary:hover, .btn-secondary:focus { background: #32425a; color: #fff; }

.newsletter-cta {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.social-links {
  display: flex; flex-direction: row; gap: 14px; align-items: center;
}
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%; background: #E3EBF1;
  transition: background 0.14s, box-shadow 0.13s;
}
.social-links a img {
  width: 21px; height: 21px;
}
.social-links a:hover, .social-links a:focus {
  background: #28B3A2;
  box-shadow: 0 2px 12px rgba(40,179,162,0.21);
}

/* ------- LISTS & TEXT BLOCKS ------- */
ul {
  margin-top: 8px;
  margin-bottom: 18px;
}
ul li {
  color: #222D3B;
  padding-left: 28px;
  position: relative;
  margin-bottom: 16px;
  word-break: break-word;
}
ul li strong { color: #222D3B; font-weight: 700; }
ul li:before {
  content: '';
  position: absolute;
  left: 8px; top: 13px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #28B3A2;
}
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.contact-details ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 0;
  font-size: 1.03rem;
  margin-bottom: 6px;
}
.contact-details ul li img {
  width: 22px;
  height: 22px;
  margin-right: 2px;
}
.contact-details p img { width: 22px; height: 22px; vertical-align: middle; margin-right: 7px; }

.text-section p {
  margin-bottom: 17px;
}

/* ------- FOOTER ------- */
footer {
  background: #fff;
  box-shadow: 0 -2px 12px #E3EBF1;
  margin-top: 80px;
}
.footer-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 20px 0;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #A6ADB7;
  font-size: 1rem;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus { color: #28B3A2; }
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  color: #222D3B;
  font-weight: 500;
}
.footer-brand img {
  height: 29px;
  width: auto;
}

/* -------- COOKIE BANNER --------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 16px #E3EBF1;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  padding: 25px 22px;
  z-index: 2000;
  transition: transform .33s cubic-bezier(.33,1,.68,1);
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner-message {
  flex: 1 1 auto;
  font-size: 1rem;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner button,
.cookie-banner .btn-secondary {
  padding: 8px 22px;
  font-size: 0.98rem;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s, color 0.14s, box-shadow 0.14s;
}
.cookie-banner .accept-all {
  background: #28B3A2; color: #fff;
}
.cookie-banner .accept-all:hover, .cookie-banner .accept-all:focus {
  background: #199e8c;
}
.cookie-banner .reject-all {
  background: #222D3B; color: #fff;
}
.cookie-banner .reject-all:hover, .cookie-banner .reject-all:focus {
  background: #34435d;
}
.cookie-banner .cookie-settings {
  background: #E3EBF1; color: #222D3B;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #28B3A2; color: #fff;
}

/* -------- COOKIE SETTINGS MODAL ---------- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,45,59,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2004;
}
.cookie-modal.open { display: flex; }
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 32px #E3EBF1;
  padding: 36px 28px;
  min-width: 310px;
  max-width: 97vw;
  font-size: 1.03rem;
  color: #222D3B;
  display: flex; flex-direction: column; gap: 20px;
}
.cookie-modal h2 {
  font-size: 1.22rem;
}
.cookie-category {
  display: flex; flex-direction: row; gap: 15px; align-items: center; margin-bottom: 7px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #28B3A2;
  width: 1.16em; height: 1.16em;
}
.cookie-category.essential label:after {
  content: " (Siempre activas)";
  color: #A6ADB7;
  font-size: 0.985em;
}
.cookie-modal-actions {
  display: flex; gap: 13px;
}
.cookie-modal-actions button { border: none; }

/* ------- RESPONSIVE: MOBILE-FIRST ------- */
@media (max-width: 1100px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 890px) {
  .container {
    max-width: 100%;
  }
}
@media (max-width: 860px) {
  .feature-grid, .newsletter-cta, .testimonial-list, .footer-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .feature-grid .feature-item { max-width: 100%; }
  .testimonial-card { max-width: 100%; min-width: unset; }
}
@media (max-width: 700px) {
  .footer-flex {
    flex-direction: column;
    gap: 22px;
    padding: 14px 0;
  }
  .footer-brand img { height: 24px; }
  .section { padding: 26px 7px; }
  .content-wrapper { padding: 0; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.44rem; margin-bottom: 13px; }
  h2 { font-size: 1.08rem; margin-bottom: 9px; }
  .card, .testimonial-card, .feature-item, .cookie-modal-content { padding: 13px 10px; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 16px; padding: 17px 7px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .newsletter-cta { flex-direction: column; align-items: stretch; gap: 12px; }
}

/* --------- MICRO-INTERACTIONS ----------- */
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.15s, background 0.13s, transform 0.13s;
}
.btn-primary, .btn-secondary {
  transition: background 0.14s, color 0.14s, box-shadow 0.13s;
}
footer, header {
  transition: box-shadow 0.14s;
}
:focus-visible {
  outline: 2px solid #28B3A2;
  outline-offset: 2px;
}

/* --------- PAGE SPECIFIC ------------ */
.contact-details { margin-top: 24px; margin-bottom: 26px; }
.text-section { margin-bottom: 22px; }

/* Hide outline for mouse-only interaction, keep for keyboard */
*:focus:not(:focus-visible) { outline: none; }

/* ----------- UTILITIES ------------ */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.gap-20 { gap: 20px !important; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }

/* ----------- PRINT SUPPORT --------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  .container, main, section { box-shadow: none !important; background: #fff !important; }
}
