/* Reset & Normalize: Box sizing and typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #f7faff;
  color: #23475C;
  min-height: 100vh;
  line-height: 1.6;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #23475C;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #F7C954;
  outline: none;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35,71,92,0.04);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 14px 10px;
  border-bottom: 1px solid #E3E9EF;
  text-align: left;
}
th {
  background: #23475C;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; color: #23475C; margin-bottom: 16px; }
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; margin-bottom: 8px; }
h5 { font-size: 1rem; }
p, ul, ol { font-size: 1rem; margin-bottom: 12px; }
strong { font-weight: 700; }

/* Container and Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  background: none;
}

/* Header Layout */
header {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(35,71,92,0.06);
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img, .footer-logo img { height: 42px; }

/* Main Nav */
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #23475C;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F7C954;
}
.btn-primary {
  background: #23475C;
  color: #fff;
  padding: 12px 26px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 rgba(35,71,92,0.10);
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  margin-left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1c3a49;
  color: #F7C954;
  box-shadow: 0 4px 20px 0 rgba(35,71,92,0.14);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #23475C;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  margin-left: 18px;
  z-index: 130;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #F7C954;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,71,92, 0.98);
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.78,.14,.15,.86);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 120;
  padding-top: 32px;
  padding-left: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 0 24px 16px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F7C954;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw;
  padding: 24px 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.28rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 14px 0;
  border-radius: 6px;
  transition: background 0.20s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F7C954;
  color: #23475C;
}

/* Hide main-nav, show hamburger on mobile */
@media (max-width: 1024px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* GLOBAL FLEX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(35,71,92,0.08);
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(35,71,92,0.14);
  transform: translateY(-2px) scale(1.01);
}
.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;
    align-items: flex-start;
    gap: 20px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* BUTTONS */
.btn-secondary {
  background: #F7C954;
  color: #23475C;
  border: none;
  outline: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.18s;
  margin-left: 8px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #FFE69A;
  color: #1c3a49;
}
.btn-white {
  background: #fff;
  color: #23475C;
  border: 2px solid #23475C;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  margin-left: 8px;
}
.btn-white:hover, .btn-white:focus {
  background: #23475C;
  color: #fff;
}

/* HERO SECTION */
.hero-section {
  padding: 56px 0 36px 0;
  background: #F5F5F5;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(35,71,92,0.04);
  text-align: left;
  margin-bottom: 36px;
}
.hero-section h1 {
  color: #23475C;
}
@media (max-width: 600px) {
  .hero-section {
    padding: 32px 0 18px 0;
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
}

/* FEATURES SECTION */
.features-section h2 {
  margin-bottom: 28px;
  color: #23475C;
}
.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature, .service {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(35,71,92,0.07);
  flex: 1 1 220px;
  min-width: 240px;
  max-width: 340px;
  padding: 36px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.13s;
  border: 1px solid #e3e9ef;
}
.feature img, .service img {
  height: 48px;
  margin-bottom: 14px;
}
.feature h3, .service h3 {
  font-size: 1.14rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #23475C;
}
.feature:hover, .service:hover {
  box-shadow: 0 6px 24px 0 rgba(35,71,92,0.13);
  border-color: #F7C954;
}
@media (max-width: 840px) {
  .feature-grid, .service-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* TESTIMONIALS */
.testimonials-section, .testimonial-preview {
  padding: 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 18px 0 rgba(35,71,92,0.10);
  margin-bottom: 20px;
  border: 1px solid #E3E9EF;
  position: relative;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 30px 0 rgba(35,71,92,0.16);
  border-color: #F7C954;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #23475C;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #23475C;
}
.star-rating, .star-rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.star-rating img, .star-rating-summary img {
  height: 22px;
}
.star-rating-summary span {
  color: #23475C;
  font-weight: 500;
  margin-left: 3px;
  font-size: 1.05rem;
}

/* CTA SECTION */
.cta-section {
  background: #23475C;
  color: #fff;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 18px 0 rgba(35,71,92,0.04);
  padding: 56px 20px 40px 20px;
}
.cta-section h2, .cta-section p {
  color: #fff;
}
.cta-section a.btn-primary {
  background: #F7C954;
  color: #23475C;
  margin-top: 26px;
}
.cta-section a.btn-primary:hover, .cta-section a.btn-primary:focus {
  background: #FFE69A;
  color: #1c3a49;
}
@media (max-width: 700px) {
  .cta-section { padding: 32px 10px 28px 10px; }
}

/* ABOUT, LEGAL, THANK YOU, FAQ SECTIONS */
.text-section, .about-section, .values-section, .why-us-section, .legal-section, .thank-you-section, .faq-section, .faq-list {
  background: #fff;
  padding: 34px 22px;
  border-radius: 10px;
  margin-bottom: 28px;
  box-shadow: 0 2px 14px 0 rgba(35,71,92,0.09);
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 1rem;
}
.about-section h1, .about-section h2, .about-section h3,
.values-section h2, .why-us-section h2, .legal-section h1 {
  margin-bottom: 8px;
}
.faq-item {
  background: #f9fafb;
  padding: 20px 20px 12px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(35,71,92,0.04);
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item h3 {
  font-size: 1.05rem;
  color: #23475C;
  margin-bottom: 6px;
}
.faq-item p {
  color: #435967;
}
.faq-contact-prompt {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #E3E9EF;
  font-size: 1rem;
  color: #23475C;
}
.faq-contact-prompt a {
  color: #F7C954;
  font-weight: 600;
  margin-left: 8px;
}

/* CONTACT SECTION */
.contact-section {
  background: #fff;
  padding: 34px 22px;
  border-radius: 10px;
  box-shadow: 0 2px 14px 0 rgba(35,71,92,0.09);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details img {
  vertical-align: middle;
  height: 19px;
  margin-right: 6px;
}
.map-location {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.map-location img {
  height: 38px;
}

/* STEPS/PROCESS SECTION */
.steps-section ol {
  list-style: decimal inside;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 0;
  margin-bottom: 0;
}
.steps-section ol li {
  background: #F5F5F5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  font-size: 1rem;
  margin-bottom: 0;
  box-shadow: 0 1px 5px 0 rgba(35,71,92,0.05);
}
.steps-section ol li img {
  height: 32px;
}
.proceso-benefits-section ul {
  margin-bottom: 18px;
}

/* FOOTER */
footer {
  background: #23475C;
  color: #fff;
  padding: 0;
  margin-top: 60px;
  box-shadow: 0 -2px 18px 0 rgba(35,71,92,0.07);
}
footer .container {
  padding: 30px 20px 8px 20px;
  flex-direction: column;
}
.footer-main {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-logo img {
  height: 34px;
  margin-bottom: 16px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #F7C954;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact img {
  height: 17px;
  margin-right: 5px;
  vertical-align: middle;
}
.footer-contact a {
  color: #F7C954;
  transition: color 0.14s;
}
.footer-contact a:hover, .footer-contact a:focus {
  text-decoration: underline;
  color: #FFE69A;
}
.footer-legal {
  margin-top: 26px;
  text-align: center;
  font-size: 0.92rem;
  opacity: 0.93;
  color: #BFD5E1;
}

@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-contact {
    margin-bottom: 16px;
  }
}

/* RESPONSIVENESS */
@media (max-width: 600px) {
  .container, .section, .text-section, .about-section, .legal-section, .faq-section, .cta-section {
    padding-left: 6px;
    padding-right: 6px;
  }
  .footer-legal {
    padding: 0 5px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #23475C;
  color: #fff;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 -4px 24px 0 rgba(35,71,92,0.22);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 5000;
  font-size: 1rem;
  animation: cookieBannerEnter 0.48s cubic-bezier(.7,.2,.25,1);
}
@keyframes cookieBannerEnter {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-message {
  flex: 2 1 0px;
  max-width: 650px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  outline: none;
  padding: 10px 18px;
  cursor: pointer;
  margin: 0 2px;
  box-shadow: 0 1px 7px rgba(35,71,92,0.08);
  transition: background 0.12s, color 0.14s, box-shadow 0.13s;
}
.cookie-consent-banner .cookie-accept {
  background: #F7C954;
  color: #23475C;
  font-weight: 700;
}
.cookie-consent-banner .cookie-accept:hover, .cookie-consent-banner .cookie-accept:focus {
  background: #FFE69A;
}
.cookie-consent-banner .cookie-reject {
  background: #fff;
  color: #23475C;
  font-weight: 600;
}
.cookie-consent-banner .cookie-reject:hover, .cookie-consent-banner .cookie-reject:focus {
  background: #E3E9EF;
  color: #1c3a49;
}
.cookie-consent-banner .cookie-settings {
  background: #23475C;
  color: #F7C954;
  border: 2px solid #F7C954;
  font-weight: 600;
}
.cookie-consent-banner .cookie-settings:hover, .cookie-consent-banner .cookie-settings:focus {
  background: #fff;
  color: #23475C;
}

@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 23px 12px 18px 12px;
    gap: 17px;
  }
  .cookie-consent-banner .cookie-actions {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .cookie-consent-banner .cookie-message {
    max-width: 99vw;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 7000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(35,71,92,0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalAppear 0.40s cubic-bezier(.7,.2,.25,1);
}
@keyframes cookieModalAppear { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  color: #23475C;
  border-radius: 12px;
  max-width: 420px;
  width: 94vw;
  box-shadow: 0 10px 40px 0 rgba(35,71,92,0.22);
  padding: 32px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal h3 {
  margin-top: 0;
  font-size: 1.4rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  background: none;
  border: none;
  color: #23475C;
  font-size: 1.5rem;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #F7C954; }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F5F5F5;
  border-radius: 8px;
  padding: 13px 18px;
}
.cookie-category input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #23475C;
}
.cookie-category label {
  font-size: 1rem;
  color: #23475C;
  font-weight: 600;
  margin-left: 2px;
}
.cookie-category .category-desc {
  color: #6c7b88;
  font-size: 0.98rem;
  margin-left: 6px;
}
.cookie-category.essential label::after {
  content: ' (Siempre activas)';
  font-size: 0.94em;
  color: #9bb1c1;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 8px;
  justify-content: flex-end;
}
@media (max-width: 500px) {
  .cookie-modal { padding: 20px 6px 14px 6px; }
}

/* Miscellaneous Utility Classes */
.mute { color: #91a9b8; }
.bg-accent { background: #F5F5F5; }
.rounded { border-radius: 10px; }
.shadow { box-shadow: 0 2px 14px 0 rgba(35,71,92,0.07); }

/* Accessibility focus styles */
a:focus, button:focus, input:focus {
  outline: 2px dashed #F7C954;
  outline-offset: 2px;
}

/* Hide visually */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* Remove unwanted margin for last items */
.about-section ul, .faq-list, .service-list, .feature-grid, .contact-details, .footer-menu, .footer-contact {
  margin-bottom: 0;
}

/* Prevent overlapping */
.card, .feature, .service, .testimonial-card, .faq-item, .steps-section ol li, .cookie-modal, .cookie-category {
  z-index: 1;
}

/* Overlap protection via adequate spacing */
.card + .card,
.feature + .feature,
.service + .service,
.testimonial-card + .testimonial-card,
.faq-item + .faq-item {
  margin-top: 20px;
}

@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }
  .feature, .service { max-width: 100%; min-width: 0; padding: 24px 14px; }
  .text-section, .about-section, .legal-section, .faq-section, .cta-section {
    padding: 18px 6px;
  }
}
