/* RESET & 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F2F5F7;
  color: #183153;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #183153;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol {
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 24px;
}
a {
  color: #FBB13C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #183153;
  text-decoration: underline;
}
strong {
  font-weight: bold;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* FLEX LAYOUTS (MANDATORY PATTERNS) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(24,49,83,0.06);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(24,49,83,0.10);
  position: relative;
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 7px 32px 0 rgba(24,49,83,0.17);
  transform: translateY(-4px) scale(1.015);
  z-index: 2;
}
.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) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F2F5F7;
  border-radius: 16px;
  padding: 24px 24px 20px 24px;
  box-shadow: 0 2px 12px rgba(24,49,83,0.06);
  color: #183153;
  max-width: 360px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.21s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(24,49,83, 0.11);
  transform: translateY(-4px) scale(1.008);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(24,49,83,0.06);
  padding: 18px 16px;
}

/* HEADER */
header {
  background: linear-gradient(90deg, #183153 0%, #3d5886 100%);
  padding: 0 0 3px 0;
  box-shadow: 0 2px 16px rgba(24,49,83,0.07);
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  padding: 7px 10px;
  border-radius: 24px;
  transition: background 0.19s, color 0.18s;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FBB13C;
  color: #183153;
  text-decoration: none;
}
.main-nav .btn-primary {
  margin-left: 12px;
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
  }
  header .container {
    height: 66px;
  }
  .logo img {
    height: 34px;
  }
}

/* PRIMARY BUTTON */
.btn-primary, .main-nav .btn-primary, .mobile-nav .btn-primary {
  background: linear-gradient(90deg, #FBB13C 0%, #ffd280 100%);
  color: #183153 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 11px 32px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.19s, box-shadow 0.21s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(251,177,60,0.04);
  display: inline-block;
  text-align: center;
  letter-spacing: 0.01em;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #ffd280 0%, #FBB13C 100%);
  box-shadow: 0 4px 22px rgba(251,177,60,0.17);
  transform: scale(1.04);
  color: #183153!important;
}

/* HAMBURGER MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  margin-left: 16px;
  z-index: 61;
  transition: background 0.19s, color 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #FBB13C;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(96deg,#183153 91%,#FBB13C 100%);
  color: #fff;
  z-index: 90;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 36px 28px 36px;
  box-shadow: 0 2px 18px rgba(24,49,83,0.18);
  transform: translateX(-100%);
  transition: transform 0.39s cubic-bezier(.62,.01,.23,1.02), opacity 0.31s;
  opacity: 0;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 19px;
  right: 14px;
  background: none;
  border: none;
  color: #FBB13C;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 91;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 14px 4px;
  border-radius: 15px;
  transition: background 0.15s, color 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #FBB13C;
  color: #183153;
  text-decoration: none;
}
.mobile-nav .btn-primary {
  background: #fff;
  color: #183153!important;
  margin-top: 18px;
}

@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 500px) {
  .mobile-menu {
    padding: 38px 9vw 18px 9vw;
  }
}

/* HERO */
.hero {
  background:
    linear-gradient(120deg, #F2F5F7 52%, #FBB13C 153%);
  display: flex;
  align-items: center;
  min-height: 340px;
  padding: 54px 0 44px 0;
  margin-bottom: 40px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: #183153;
  font-weight: 800;
  font-size: 2.5rem;
}
.hero p {
  max-width: 640px;
  font-size: 1.18rem;
  margin-bottom: 24px;
  color: #22405A;
}
.hero .btn-primary {
  font-size: 1.16rem;
  padding: 14px 40px;
}

@media (max-width: 768px) {
  .hero {
    padding: 36px 0;
    min-height: 195px;
    margin-bottom: 26px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}

/** FEATURES GRID **/
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
}
.features-grid > div {
  background: #fff;
  border-radius: 16px;
  flex: 1 1 260px;
  min-width: 222px;
  padding: 32px 22px 20px 22px;
  box-shadow: 0 2px 16px rgba(24,49,83,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.features-grid > div:hover {
  box-shadow: 0 5px 30px 0 rgba(24,49,83,0.14);
  transform: scale(1.03);
}
.features-grid img {
  height: 42px;
  margin-bottom: 13px;
}
.features-grid h3 {
  margin-bottom: 7px;
  font-size: 1.14rem;
  color: #183153;
  font-weight: 600;
}
.features-grid p {
  color: #42546E;
  font-size: 0.98rem;
}
@media (max-width:900px) {
  .features-grid {
    gap: 15px;
  }
  .features-grid > div {
    min-width: 177px;
    padding: 23px 11px 14px 11px;
  }
}
@media (max-width:600px) {
  .features-grid {
    flex-direction: column;
    gap: 12px;
  }
  .features-grid > div {
    width: 100%;
    min-width: unset;
    padding: 15px 7px 10px 7px;
  }
}

/** SERVICE TEASERS GRID **/
.service-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.service-teasers > div {
  background: #fff;
  flex: 1 1 260px;
  min-width: 210px;
  border-radius: 16px;
  box-shadow: 0 1px 10px rgba(24,49,83,0.06);
  padding: 26px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.19s, transform 0.14s;
}
.service-teasers > div:hover {
  box-shadow: 0 4px 18px 0 rgba(251,177,60,0.18);
  transform: scale(1.025);
}
.service-teasers h3 {
  margin-bottom: 7px;
  font-size: 1.18rem;
}
.service-teasers p {
  font-size: 0.97rem;
  margin-bottom: 10px;
  color: #42546E;
}
.service-teasers a {
  color: #FBB13C;
  font-size: 0.98rem;
  text-decoration: underline;
}
.service-teasers a:hover {
  color: #183153;
  text-decoration: underline;
}
@media (max-width:700px) {
  .service-teasers {
    flex-direction: column;
    gap: 12px;
  }
  .service-teasers > div {
    width: 100%;
    min-width: unset;
    padding: 13px 7px 8px 7px;
  }
}


/**** TESTIMONIALS ****/
.testimonials-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 10px;
}
@media (max-width:900px) {
  .testimonials-preview {
    gap: 16px;
  }
  .testimonial-card {
    max-width: unset;
  }
}
@media (max-width:600px) {
  .testimonials-preview {
    flex-direction: column;
    gap: 12px;
  }
}

.testimonial-card p {
  font-size: 1rem;
  color: #183153;
}
.testimonial-card span {
  font-size: 0.94rem;
  color: #22405A;
}
.testimonial-card img[alt="5 estrellas"] {
  height: 20px;
  display: inline;
}
.testimonial-card div {
  display: flex;
  gap: 3px;
}

/**** PRESS MENTIONS ****/
.press-mentions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.press-mentions > div {
  background: #fff;
  box-shadow: 0 1px 10px rgba(24,49,83,0.08);
  border-radius: 13px;
  padding: 20px 17px 15px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
  min-width: 200px;
  max-width: 340px;
}
.press-mentions blockquote {
  color: #183153;
  font-size: 1rem;
  line-height: 1.3;
  font-style: italic;
}
.press-mentions span {
  color: #42546E;
  font-size: 0.95rem;
}
.press-mentions img {
  height: 32px;
  margin-bottom: 4px;
}
@media (max-width: 700px) {
  .press-mentions {
    flex-direction: column;
    gap: 12px;
  }
}

/**** PRICING TABLE ****/
.pricing-table {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 18px;
}
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 1rem;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(24,49,83, 0.09);
  min-width: 540px;
}
.pricing-table th, .pricing-table td {
  padding: 16px 17px;
  text-align: left;
}
.pricing-table thead {
  background: #FBB13C;
}
.pricing-table th {
  color: #183153;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  border-bottom: 2px solid #f2e2ba;
}
.pricing-table td {
  border-bottom: 1px solid #F2F5F7;
  color: #22405A;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 700px) {
  .pricing-table table {
    min-width: 320px;
    font-size: 0.95rem;
  }
  .pricing-table th, .pricing-table td {
    padding: 8px 7px;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-list > div {
  background: #fff;
  border-radius: 10px;
  padding: 16px 13px;
  box-shadow: 0 1px 10px rgba(24,49,83,0.06);
  color: #183153;
}

/**** TEXT SECTION ****/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.location-map {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #F2F5F7;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 13px 0;
  font-size: 0.98rem;
}
.location-map img {
  height: 32px;
}

/**** FOOTER ****/
footer {
  background: linear-gradient(100deg,#183153 70%,#3d5886 100%);
  color: #fff;
  padding: 54px 0 26px 0;
  margin-top: 64px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
  font-family: 'Roboto', Arial, sans-serif;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  max-width: 261px;
}
.footer-brand img {
  height: 44px;
}
.footer-brand p {
  font-size: 1rem;
  color: #f3e8d6;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #ffd280;
  font-size: 1rem;
  text-decoration: underline;
  transition: color 0.18s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
}
.footer-contact p {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.98rem;
}
.footer-contact img {
  height: 18px;
  width: auto;
}
@media (max-width:900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}


/**** COOKIE CONSENT BANNER & MODAL ****/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 120;
  background: #fff;
  color: #183153;
  box-shadow: 0 -4px 21px 0 rgba(24,49,83,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 1rem;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transition: transform 0.28s, opacity 0.31s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner .cookie-message {
  flex: 1 1 300px;
  margin-right: 10px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}
.cookie-action {
  border-radius: 22px;
  padding: 10px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.15s, color 0.14s, box-shadow 0.12s;
}
.cookie-action.accept {
  background: #FBB13C;
  color: #183153;
  box-shadow: 0 1px 8px rgba(251,177,60,0.06);
}
.cookie-action.accept:hover, .cookie-action.accept:focus {
  background: #ffd280;
  color: #183153;
}
.cookie-action.reject {
  background: #f2f5f7;
  color: #183153;
}
.cookie-action.reject:hover, .cookie-action.reject:focus {
  background: #dedfe2;
}
.cookie-action.settings {
  background: none;
  color: #183153;
  border: 2px solid #FBB13C;
}
.cookie-action.settings:hover, .cookie-action.settings:focus {
  background: #FBB13C;
  color: #183153;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 7px;
    gap: 15px;
    font-size: 0.98rem;
    border-radius: 0;
  }
  .cookie-banner .cookie-message {
    font-size: 0.98rem;
    margin-right: 0;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    gap: 7px;
    justify-content: stretch;
  }
}

.cookie-modal-overlay {
  position:fixed;
  inset:0;
  z-index:140;
  background:rgba(24,49,83,0.35);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.show {
  display: flex;
  animation: fadeInCookieModal 0.30s;
}
@keyframes fadeInCookieModal {
  from {opacity:0;}
  to {opacity:1;}
}
.cookie-modal {
  background:#fff;
  border-radius: 18px;
  max-width: 440px;
  width: 96vw;
  box-shadow:0 4px 30px rgba(24,49,83,0.19);
  padding:32px 28px 28px 28px;
  color:#183153;
  display: flex;
  flex-direction:column;
  gap:22px;
  position:relative;
  animation: modalAppear 0.32s cubic-bezier(.64,.32,.23,1.08);
}
@keyframes modalAppear {
  from { transform: translateY(50px) scale(0.93); opacity:0; }
  to   { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 15px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #183153;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #FBB13C;
}
.cookie-modal h2 {
  margin-bottom: 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.31rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-switch {
  width: 42px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #dedfe2;
  border-radius: 22px;
  transition: background 0.22s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #FBB13C;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.cookie-category[data-essential="true"] .cookie-switch {
  opacity: 0.55;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 10px;
  justify-content: flex-end;
}

/**** OTHER ELEMENTS ****/
.content-wrapper {
  width: 100%;
}

/* Table (for privacy/terms) */
table {
  width:100%;
  border-collapse:collapse;
}
th, td {
  padding: 8px 10px;
}
th {
  background: #FBB13C;
  color: #183153;
}
td {
  color: #22405A;
  background: #fff;
}

/* Misc lists */
li {
  margin-bottom: 8px;
}

/* Responsive Heading Scale */
@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.18rem; }
  h3, h4, h5, h6 { font-size: 1.05rem; }
  .footer-brand img { height: 31px; }
}

/**** UTILITIES ****/
.mt-2 {margin-top: 16px;}
.mb-1 {margin-bottom: 8px;}
.mb-2 {margin-bottom: 16px;}
.mb-3 {margin-bottom: 24px;}
.gap-2 {gap: 16px;}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .btn-primary, .main-nav a, .mobile-nav a, .testimonial-card, .features-grid > div, .service-teasers > div, .card {
    transition-duration: 0.18s,0.23s !important;
    transition-property: background, box-shadow, color, transform;
  }
}

/* Scrollbar styling for consistency */
::-webkit-scrollbar {
  width: 7px; background: #dedfe2;
}
::-webkit-scrollbar-thumb {
  background: #3d5886; border-radius: 8px;
}

/* Hide outline for mouse users but keep it for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #FBB13C;
  outline-offset: 1.5px;
}

/* Accessibility: ensure color contrast is high enough */
@media (max-width: 400px) {
  .footer-contact, .cookie-banner {
    font-size: 0.89rem;
  }
}
