/* ====================================
   SecredeFlo Minimalist Flexbox CSS
   ------------------------------------
   Brand: Creativo, educativo y moderno
   ==================================== */

/* ===== CSS RESET & NORMALIZATION ===== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #F7F7F5;
  color: #22304C;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  display: block;
  vertical-align: middle;
}
button, .btn-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  text-decoration: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
a:focus {
  outline: 2px solid #3CACBC;
  outline-offset: 2px;
}

/* ===== BRAND TYPOGRAPHY & HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #22304C;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  line-height: 1.14;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p {
  font-size: 1.125rem;
  margin-bottom: 18px;
  color: #22304C;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
}
ul li, ol li {
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.6;
}
strong {
  font-weight: 700;
}

/* ===== LAYOUT: HEADER, NAV, CONTAINER ===== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(34,48,76,.05);
  position: sticky;
  top: 0;
  z-index: 1001;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  min-height: 68px;
}
header img {
  height: 48px;
  margin-right: 20px;
}
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #22304C;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
header nav a:hover, header nav a[aria-current="page"] {
  background: #3CACBC18;
  color: #3CACBC;
}
.btn-primary {
  background: #22304C;
  color: #fff;
  border-radius: 30px;
  padding: 14px 36px;
  font-size: 1.06rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 18px -8px #22304c18;
  letter-spacing: 0;
  transition: background .2s, box-shadow .2s, color .2s;
  border: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #3CACBC;
  color: #fff;
  box-shadow: 0 6px 24px -8px #3cacbc22;
}

/* Hamburger Mobile Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #22304C;
  line-height: 1;
  padding: 8px;
  border-radius: 6px;
  transition: background .15s;
  z-index: 1102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #3CACBC11;
}

@media (max-width: 1024px) {
  header nav {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  header {
    padding: 0 10px;
  }
  header nav {
    display: none;
  }
  .btn-primary {
    padding: 12px 22px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ====================================
   MOBILE MENU (Slide In)
   ==================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.7,.25,.3,1);
  box-shadow: -6px 0 24px -8px #22304c18;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px 18px 24px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  color: #22304C;
  margin-bottom: 24px;
  margin-right: 2px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background .15s;
  z-index: 1202;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #3CACBC19;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: #22304C;
  padding: 12px 0;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #3CACBC13;
  color: #3CACBC;
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* Main container */
.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ====================================
   SECTIONS + HERO
   ==================================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.hero {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 28px -10px #22304c13;
  margin-bottom: 60px;
  padding: 56px 0 56px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
@media (max-width:768px) {
  section, .hero {
    padding: 28px 6px;
  }
  .hero .content-wrapper {
    align-items: stretch;
    text-align: left;
  }
}

/* ====================================
   CARDS & FLEX CONTAINERS
   ==================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0px 2px 12px rgba(34,48,76,0.08);
  padding: 32px 24px;
  min-width: 240px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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) {
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .card {
    width: 100%;
    min-width: unset;
  }
}

/* Feature List */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(34,48,76,0.05);
  padding: 20px;
  margin-bottom: 16px;
}

/* ====================================
   TESTIMONIALS, LISTS & INTERACTIVE
   ==================================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px -10px #22304c20;
  padding: 20px 28px;
  margin-bottom: 20px;
  max-width: 520px;
  color: #22304C;
  font-size: 1.12rem;
  line-height: 1.45;
}
.testimonial-card p {
  color: #22304C;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #3CACBC;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -.01em;
}
@media (max-width:520px) {
  .testimonial-card {
    padding: 16px 10px;
  }
}

/* Icon List Styles */
ul li img, ol li img {
  height: 26px;
  width: 26px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
  filter: grayscale(0%) contrast(1.15);
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border-radius: 8px;
}


/* ====================================
   CONTACT INFO, SOCIALS & FOOTER
   ==================================== */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #22304C;
  padding: 10px 0;
}
.contact-info img {
  width: 28px;
  height: 28px;
  filter: grayscale(0%) contrast(1.1);
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.social-links a {
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  transition: background .12s;
}
.social-links a:hover {
  background: #3CACBC18;
}
.social-links img {
  height: 28px;
  width: 28px;
}

footer {
  width: 100%;
  background: #fff;
  border-top: 1px solid #e7eae9;
  margin-top: 64px;
  padding: 40px 0 16px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 0;
  padding: 0;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}
footer nav a {
  color: #3CACBC;
  font-size: 1rem;
  transition: color .15s;
  border-radius: 5px;
  padding: 4px 0;
}
footer nav a:hover, footer nav a:focus {
  color: #22304C;
  background: #3CACBC11;
}
address {
  font-style: normal;
  color: #22304C;
  font-size: 1.08rem;
  margin-bottom: 10px;
}
footer small {
  display: block;
  text-align: center;
  color: #b3bbbe;
  font-size: 0.925rem;
  margin-top: 18px;
  letter-spacing: .01em;
}
@media (max-width: 768px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .contact-info {
    flex-direction: column;
    gap: 14px;
  }
}

/* ====================================
   FORM ELEMENTS (for potential forms)
   ==================================== */
input, textarea, select {
  border: 1px solid #dbe5e7;
  background: #fff;
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: border .15s;
  margin-bottom: 16px;
  width: 100%;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #22304C;
}
input:focus, textarea:focus, select:focus {
  border-color: #3CACBC;
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 1rem;
  color: #22304C;
}

/* ====================================
   INTERACTIVITY, HOVER & TRANSITIONS
   ==================================== */
section, .card, .testimonial-card, .feature-item {
  transition: box-shadow .22s cubic-bezier(.7,.25,.3,1), background .17s, border .14s;
}
.card:hover, .testimonial-card:hover, .feature-item:hover {
  box-shadow: 0 8px 40px -16px #22304c26;
  background: #F7F7F5;
}
.btn-primary {
  transition: background .18s, box-shadow .18s, color .18s;
}
.btn-primary:active {
  background: #222e40;
  color: #fff;
}
button:active {
  transform: scale(0.98);
}

/* ====================================
   COOKIE CONSENT BANNER & MODAL
   ==================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #e7eae9;
  box-shadow: 0 -2px 24px -8px #22304c10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 14px 22px 14px;
  z-index: 3000;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .3s, transform .3s;
  font-size: 1.05rem;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-banner .cookie-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 7px;
  color: #22304C;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 18px;
}
.cookie-consent-banner button, .cookie-consent-banner .btn {
  padding: 10px 24px;
  border-radius: 24px;
  border: none;
  background: #22304C;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0;
  margin-top: 0;
  transition: background .18s, color .18s;
}
.cookie-consent-banner button.btn-secondary {
  background: #F7F7F5;
  color: #22304C;
  border: 1px solid #3CACBC44;
}
.cookie-consent-banner button.btn-settings {
  background: #3CACBC;
  color: #fff;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: #3CACBC;
  color: #fff;
}
.cookie-consent-banner button.btn-secondary:hover, .cookie-consent-banner button.btn-secondary:focus {
  background: #e7eae9;
  color: #22304C;
}

/* MODAL Cookies */
.modal-cookie {
  position: fixed;
  z-index: 3500;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,48,76,.15);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .22s;
}
.modal-cookie.active {
  display: flex;
}
.modal-cookie .modal-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 48px -10px #22304c38;
  padding: 36px 28px;
  max-width: 420px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  animation: modalEnter .32s cubic-bezier(.7,.25,.3,1);
}
@keyframes modalEnter {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-cookie .modal-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.modal-cookie .modal-header h2 {
  font-size: 1.18rem;
  margin-bottom: 0;
  color: #22304C;
}
.modal-cookie-close {
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #22304C;
  cursor: pointer;
  margin-left: 12px;
  padding: 3px 6px;
  border-radius: 5px;
  transition: background .13s;
}
.modal-cookie-close:hover, .modal-cookie-close:focus {
  background: #3CACBC11;
}

.modal-cookie .cookie-category {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.modal-cookie .cookie-category label {
  font-size: 1.06rem;
  font-weight: 500;
  margin-bottom: 0;
  color: #22304C;
}
.modal-cookie .cookie-category input[type=checkbox]:disabled + label {
  color: #b3bbbe;
  cursor: not-allowed;
}
.modal-cookie .cookie-switch {
  margin-left: auto;
}
.modal-cookie .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

/* Switch style for toggles */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e7eae9;
  border-radius: 20px;
  transition: background .18s;
}
.cookie-switch input:checked + .slider {
  background: #3CACBC;
}
.cookie-switch .slider:before {
  content: "";
  position: absolute;
  left: 3px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s;
}
.cookie-switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* ====================================
   GENERAL SPACING & MINIMAL GAP RULES
   ==================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Layout responsive breakpoints */
@media (max-width: 1024px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .section, section, .hero {
    padding: 18px 4px;
    margin-bottom: 44px;
  }
  .card-container, .content-grid, .text-image-section, .feature-item {
    flex-direction: column;
    gap: 18px;
  }
}

/* ====================================
   MISC HELPERS
   ==================================== */
.hide, [hidden] {
  display: none !important;
}

/* ====================================
   SCROLLBAR & SELECTION (Minimalist)
   ==================================== */
::-webkit-scrollbar {
  width: 10px; background: #e7eae9;
}
::-webkit-scrollbar-thumb {
  background: #3CACBC22; border-radius: 8px;
}
::selection {
  background: #3CACBC33;
}

/* =================================== */
/* Animations (micro-interactions)     */
/* =================================== */
.btn-primary, .cookie-consent-banner button {
  transition: background .2s, color .2s, box-shadow .18s, transform .12s;
}
.btn-primary:active, .cookie-consent-banner button:active {
  transform: scale(.97);
  box-shadow: 0 4px 10px -6px #22304c18 !important;
}
