/* =============================================================
   Scandinavian Clean Style CSS for Sunbeam Viajes Expertos
   ============================================================= */

/* ============ CSS RESET & BASE ============ */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #253142;
  background: #f7fafc;
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
a {
  color: #154A72;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #FECD44;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* Typography scale (mobile first) */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #154A72;
  line-height: 1.18;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #154A72;
  line-height: 1.24;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #32546D;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #32546D;
}
.subheadline {
  font-size: 1.075rem;
  color: #466276;
  font-weight: 400;
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 600;
}

/* ============ LAYOUT CONTAINERS ============ */
.container {
  width: 100%;
  max-width: 1016px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(90,110,130,0.06);
}

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

/* ============ FLEXBOX GRID ============ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #F4F7FA;
  flex: 1 1 180px;
  min-width: 220px;
  max-width: 340px;
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(90,110,130,0.04);
  padding: 26px 16px 18px 16px;
  transition: box-shadow 0.18s, transform 0.18s;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.feature-grid > div:hover {
  box-shadow: 0 2px 16px 2px rgba(21,74,114,0.13);
  transform: translateY(-3px) scale(1.03);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
/* Cards container (not used directly but provided) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #f9fafb;
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(90,110,130,0.04);
  padding: 24px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 2px 16px 2px rgba(21,74,114,0.10);
  transform: translateY(-2px);
}
.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;
}
.testimonials {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  min-width: 260px;
  max-width: 350px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E2E7EE;
  box-shadow: 0 1px 10px 0 rgba(21,74,114,0.06);
  margin-bottom: 20px;
  font-size: 1rem;
}
.testimonial-card p {
  color: #234055;
}
.testimonial-card .star-rating {
  color: #FECD44;
  font-size: 1.2rem;
  margin-bottom: -6px;
  letter-spacing: 3px;
}
/* Feature items when listed in other sections */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

/* ============ HEADER & NAV ============ */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(38, 60, 80, 0.05);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 18px;
}
header img {
  height: 44px;
  width: auto;
}
.desktop-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.desktop-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #32546D;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.desktop-nav a:after {
  content: '';
  display: block;
  width: 0;
  border-bottom: 2px solid #FECD44;
  transition: width 0.2s;
}
.desktop-nav a:hover:after,
.desktop-nav a:focus:after {
  width: 100%;
}
.desktop-nav a:hover,
.desktop-nav a:focus {
  color: #154A72;
}

.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  background: #FECD44;
  color: #154A72;
  border: none;
  border-radius: 32px;
  padding: 12px 28px;
  box-shadow: 0 2px 16px 0 rgba(254,205,68,0.09);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
  margin-left: 16px;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #FFD96F;
  color: #0e3552;
  box-shadow: 0 4px 18px 0 rgba(254,205,68,0.15);
  transform: translateY(-2px) scale(1.04);
  text-decoration: none;
}

/* ============ MOBILE NAVIGATION ============ */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #154A72;
  cursor: pointer;
  margin-left: 8px;
  z-index: 105;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #FECD44;
  background: #e5ecf3;
  border-radius: 50%;
}
.mobile-menu {
  position: fixed;
  background: #fff;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  box-shadow: 0 5px 32px 0 rgba(18,39,64,0.14);
  transition: transform 0.28s cubic-bezier(.88,.01,.24,1.05);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #154A72;
  padding: 22px 22px 10px 0;
  cursor: pointer;
  z-index: 201;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #FECD44;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding-top: 18px;
  gap: 8px;
  margin-left: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  color: #154A72;
  font-weight: 500;
  padding: 12px 0 10px 4px;
  display: block;
  width: 100%;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FECD44;
  color: #154A72;
  outline: none;
}
.desktop-nav,
.cta-btn {
  display: none;
}

@media (min-width: 861px) {
  .desktop-nav, .cta-btn {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ============ MAIN, SECTIONS ============ */
main {
  margin-top: 12px;
  margin-bottom: 36px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  border-radius: 20px;
}

/* FAQ Style in Text Section */
.text-section h3 {
  color: #154A72;
  margin-top: 14px;
  margin-bottom: 8px;
}
.text-section ul li {
  margin-bottom: 9px;
}
.text-section ul {
  margin-bottom: 18px;
}

/* ============ BUTTONS & INTERACTION ============ */
button, .cta-btn {
  cursor: pointer;
  user-select: none;
  appearance: none;
  border: none;
}
button:active, .cta-btn:active {
  transform: translateY(2px);
}

/* ============ FOOTER ============ */
footer {
  width: 100%;
  padding: 28px 0 16px 0;
  background: #f5f9fc;
  border-top: 1px solid #e5eef7;
  margin-top: 32px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: center;
  justify-content: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: center;
}
.footer-links a {
  color: #32546D;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.99rem;
  font-weight: 500;
  transition: color 0.16s;
}
.footer-links a:hover,
.footer-links a:focus {
  color: #FECD44;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #566b7b;
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.footer-brand img {
  height: 23px;
}

/* ============ TRUST BADGES (Contacto) ============ */
.trust-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 1rem;
  color: #154A72;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.trust-badges img {
  height: 26px;
  width: 26px;
  border-radius: 0;
}

/* ============ COOKIE BANNER & MODAL ============ */
.cookie-banner {
  position: fixed;
  width: 100%;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 -2px 18px 0 rgba(21,74,114,0.09);
  padding: 26px 12px 20px 12px;
  gap: 24px;
  font-size: 1rem;
  transition: transform 0.33s cubic-bezier(.81,0,.22,1), opacity 0.25s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120px);
}
.cookie-banner p {
  flex: 1 1 auto;
  color: #253142;
  font-size: 1rem;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 25px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: #f5f6fa;
  color: #234055;
  transition: background 0.16s, color 0.16s, box-shadow 0.13s;
  box-shadow: 0 1px 4px rgba(90,110,130,0.05);
}
.cookie-btn.accept {
  background: #FECD44;
  color: #154A72;
}
.cookie-btn.accept:hover { background: #FFD96F; color: #0e3552; }
.cookie-btn.reject {
  background: #eff4fa;
  color: #154A72;
  border: 1px solid #e0e8f0;
}
.cookie-btn.reject:hover { background: #e0e6ed; color: #234055; }
.cookie-btn.settings {
  background: transparent;
  color: #32546D;
  border: 1px solid #d4e4f7;
}
.cookie-btn.settings:hover { background: #F4F7FA; color: #154A72; }

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21,74,114,0.30);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 28px 2px rgba(21,74,114,0.17);
  padding: 36px 30px 26px 30px;
  min-width: 320px;
  max-width: 390px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: #154A72;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 7px;
  color: #154A72;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-category label {
  font-size: 1rem;
  color: #234055;
}
.cookie-category input[type='checkbox'] {
  accent-color: #FECD44;
}
.cookie-footer-modal {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ================= RESPONSIVE DESIGN ================== */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 980px) {
  .feature-grid > div {
    max-width: 47vw;
    min-width: 160px;
  }
  .testimonials {
    gap: 18px;
  }
}
@media (max-width: 860px) {
  .content-wrapper, .text-section, .content-grid, .feature-grid, .testimonials {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .feature-grid > div, .testimonial-card {
    max-width: 100%;
    min-width: unset;
  }
  section, .section {
    padding: 28px 6px;
    margin-bottom: 38px;
    border-radius: 14px;
  }
  .testimonial-card {
    padding: 16px 10px;
  }
  main {
    margin-bottom: 20px;
  }
  header .container {
    min-height: 54px;
  }
  .footer-links {
    gap: 16px;
    font-size: 0.91rem;
  }
}
@media (max-width: 680px) {
  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.03rem;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .feature-grid > div,
  .testimonial-card {
    padding: 14px 7px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 3vw 13px 3vw;
    gap: 14px;
    font-size: 0.97rem;
  }
}
@media (max-width: 768px) {
  .section,
  section {
    padding: 26px 0;
    margin-bottom: 32px;
  }
  .feature-grid,
  .content-wrapper,
  .content-grid,
  .testimonials,
  .text-image-section {
    flex-direction: column !important;
    gap: 15px;
    align-items: stretch !important;
  }
  .testimonial-card {
    padding: 16px 10px;
    min-width: unset;
    max-width: 100%;
  }
  .card {
    padding: 12px;
  }
  .desktop-nav,
  .cta-btn {
    display: none !important;
  }
  main {
    margin-top: 8px;
    margin-bottom: 12px;
  }
  .footer-links {
    gap: 10px;
  }
  .footer-brand span {
    font-size: 0.95rem;
  }
}
@media (max-width: 400px) {
  .cookie-modal {
    padding: 16px 4vw 18px 4vw;
  }
  .cookie-btn {
    font-size: 0.98rem;
    padding: 7px 12px;
  }
}

/* ================== ACCESSIBILITY, FOCUS & UTILITY ================ */
:focus {
  outline: 2px solid #FECD44 !important;
  outline-offset: 1px;
}
[tabindex]:focus {
  outline: 2px solid #FECD44 !important;
}
::-webkit-scrollbar {
  width: 10px;
  background: #e9f3fa;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #d6e2f2;
  border-radius: 8px;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px);}
  to { opacity: 1; transform: translateY(0); }
}
.testimonial-card {
  animation: fadeUp 0.7s cubic-bezier(.6,0,.3,1.0);
}
.feature-grid > div {
  animation: fadeUp 0.5s cubic-bezier(.6,0,.3,1.0);
}
.cookie-banner,
.cookie-modal {
  animation: fadeUp 0.3s ease;
}

/* ================= SPECIAL UTIL CLASSES (if any) ================= */
.hide { display: none !important; visibility: hidden !important; }
.visible { display: block !important; }

/***************** END OF STYLE.CSS *****************/
