/* RESET & BASE TYPOGRAPHY */
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;
  box-sizing: border-box;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFFFFF;
  color: #232425;
  line-height: 1.65;
  font-size: 16px;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: #004771;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F39200;
}
strong, b {
  font-weight: 700;
}

/* BRAND FONT SETTINGS */
h1, h2, h3, .btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; color: #004771; }
h2 { font-size: 2rem; margin-bottom: 20px; color: #004771; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
p, ul, ol, li { font-size: 1.06rem; }

/* CONTAINER & SPACING PATTERNS */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin-bottom: 40px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(0,71,113,0.05);
}

@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
    border-radius: 14px;
  }
  .content-wrapper {
    margin-bottom: 24px;
  }
}

/* HEADER & NAVIGATION */
header {
  background: #FFFFFF;
  border-bottom: 2px solid #E3EAF2;
  box-shadow: 0 2px 8px rgba(0,50,90,0.04);
  position: sticky;
  top: 0;
  z-index: 80;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #004771;
  font-weight: 500;
  font-size: 1.06rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F3F6F9;
  color: #F39200;
}
.main-nav .btn-primary {
  margin-left: 8px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #004771;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E3EAF2;
  color: #F39200;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,71,113, 0.97);
  z-index: 120;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.83,.02,.28,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 20px 0 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: #FFF;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F39200;
  color: #004771;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 40px 0 0 32px;
  gap: 24px;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 0;
  transition: color 0.17s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFD28A;
}

@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* HERO SECTION */
.hero {
  background: #E3EAF2;
  border-radius: 0 0 32px 32px;
  padding: 60px 0 54px 0;
  margin-bottom: 60px;
  box-shadow: 0 4px 36px rgba(244,173,51, 0.06);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero .content-wrapper {
  max-width: 520px;
  text-align: center;
  align-items: center;
  gap: 16px;
  display: flex;
  flex-direction: column;
}
.hero h1 {
  font-size: 2.5rem;
  color: #004771;
  margin-bottom: 18px;
}
.hero p {
  color: #232425;
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .hero {
    padding: 32px 0 24px 0;
    border-radius: 0 0 18px 18px;
    margin-bottom: 36px;
  }
  .hero .content-wrapper {
    padding: 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: #F39200;
  color: #FFF !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 13px 26px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 4px 20px rgba(243,146,0,0.13);
  cursor: pointer;
  outline: none;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #004771;
  color: #FFD28A !important;
  box-shadow: 0 8px 24px rgba(0,50,90,.15);
}

.btn-secondary {
  display: inline-block;
  background: #FFF;
  color: #004771 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #F39200;
  padding: 10px 24px;
  border-radius: 32px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
  margin-left: 12px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F39200;
  color: #FFF !important;
  border: 2px solid #004771;
}

/* CARD PATTERNS */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.features-grid > div {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(0,71,113,0.07);
  padding: 22px 18px 20px 18px;
  flex: 1 1 210px;
  min-width: 235px;
  max-width: 320px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.18s;
}
.features-grid > div:hover, .features-grid > div:focus {
  box-shadow: 0 6px 24px rgba(244,173,51,.13);
  transform: translateY(-2px) scale(1.013);
}
.features-grid h3 {
  margin-bottom: 2px;
}
.features-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}
.features-grid span {
  font-size: 1rem;
  color: #F39200;
  font-weight: bold;
}

@media (max-width: 950px) {
  .features-grid {
    gap: 18px;
  }
  .features-grid > div {
    min-width: 170px;
    padding: 18px 10px 16px 10px;
  }
}
@media (max-width: 600px) {
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 0px 10px rgba(0,50,90,.07);
  padding: 22px;
  min-width: 220px;
  flex: 1 1 220px;
}

/* Content grid for layouts (e.g., about page team section) */
.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,
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #FFF8F1;
  padding: 24px 28px;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(244,173,51,0.10);
  margin-bottom: 20px;
  color: #232425;
}
.testimonial-card p {
  font-size: 1.14rem;
  font-style: italic;
  color: #004771;
}
.testimonial-card strong, .testimonial-card span {
  color: #F39200;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .testimonial-card {
    padding: 15px 12px;
    border-radius: 14px;
  }
}

.review-summary {
  background: #FFF8F1;
  border-radius: 16px;
  padding: 18px 22px;
  color: #232425;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
  font-size: 1.1rem;
}
.stars {
  color: #F39200;
  font-size: 1.28em;
  letter-spacing: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* FAQS */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #F9FAFC;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,71,113,0.04);
  padding: 18px 20px;
  margin-bottom: 8px;
}
.faq-item h2 {
  font-size: 1.15rem;
  color: #004771;
  margin-bottom: 12px;
}
.faq-item p {
  font-size: 1.05rem;
  color: #232425;
}

/* FORMULÁRIOS */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
label {
  font-weight: 500;
  color: #004771;
  margin-bottom: 4px;
}
input, textarea {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 12px 16px;
  border: 1.5px solid #E3EAF2;
  border-radius: 14px;
  background: #FFF;
  color: #232425;
  transition: border 0.19s, box-shadow 0.19s;
  outline: none;
}
input:focus, textarea:focus {
  border-color: #F39200;
  box-shadow: 0 0 0 2px rgba(243,146,0,0.10);
}
textarea {
  min-height: 96px;
  max-width: 100%;
}
button[type="submit"] {
  align-self: flex-start;
  margin-top: 6px;
}

/* MAP/LOCATION PLACEHOLDER (on contactos.html) */
.map-placeholder {
  background: #E3EAF2;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  box-shadow: 0 2px 10px rgba(0,71,113,.04);
  margin-bottom: 16px;
}

/* FOOTER */
footer {
  background: #E3EAF2;
  color: #004771;
  margin-top: 48px;
  padding: 34px 0 18px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  max-width: 210px;
}
.footer-branding img {
  width: 56px;
  height: 56px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a, .footer-legal a {
  color: #004771;
  font-size: 1rem;
  transition: color 0.16s;
  padding: 4px 0;
  border-radius: 7px;
}
.footer-nav a:hover, .footer-nav a:focus, 
.footer-legal a:hover, .footer-legal a:focus {
  color: #F39200;
}
.footer-contact {
  color: #004771;
  font-size: 0.96rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF;
  color: #232425;
  box-shadow: 0 -2px 32px rgba(0,50,90,0.08);
  border-top: 3px solid #F39200;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  gap: 18px;
  animation: cookie-slide-up 0.45s cubic-bezier(.7,.12,.21,1);
}
@keyframes cookie-slide-up {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  margin-left: 8px;
  font-size: 1rem;
  padding: 8px 20px;
}
.cookie-banner .btn-secondary {
  background: #FFF;
  border: 2px solid #F39200;
  color: #F39200 !important;
  margin-left: 0;
}
.cookie-banner .btn-secondary:hover, .cookie-banner .btn-secondary:focus {
  background: #F39200;
  color: #FFF !important;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 10px;
    font-size: 1rem;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,50,90,0.68);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s ease;
  animation: fade-modal-bg 0.25s;
}
@keyframes fade-modal-bg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FFF;
  border-radius: 22px;
  box-shadow: 0 8px 48px rgba(0,50,90,0.20);
  padding: 36px 28px 24px 28px;
  max-width: 420px;
  width: calc(100vw - 28px);
  color: #232425;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scale-in 0.28s cubic-bezier(.7,.12,.21,1);
}
@keyframes scale-in {
  0% { transform: scale(0.87); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: #004771;
  margin-bottom: 14px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-option label {
  font-size: 1rem;
  color: #004771;
  font-weight: 500;
  margin-bottom: 0;
}
.cookie-switch {
  width: 38px;
  height: 21px;
  background: #E3EAF2;
  border-radius: 11px;
  position: relative;
  transition: background .18s;
  margin-left: 0;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-switch:before {
  content: '';
  position: absolute;
  top: 2px; left: 3px;
  width: 17px; height: 17px;
  background: #FFF;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,71,113,0.11);
  transition: transform 0.16s, background 0.16s;
}
.cookie-switch input:checked + .slider {
  background: #F39200;
}
.cookie-switch input:checked + .slider:before {
  background: #FFD28A;
  transform: translateX(16px);
}
.cookie-switch .slider {
  display: block;
  width: 38px;
  height: 21px;
  border-radius: 11px;
  background: #E3EAF2;
  position: relative;
  cursor: pointer;
}
.cookie-switch .slider:before {
  content: '';
  display: block;
  position: absolute;
  width: 17px;
  height: 17px;
  left: 2px;
  top: 2px;
  background: #FFF;
  border-radius: 50%;
  transition: transform 0.18s, background 0.18s;
}
.cookie-switch input:checked + .slider {
  background: #F39200;
}
.cookie-switch input:checked + .slider:before {
  background: #FFD28A;
  transform: translateX(16px);
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .btn-primary {
  padding: 8px 20px;
  font-size: 1rem;
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 14px 5px 10px 5px;
    border-radius: 16px;
    max-width: 99vw;
  }
}

/* EXTRA UTILS & VISUALS */
ul, ol {
  margin-bottom: 18px;
  padding-left: 22px;
  color: #232425;
}
ol {
  list-style-type: decimal;
}
ul {
  list-style-type: disc;
}
.section ul, .content-wrapper ul {
  margin-bottom: 18px;
  padding-left: 28px;
}
.section li, .content-wrapper li {
  margin-bottom: 7px;
}

hr {
  border: none;
  border-bottom: 1.5px solid #E3EAF2;
  margin: 24px 0;
}

/* VISUALS: ROUNDED, SHADOWS, HOVERS */
.section, .card, .features-grid > div, .faq-item, .testimonial-card, .review-summary {
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(0,71,113,0.06);
}
.btn-primary, .btn-secondary, input, textarea {
  border-radius: 32px/14px;
}
.btn-primary, .btn-secondary {
  box-shadow: 0 3px 12px rgba(243,146,0,0.09);
  transition: box-shadow 0.22s, transform 0.21s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.97);
}
input, textarea {
  box-shadow: 0 1px 4px rgba(0,71,113,.04);
}

/* FEATURE ITEM pattern */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

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

/* Responsive text scaling */
@media (max-width: 400px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.2rem; }
  .hero h1 { font-size: 1.33rem; }
}

/* Remove webkit tap highlight (for touch devices) */
* {
  -webkit-tap-highlight-color: rgba(243,146,0,0.10);
}

/* Hide elements visually but keep accessibility (for ARIA etc.) */
.visually-hidden {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  height: 1px !important; width: 1px !important;
  margin: -1px !important; overflow: hidden !important;
  padding: 0 !important; position: absolute !important;
}

/* SCROLLBAR STYLES (subtle) */
::-webkit-scrollbar { width: 10px; background: #E3EAF2; border-radius: 8px; }
::-webkit-scrollbar-thumb { background: #D1D8E0; border-radius: 8px; }

/* END */