/* CSS RESET & NORMALIZATION */
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,
main, 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 {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #314455;
  background: #F6F7EB;
  line-height: 1.6;
  overflow-x: hidden;
}
:root {
  --primary: #247BA0;
  --primary-dark: #1A5572;
  --secondary: #314455;
  --accent: #F6F7EB;
  --success: #00C7B7;
  --warning: #FFB700;
  --danger: #F25F5C;
  --headers: 'Montserrat', Arial, sans-serif;
  --body: 'Roboto', Arial, sans-serif;
}

/*---------------------- GENERAL TYPOGRAPHY ----------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--headers);
  color: var(--primary);
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: .01em;
}
h1 {
  font-size: 2.1rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p, ul, ol {
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--secondary);
}
a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
  cursor: pointer;
  word-break: break-word;
}
a:hover {
  color: var(--danger);
}
strong, b {
  color: var(--primary-dark);
  font-weight: bold;
}
.text-section {
  margin-bottom: 18px;
}

/*---------------------- CONTAINER/WRAPPERS ----------------------*/
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 4px 20px rgba(36, 123, 160, 0.05), 0 1.5px 6px rgba(36,123,160,0.09);
}

/*---------------------- FLEXBOX LAYOUTS ----------------------*/
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5px 8px rgba(36,123,160,.08);
  padding: 28px 22px 24px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: transform .18s cubic-bezier(.33,1.62,.44,1), box-shadow .18s cubic-bezier(.33,1.62,.44,1);
}
.card:hover {
  box-shadow: 0 6px 22px 0 rgba(36,123,160,0.17);
  transform: translateY(-7px) scale(1.03);
}
.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;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F6F7EB;
  border-left: 7px solid var(--primary);
  border-radius: 18px;
  margin-bottom: 24px;
  transition: box-shadow .19s cubic-bezier(.33,1.62,.44,1);
  box-shadow: 0 2px 7px 0 rgba(36,123,160,0.07);
  font-size: 1.05rem;
  color: #222;
  position: relative;
}
.testimonial-card p {
  color: #222;
  font-size: 1.08rem;
  font-family: var(--body);
  margin-bottom: 5px;
}
.testimonial-card span {
  color: #247BA0;
  font-size: 1em;
  font-weight: 600;
  margin-top: 1px;
  font-family: var(--headers);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Ensuring minimum spacing among content blocks */
ul, ol {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}
.contact-short {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  align-items: center;
  margin-bottom: 20px;
}
.contact-short span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/************ HEADER & NAVIGATION (DESKTOP & MOBILE) ************/
header {
  background: #fff;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 25;
  box-shadow: 0 0.5px 6px rgba(36,123,160,0.07);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px 18px;
}
header img {
  max-height: 48px;
  height: 2.8rem;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: var(--headers);
  font-size: 1rem;
  color: var(--primary-dark);
  background: transparent;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background .18s, color .16s;
  font-weight: bold;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--primary);
  color: #fff;
  outline: none;
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 60;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 3px 9px rgba(36,123,160,0.13);
  transition: background .2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  box-shadow: 0 8px 60px 2px rgba(36,123,160,0.19);
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 86vw;
  max-width: 340px;
  transform: translateX(100%);
  z-index: 99;
  transition: transform .38s cubic-bezier(.83,0,.24,1);
  padding: 34px 20px 20px 24px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.7rem;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  z-index: 105;
}
.mobile-menu-close:focus,
.mobile-menu-close:active {
  background: var(--danger);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 36px;
}
.mobile-nav a {
  font-size: 1.22rem;
  padding: 12px 7px;
  color: var(--primary-dark);
  font-family: var(--headers);
  background: transparent;
  border-radius: 8px;
  transition: background .17s, color .13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--primary);
  color: #fff;
  outline: none;
}

/*---------------------- BUTTONS ----------------------*/
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  min-width: 130px;
  padding: 12px 26px;
  font-family: var(--headers);
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .17s, color .13s, transform .12s;
  margin-top: 8px;
  box-shadow: 0 2px 13px rgba(36,123,160,0.08);
  outline: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--danger);
  color: #fff;
  transform: scale(1.04) translateY(-2px) rotate(-1deg);
}
.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 2.4px solid var(--primary);
  font-weight: 700;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--danger);
  transform: scale(1.04) translateY(-2px) rotate(1.5deg);
}

/* Cookie consent buttons reuse button style but differentiated below */

/*---------------------- LISTS WITH ICONS ----------------------*/
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  position: relative;
  padding-left: 0;
  font-size: 1rem;
  color: var(--secondary);
}
ul li img, ol li img {
  height: 26px;
  width: 26px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  margin-top: -2px;
}

/*---------------------- FAQ STYLES ----------------------*/
.faq-item {
  background: #F6F7EB;
  border-radius: 16px;
  margin-bottom: 20px;
  padding: 20px 18px;
  box-shadow: 0 1.5px 6px rgba(36,123,160,0.07);
}
.faq-item h3 {
  color: var(--primary-dark);
  margin-bottom: 9px;
  font-size: 1.08rem;
}
.faq-item .text-section {
  color: #222;
  margin-bottom: 0;
}

/*---------------------- FOOTER ----------------------*/
footer {
  background: #F6F7EB;
  padding: 40px 0 16px 0;
  margin-top: 44px;
  box-shadow: 0 0.5px 9px rgba(36,123,160,0.06);
  width: 100%;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer img {
  height: 40px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  justify-content: center;
  margin-bottom: 9px;
}
.footer-nav a {
  color: var(--primary-dark);
  font-family: var(--headers);
  padding: 5px 9px;
  font-size: .98rem;
  border-radius: 7px;
  transition: background .16s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--primary);
  color: #fff;
  outline: none;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #222;
  font-size: .98rem;
  align-items: center;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  height: 17px;
  width: 17px;
  margin-right: 3px;
}

/*---------------------- COOKIE CONSENT BANNER ----------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 200;
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 -2px 15px 0 rgba(36,123,160,0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  font-size: 1rem;
  animation: banner-enter .44s cubic-bezier(.67,0,.46,1);
}
@keyframes banner-enter {
  from { transform: translateY(85%); opacity: 0.2; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 13px;
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: var(--headers);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 17px;
  margin-left: 0;
  cursor: pointer;
  transition: background .18s, color .13s, transform .12s;
  box-shadow: 0 1.5px 7px rgba(36,123,160,0.07);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--danger);
  color: #fff;
  transform: translateY(-1.5px) scale(1.04);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--warning);
  color: #314455;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--danger);
  border: 2px solid var(--danger);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--danger);
  color: #fff;
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.97);
  min-width: 330px;
  max-width: 96vw;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 7px 40px 7px rgba(36,123,160,0.19);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 38px 27px 26px 27px;
  animation: cookie-modal-in .37s cubic-bezier(.67,0,.46,1);
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: translate(-50%,-46%) scale(.88); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 7px;
}
.cookie-modal .cookie-switch-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 15px 0;
}
.cookie-modal .cookie-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  font-size: 1rem;
}
.cookie-modal .cookie-switch input[type='checkbox'] {
  appearance: none;
  width: 35px;
  height: 19px;
  background: #e4e4e4;
  outline: none;
  border-radius: 12px;
  position: relative;
  transition: background .22s;
  cursor: pointer;
}
.cookie-modal .cookie-switch input[type='checkbox']:checked {
  background: var(--primary);
}
.cookie-modal .cookie-switch input[type='checkbox']::before {
  content: '';
  display: block;
  height: 16px;
  width: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 1.5px;
  box-shadow: 0 1px 5px 0 rgba(36,123,160,0.15);
  transition: transform .21s cubic-bezier(.3,1.64,.55,1);
}
.cookie-modal .cookie-switch input[type='checkbox']:checked::before {
  transform: translateX(16px);
}
.cookie-modal .cookie-switch input[type='checkbox'][disabled],
.cookie-modal .cookie-switch input[type='checkbox'][aria-disabled='true'] {
  opacity: .5;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}
.cookie-modal .cookie-btn {
  min-width: 90px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 13px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: #b5b5b5;
  cursor: pointer;
  z-index: 11;
  transition: color .16s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--danger);
}


/*---------------------- ICONS ----------------------*/
img[alt^="Teléfono"],
img[alt^="Correo"],
img[alt^="Horario"],
img[alt^="Dirección"],
img[alt^="Sostenibilidad"],
img[alt^="Confianza"],
img[alt^="Calidad"],
img[alt^="Equipo"],
img[alt^="Flexibilidad"],
img[alt^="Atención al cliente"],
img[alt^="Experiencia"],
img[alt^="Revisión"],
img[alt^="Agenda"] {
  display: inline-block;
  vertical-align: middle;
}

/*---------------------- ANIMATIONS & MICRO-INTERACTIONS ----------------------*/
.card,
.btn-primary,
.btn-secondary,
.btn,
.testimonial-card,
.cookie-btn,
.mobile-menu-toggle,
.mobile-nav a {
  transition: box-shadow .17s cubic-bezier(.44,1.1,.33,1.5),
              background .17s,
              color .15s,
              transform .13s;
}
.section {
  animation: section-in .53s cubic-bezier(.4,1.38,.52,1);
}
@keyframes section-in {
  from { opacity: 0; transform: translateY(35px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Playful animated accent underline for h1 and h2 */
h1, h2 {
  position: relative;
  z-index: 1;
}
h1::after, h2::after {
  display: block;
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  height: 10px;
  width: 65px;
  background: var(--warning);
  border-radius: 7px 7px 21px 13px;
  opacity: .6;
  z-index: -1;
  animation: playful-underline .72s cubic-bezier(.6,1.77,.46,1.01);
}
@keyframes playful-underline {
  from { width: 5px; opacity: 0; }
  to   { width: 65px; opacity: .6; }
}

/*---------------------- RESPONSIVE DESIGN ----------------------*/
@media (max-width: 1200px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 27px 9px;
    margin-bottom: 40px;
  }
}
@media (max-width: 768px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .section {
    padding: 18px 3.5vw;
    margin-bottom: 24px;
    border-radius: 18px;
  }
  .testimonial-card {
    padding: 15px 9px;
    border-radius: 13px;
    min-width: 0;
    font-size: .98rem;
  }
  .card {
    padding: 19px 11px 15px 11px;
    border-radius: 12px;
  }
  .footer-contact span {
    font-size: .95rem;
  }
}
@media (max-width: 700px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 23px;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
  }
  .card-container {
    gap: 15px;
  }
}
@media (max-width: 540px) {
  .container { padding: 0 2.5vw; }
  header .container {
    padding-top: 10px;
    padding-bottom: 7px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 17px 7vw 17px 7vw;
    font-size: .98rem;
  }
  .footer-nav { gap: 8px; }
  .footer-contact span { font-size: .93rem; }
  .cookie-modal { min-width: 0; padding: 23px 9vw 15px 9vw; }
}

/*---------------------- PLAYFUL & DYNAMIC EXTRAS ----------------------*/
/* Fun, energetic, bouncy playful_dynamic details */
.card, .testimonial-card, .faq-item {
  box-shadow: 0 1.5px 8px rgba(36,123,160,.08), 0 6px 32px rgba(36,123,160,0.026);
  border-radius: 16px;
  background: #fff;
  position: relative;
}
.card::before, .testimonial-card::before {
  content: '';
  display: block;
  position: absolute;
  top: -13px;
  left: 23px;
  background: var(--warning);
  width: 30px;
  height: 10px;
  border-radius: 11px 13px 20px 11px;
  opacity: .16;
  z-index: 0;
  filter: blur(1.3px);
}
.card:hover::before, .testimonial-card:hover::before {
  opacity: .25;
}
.btn-primary, .btn-secondary, .cookie-btn {
  animation: fun-bounce 1.17s cubic-bezier(.45,1.77,.45,0.84) infinite alternate;
}
@keyframes fun-bounce {
  0%   { transform: none; }
  47%  { transform: translateY(0.8px) scale(1.01); }
  100% { transform: translateY(-2.4px) scale(1.03); }
}

/*---------------------- FORM ELEMENTS (Minimal for contact) ----------------------*/
input, textarea, select {
  font-family: var(--body);
  border-radius: 8px;
  border: 1.7px solid #e1e9f0;
  background: #fff;
  padding: 7px 12px;
  font-size: 1rem;
  color: #314455;
  margin-bottom: 13px;
  outline: none;
  transition: border .15s, box-shadow .16s;
  box-shadow: 0 1px 3px 0 rgba(36,123,160,0.04);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 10px 0 rgba(36,123,160,0.12);
}

/*---------------------- MISC & UTILITY CLASSES ----------------------*/
.mt-1 { margin-top: 7px !important; }
.mt-2 { margin-top: 15px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-1 { margin-bottom: 7px !important; }
.mb-2 { margin-bottom: 15px !important; }
.mb-3 { margin-bottom: 24px !important; }

.hide { display: none !important; }

::-webkit-scrollbar {
  width: 10px;
  background: #F6F7EB;
}
::-webkit-scrollbar-thumb {
  background: #e4eaf3;
  border-radius: 9px;
}

/*---------------------- PRINT ----------------------*/
@media print {
  .cookie-banner, .cookie-modal, .mobile-menu, .mobile-menu-toggle { display: none !important; }
}