/* --- CSS RESET & BASE --- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F6EB;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #1B335A;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  border: none;
  background: none;
}
input, textarea, select {
  font-family: inherit;
  background: #fff;
  color: #1B335A;
  border: 1.5px solid #29A3A7;
  border-radius: 4px;
  padding: 8px 12px;
}
:root {
  --primary: #1B335A;
  --secondary: #29A3A7;
  --accent: #F7F6EB;
  --radius-lg: 18px;
  --radius-md: 10px;
  --radius-sm: 5px;
  --shadow: 0 2px 16px 0 rgba(27,51,90,0.11);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-geometric: 'Montserrat', Arial, sans-serif;
}

/* --- TYPOGRAPHY --- */
h1, .hero h1 {
  font-family: var(--font-geometric);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -1px;
  color: var(--primary);
  line-height: 1.14;
  margin-bottom: 20px;
  text-transform: uppercase;
}
h2 {
  font-family: var(--font-geometric);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 18px;
  text-transform: uppercase;
}
h3 {
  font-family: var(--font-geometric);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
p, li, blockquote, address {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #24353F;
  margin-bottom: 12px;
  line-height: 1.6;
}
strong {
  font-weight: 700;
}
blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.07rem;
  color: #222c3c;
  padding-left: 20px;
  border-left: 5px solid var(--secondary);
}

/* --- CONTAINER & LAYOUT HELPERS --- */
.container {
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 0 auto;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 26px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 200px;
  max-width: 700px;
  width: 100%;
}
.testimonial-card span {
  display: block;
  color: #010c18;
  font-family: var(--font-geometric);
  font-size: 1em;
  font-weight: 700;
  margin-top: 8px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  margin-bottom: 12px;
}

/* --- NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(30,80,119,0.06);
  position: relative;
  z-index: 21;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.main-nav img {
  width: 138px;
  margin-right: 16px;
  height: auto;
  display: block;
}
.main-nav a {
  font-family: var(--font-geometric);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  padding: 5px 3px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.main-nav a.cta {
  background: var(--secondary);
  color: #fff;
  padding: 9px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px 0 rgba(41,163,167,0.09);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 1.09rem;
  text-transform: uppercase;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary);
  background: var(--accent);
}
.main-nav a.cta:hover {
  background: var(--primary);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--secondary);
  background: none;
  border: none;
  margin-left: auto;
  z-index: 52;
  transition: color .2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  z-index: 51;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.6,.09,.29,.99);
  box-shadow: -2px 0 16px rgba(30,50,100,0.12);
  padding: 40px 24px 32px 32px;
  flex-direction: column;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  color: var(--primary);
  background: none;
  margin-bottom: 18px;
  cursor: pointer;
  border: none;
  transition: color .2s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--primary);
  text-transform: uppercase;
  font-family: var(--font-geometric);
  font-weight: 700;
  padding: 11px;
  border-radius: var(--radius-md);
  transition: background .18s, color .18s;
}
.mobile-nav a:hover {
  background: var(--secondary);
  color: #fff;
}

/* --- HERO SECTIONS --- */
.hero {
  background: linear-gradient(108deg, #F7F6EB 60%, #29A3A7 140%);
  border-radius: 0 0 70px 0;
  box-shadow: 0 8px 22px 0 rgba(41,163,167,0.06);
  margin-bottom: 38px;
}
.hero .container {
  align-items: flex-start;
  justify-content: center;
  padding-top: 38px;
  padding-bottom: 38px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 14px;
}
.hero p {
  font-size: 1.12rem;
  color: #183747;
  font-weight: 400;
  margin-bottom: 12px;
}
.hero .cta {
  margin-top: 10px;
}

/* --- CTA BUTTONS --- */
.cta,
button.cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-geometric);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--primary);
  color: #fff;
  letter-spacing: 1.2px;
  border: none;
  outline: none;
  border-radius: var(--radius-md);
  padding: 13px 30px;
  cursor: pointer;
  box-shadow: 0 2px 18px 0 rgba(27,51,90,0.09);
  text-transform: uppercase;
  transition: background 0.18s, color 0.18s, transform .15s;
  position: relative;
}
.cta:hover, button.cta:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.05) skew(-2deg, 0);
}
.cta:active {
  background: #20508d;
}
button:focus, .cta:focus {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}

/* --- FEATURES & SERVICE SECTION --- */
.features, .services, .about-details, .team, .programas,
.sesiones, .servicios-natacion, .servicios-running, .motivacion-recuperacion {
  margin-bottom: 60px;
  padding: 40px 0px;
}
.features .content-wrapper > ul,
.services .content-wrapper > ul,
.about-details .content-wrapper > ul,
.team .content-wrapper > ul,
.programas .content-wrapper > ul,
.sesiones .content-wrapper > ul,
.servicios-natacion .content-wrapper > ul,
.servicios-running .content-wrapper > ul,
.motivacion-recuperacion .content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  justify-content: flex-start;
  margin-top: 8px;
}
.features .content-wrapper > ul > li,
.services .content-wrapper > ul > li,
.about-details .content-wrapper > ul > li,
.team .content-wrapper > ul > li,
.programas .content-wrapper > ul > li,
.sesiones .content-wrapper > ul > li,
.servicios-natacion .content-wrapper > ul > li,
.servicios-running .content-wrapper > ul > li,
.motivacion-recuperacion .content-wrapper > ul > li {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  min-width: 210px;
  padding: 26px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  flex: 1 1 220px;
  margin-bottom: 20px;
}
.features .content-wrapper > ul > li img,
.services .content-wrapper > ul > li img,
.programas .content-wrapper > ul > li img,
.sesiones .content-wrapper > ul > li img,
.servicios-natacion .content-wrapper > ul > li img,
.servicios-running .content-wrapper > ul > li img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
.features .content-wrapper > ul > li strong, .services ul > li strong {
  color: var(--secondary);
  font-weight: 700;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #e3f2f4;
  border-radius: 42px;
  margin-bottom: 60px;
  padding: 40px 0;
}
.testimonials .content-wrapper {
  align-items: flex-start;
}
.testimonials h2 {
  margin-bottom: 24px;
}
.testimonial-card {
  box-shadow: 0 2px 16px 0 rgba(27,51,90,0.08);
  border-left: 7px solid var(--secondary);
  background: #fff;
  color: #222c3c;
}
.testimonial-card blockquote {
  color: #1B335A;
  border-left: none;
  padding-left: 0;
  margin: 0;
}

/* --- CONTACT --- */
.contact, .contact-info {
  background: #fff;
  border-radius: 0 60px 0 60px;
  margin-bottom: 60px;
  padding: 42px 0 24px 0;
  box-shadow: var(--shadow);
}
.contact .content-wrapper,
.contact-info .content-wrapper {
  gap: 13px;
}
.contact .content-wrapper p img, .contact-info .content-wrapper li img {
  width: 23px;
  margin-right: 11px;
  vertical-align: bottom;
}

/* --- FOOTER --- */
footer {
  background: #1B335A;
  color: #fff;
  padding: 46px 0 20px 0;
  border-radius: 85px 0 0 0;
  box-shadow: 0 -2px 18px 0 rgba(27,51,90,0.07);
}
footer .container {
  align-items: center;
  justify-content: center;
}
footer .content-wrapper {
  align-items: center;
}
.footer-menu a {
  color: #fff;
  opacity: 0.84;
  font-size: 1rem;
  font-family: var(--font-geometric);
  transition: color .18s, opacity .12s;
}
.footer-menu a:hover {
  color: #29A3A7;
  opacity: 1;
}
address {
  color: #dbe8fb;
  font-size: .98rem;
  font-family: var(--font-body);
  margin-bottom: 13px;
  text-align: center;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-top: 4px;
}
.social-links img {
  width: 29px;
  height: 29px;
  transition: filter .18s;
  filter: grayscale(18%) contrast(110%);
  opacity: 0.85;
}
.social-links img:hover {
  filter: none;
  opacity: 1;
}

/* --- STATIC SECTIONS (LEGAL/THANK YOU) --- */
.privacy, .gdpr, .cookies, .terms, .thank-you {
  background: #fff;
  border-radius: 48px;
  margin-bottom: 60px;
  padding: 44px 0 32px 0;
  box-shadow: var(--shadow);
}
.privacy h1, .gdpr h1, .cookies h1, .terms h1, .thank-you h1 {
  font-size: 2.1rem;
  margin-bottom: 18px;
}
/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 18px 0 rgba(27,51,90,0.09);
  padding: 28px 12px 18px 12px;
  z-index: 99;
  border-radius: 32px 32px 0 0;
  gap: 17px;
  transition: transform 0.26s cubic-bezier(.64,.31,.38,1.41), opacity .19s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(140px);
  pointer-events: none;
}
.cookie-banner-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 950px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 7px;
}
.cookie-banner button {
  padding: 8px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-geometric);
  font-size: 1rem;
  font-weight: 700;
  background: var(--secondary);
  color: #fff;
  margin-top: 2px;
  border: none;
  transition: background 0.15s, color 0.15s, transform .12s;
  cursor: pointer;
  outline: none;
}
.cookie-banner button.cookie-reject {
  background: #1B335A;
  color: #fff;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: #1B335A;
  border: 1.5px solid var(--secondary);
}
.cookie-banner button:hover {
  background: var(--primary);
  color: #fff;
}

/* --- Cookie Modal --- */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 111;
  inset: 0;
  background: rgba(44,59,94,0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(30,65,100,.18);
  padding: 40px 27px 16px 27px;
  min-width: 310px;
  max-width: 96vw;
  width: 430px;
  z-index: 112;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  top: 0;
  left: 0;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none; border: none;
  font-size: 1.7rem;
  color: var(--secondary);
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:focus {
  outline: 2px solid var(--primary);
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 11px;
  font-family: var(--font-geometric);
  letter-spacing: 0.5px;
}
.cookie-categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f4f8fa;
  border-radius: var(--radius-md);
  padding: 12px 18px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: #1B335A;
  cursor: pointer;
  margin-bottom: 0;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}
.cookie-category[data-essential="true"] label {
  color: var(--secondary);
  font-weight: 700;
}

/* --- Animations & Micro-interactions --- */
.cta, button.cta, .main-nav a.cta, .mobile-nav a {
  transition: background 0.18s, color 0.18s, transform 0.12s;
}
.card, .testimonial-card, .privacy, .gdpr, .cookies, .terms, .thank-you, .features .content-wrapper > ul > li {
  transition: box-shadow .17s, transform .12s;
}
.card:hover, .testimonial-card:hover, .features .content-wrapper > ul > li:hover {
  box-shadow: 0 6px 25px 0 rgba(41,163,167,0.13);
  transform: translateY(-4px) scale(1.015);
}
.section {
  transition: box-shadow 0.1s;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .main-nav {
    gap: 14px;
  }
  .features .content-wrapper > ul > li,
  .services .content-wrapper > ul > li {
    min-width: 190px;
    flex: 1 1 160px;
    padding: 19px 11px 15px 11px;
  }
  .content-wrapper {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 9px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin: 14px 14px 14px auto;
    z-index: 52;
  }
  .content-wrapper,
  .footer-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .features .content-wrapper > ul,
  .services .content-wrapper > ul,
  .about-details .content-wrapper > ul,
  .team .content-wrapper > ul,
  .programas .content-wrapper > ul,
  .sesiones .content-wrapper > ul,
  .servicios-natacion .content-wrapper > ul,
  .servicios-running .content-wrapper > ul,
  .motivacion-recuperacion .content-wrapper > ul {
    flex-direction: column;
    gap: 16px;
  }
  .features .content-wrapper > ul > li,
  .services .content-wrapper > ul > li {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
    padding: 14px 7px 12px 10px;
  }
  .testimonial-card,
  .card {
    min-width: 0;
    width: 100%;
    padding: 13px 9px;
    margin-bottom: 16px;
  }
  .section {
    margin-bottom: 36px;
    padding: 25px 6px;
  }
  .hero .container {
    padding-top: 22px;
    padding-bottom: 24px;
  }
  .cookie-modal {
    width: 95vw;
    min-width: unset;
    padding: 28px 8vw 12px 7vw;
  }
}
@media (max-width: 534px) {
  .hero h1, h1 {
    font-size: 1.32rem;
  }
  h2 {
    font-size: 1.04rem;
  }
  .hero .container {
    padding-top: 12px;
    padding-bottom: 13px;
  }
  .footer-menu {
    font-size: 0.86rem;
    gap: 7px;
  }
  .cookie-banner {
    font-size: .98rem;
    padding: 14px 3px 10px 3px;
    gap: 11px;
  }
}
/* --- Utility classes for geometric/structured effects --- */
.geometric-bg {
  background: repeating-linear-gradient(135deg, #e3f2f4 0 16px, #fff 18px 32px);
}
.geometric-border {
  border-radius: 0 25px 0 25px;
  border: 3px solid var(--secondary);
}
.geometric-angle {
  clip-path: polygon(0 0, 89% 0, 100% 100%, 0% 89%);
}
.text-uppercase {
  text-transform: uppercase;
}
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.text-center { text-align: center !important; }
/* --- End of CSS --- */
