
:root{
  --container-max: 1280px;
  --gutter: clamp(16px, 4vw, 40px); /* ~16–40px según ancho */
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #fff;
  overflow-x: hidden;
}
.hero-wrapper {
  background-image: url('../images/backgrounds/Banner.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
   /* ✅ añadido */
  
   /* respiración lateral */
/* fondo full-bleed como ya tienes */
  min-height: clamp(680px, 100svh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(12, 23, 54, 0.9), rgba(12, 23, 54, 0));
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}


/* Mantén el resto del padding: arriba/abajo y derecha */
header{
  padding-top: 48px;      /* ajusta si quieres más aire vertical */
  padding-bottom: 48px;
  /* padding-left se calcula arriba por breakpoint */
  margin: 0 auto;
  width: 1250px;
   /* respiración lateral */
}


header > .menu-wrapper >  nav {
  display: flex;
  gap: 20px;
}
.hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: clamp(16px, 3vw, 32px);   /* espacio entre columnas */
}

/* solo si el texto necesita aire extra respecto al centro */
.hero .hero-text{
  /* margin-inline-end: clamp(8px, 2vw, 24px); */
}
.hero-wrapper > header .hamburger {
  display: none;    
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.hero-wrapper > header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-wrapper > header .logo img {
  height: 30px;
}
header > .menu-wrapper > nav a {
  color: #ccc;
  margin: 0 15px;
  text-decoration: none;
}
header > .menu-wrapper > nav a.contact {
  color: #b4ff45;
}

nav a {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

nav a::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.3); /* efecto blanco translúcido */
  border-radius: 50%;
  transform: scale(0);
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.6s ease;
  top: 0;
  left: 0;
  z-index: 0;
}

nav a:active::after {
  transform: scale(2.5);
  opacity: 1;
  transition: 0s;
}

header > .menu-wrapper > .social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 20px;
  margin-left: 20px;
}

.menu-wrapper {
  display: flex;
  align-items: center;
}

header > .menu-wrapper > .social-icons img {
  transition: opacity 0.2s ease;
}

header > .menu-wrapper > .social-icons img:hover {
  opacity: 1;
}

.hero > .hero-text > .store-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
}
.hero > .hero-text > .store-buttons img {
  max-width: 150px;
  height: auto;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  /* padding: 60px 40px; */
  flex: 1;
  width: 1250px;
  margin: 0 auto;
  margin-bottom: 113px;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;   /* como acordamos */
}
header,
.hero,
.container-about,
.container-features,
.cta-container {                 /* los 2 usan el mismo borde lateral */
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);  /* <-- separa de los lados */
}
.hero > .hero-text {
  /* max-width: 510px; */
  /* max-width: 400px; */
  /* margin-left: 50px; */
}
.hero > .hero-text h1 {
  font-size: 40px;
  margin-top: 46px;
  margin-bottom: 46px;
  font-weight: 700;
  white-space: normal;          /* permite saltos de línea */
  overflow-wrap: anywhere;      /* rompe palabras largas si hace falta */
  word-break: break-word;       /* fallback antiguo */
  hyphens: auto;                /* guiones automáticos si el idioma lo permite */
  max-width: 26ch;              /* (opcional) ancho de lectura cómodo */
}
.hero > .hero-text h1 span {
  color: #b4ff45;
}

.hero > .hero-text > .btn-group > .btn {
  display: inline-block;
  padding: 20px 40px;
  border-radius: 11px;
  /* margin-right: 15px; */
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
}
.hero > .hero-text > .btn-group > .btn-primary {
  background-color: #BAF15B;
  border: 2px solid #BAF15B;
  color: #0B2469;
  margin-right: 5px;
}
.hero > .hero-text > .btn-group > .btn-secondary {
  border: 2px solid #fff;
  color: #fff;
  background-color: transparent;
  margin-left: 5px;
}

.hero > .hero-text > .btn-group > .btn:hover {
  transform: scale(1.05);
}
.hero-image {
  display: none;
}

/* ------------------------------
Benefits Section
------------------------------ */
.benefits {
  background-color: #e6e6e6;
  padding: 60px 40px;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  color: #1a1a1a;
  gap: 40px;
}

.benefit {
  display: flex;
  align-items: center;
  max-width: 360px;
  gap: 65px;
  text-align: left;
}

.benefit img {
  width: 102px;
  height: auto;
  flex-shrink: 0;
}

.benefit p {
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

/*---------------------------
about
-----------------------------*/

.about-racketpulse {
  background-color: #f5f7fa;
  text-align: center;
  color: #1a1a1a;
}

.about-racketpulse .container-about{
  /* width: 1250px; */
  /* margin: 0 auto; */
  
   /* respiración lateral */
}

/* Línea fina centrada bajo los H2 de la sección About */
.about-racketpulse h2{
  font-size: 50px;
  text-align: center;          /* como en la captura */
  margin-bottom: 40px;         /* deja aire antes de la línea */
  position: relative;
  font-weight: 800;            /* opcional: mismo grosor del mock */
  padding-top: 80px;
}

.about-racketpulse h2::after{
  content: "";
  display: block;
  width: 140px;                /* largo de la línea */
  height: 2px;                 /* grosor */
  margin: 40px auto 0;         /* centrada y separada del título */
  background: #C9CFDB;         /* gris suave; cambia si prefieres */
  border-radius: 2px;          /* puntas redondeadas */
  opacity: .9;
}

.about-racketpulse .intro-text {
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 17.5px;
  line-height: 1.6;
  color: #666;
}

.about-racketpulse .features-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-racketpulse .features-container .features-column {
  display: flex;
  flex-direction: column;
  gap: 130px;
  /* flex: 1 1 301px; */
  max-width: 262px;
}

.about-racketpulse .features-container .features-column .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  text-align: left;
}
.about-racketpulse .features-container .features-column .feature-item img {
  height: auto;
}
.about-racketpulse .features-container .features-column .feature-item h4 {
  font-size: 16px;
  margin: 0 0 5px;
}
.about-racketpulse .features-container .features-column .feature-item p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.about-racketpulse .features-container .mobile-image {
  /* flex: 1 1 123px; */
  display: flex;
  justify-content: center;
}
.about-racketpulse .features-container .mobile-image img {
  height: auto;
  border-right: solid;
  border-right-width: 1px;
}

/*-----------------------
Feature
-----------------------*/

.feature-section{
  padding: 250px 0;
}

.features-section {
  background-image: url('../images/features/Features.webp'); /* ajusta la ruta */
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  z-index: 1;
}

.features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.85); /* opcional para mayor legibilidad */
  z-index: -1;
}

.feature-divider {
  width: 150px;
  height: 1px;
  background-color: #787878;
  margin: 0 auto 2rem auto;
  border: none;
}

.feature-container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.feature-container .feature-text {
  flex: 0 1 500px;
  padding: 20px;
}

.feature-container .feature-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1E1E1E;
  text-align: center;
}

.club-divider {
  width: 150px;
  height: 1px;
  background-color: #787878;
  margin: 0 0 2.6rem 0;
  border: none;
}

.feature-container .feature-text p {
  font-size: 15px;
  line-height: 1.6;
  color: #6A6A6A;
  text-align: center;
  max-width: 340px;
  margin: 3.5rem auto 3.5rem auto;
}

.feature-container .feature-text .btn-demo {
    display: block;
    padding: 12px 24px;
    border: 2px solid #787878;
    color: #6A6A6A;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.3s;
    margin: 0 auto;
    width: max-content;
}

.feature-container .feature-text .btn-demo:hover {
  background: #000;
  color: #fff;
}

.feature-container .feature-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.feature-container .feature-images .mockup {
  width: auto;
}

.feature-container .feature-images .mockup-side {
}


/* ====== Take a closer look (ajuste a la captura) ====== */
.closer-look{padding: 32px 0 0;}
.closer-look h2{
  font-weight: 800;               /* título contundente como la captura */
  max-width: 1400px;
  margin: 0 auto 18px auto;
  color: #1E1E1E;
  font-size: 50px;
}

/* Tarjeta */
.closer-card{
  position: relative;
  border-radius: 24px;            /* esquinas más redondeadas */
  overflow: hidden;
  min-height: 420px;              /* más alto para respirar */
  box-shadow: 0 30px 60px rgba(0,0,0,.28); /* sombra profunda */
  max-width: 1460px;
  margin: 0 auto;
  max-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.closer-card .btn{
  text-decoration: none;
}

/* Fondo */
.closer-card__bg{
  position: absolute; inset:0;
  background-image: url('../images/pricing/Pricing-closer-look.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

/* Velo más marcado (gradiente de izquierda a derecha) */
.closer-card::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg,
    rgba(7,14,30,.78) 0%,
    rgba(7,14,30,.68) 38%,
    rgba(7,14,30,.58) 60%,
    rgba(7,14,30,.52) 100%
  );
}

/* Contenido centrado y con tamaños del mock */
.closer-card__content{
  position: relative;
  z-index: 1;
  /* min-height: 550px; */
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}
.closer-card__content h3{
  margin:0;
  color:#fff;
  font-size: clamp(28px, 4vw, 44px); /* título grande */
  line-height: 1.12;
  font-weight: 400;
}
.closer-card__content h3 span{ color:#BAF15B; }

/* Botones como en el hero */
.closer-card__actions{ display:flex; gap:14px; flex-wrap:wrap; }
.closer-card .btn.btn-primary {
    background: #BAF15B;
    color: #0C1736;
    border: 0;
    padding: 22px 22px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 20px;
}
.closer-card .btn.btn-primary:hover{ filter:brightness(1.03); }
.closer-card .btn.btn-secondary {
    background: transparent;
    color: #e8f0ff;
    border: 2px solid rgba(255, 255, 255, .85);
    padding: 22px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 20px;
}
.closer-card .btn.btn-secondary:hover{ border-color:#fff; color:#fff; }

/* En pantallas anchas se aproxima aún más al mock */
@media (min-width: 992px){
  .closer-card{ min-height: 460px; }
  .closer-card__content{padding: 48px 36px;width: 655px;/* height: auto; */}
}
@media (min-width: 1280px){
  .closer-card{min-height: 600px;}
  .closer-card__content{}
}


/* ===== Why Choose RacketPulse ===== */

.why-choose{padding: 36px 0;}
.why-choose h2{font-weight: 800;max-width: 1400px;margin: 140px auto 25px auto;color: #1E1E1E;font-size: 50px;}

.why-grid{
  display:grid;
  gap:22px;
  grid-template-columns: repeat(auto-fit, minmax(242px, 1fr));
}

.why-card{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 600px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  max-width: 390px;
}

/* Texto arriba-izquierda */
.why-card__content{
  position:absolute; top:24px; left:26px; right:26px;
  color:#fff; z-index:2;
}
.why-card__content small{ display:block; opacity:.85; font-size:14px; margin-bottom:10px; }
.why-card__content h3{ margin:0; line-height:1.15; font-size: clamp(22px, 2.6vw, 34px); font-weight:800; }

/* Imagen por defecto: centrada abajo (cards 1 y 2) */
.why-card img{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:22px;
  top: 35%;
  width: 37%;
  height:auto;
  object-fit:contain;
  z-index:1;
  pointer-events:none;
  user-select:none;
}
/* --- Junta un poco las tarjetas y centra la parrilla sin tocar tamaños --- */
.why-grid{
  gap: 16px;                   /* antes 22px */
  /* justify-content: center; */     /* centra las columnas si sobra espacio */
  max-width: 1460px;
  margin: 0 auto;
}

/* --- Card 1: tal cual (imagen "ilustración") --- */
/* No cambiamos nada del nth-child(1) */

/* --- Card 2: imagen a pantalla completa (full-bleed) --- */
.why-grid .why-card:nth-child(2) img{
  inset: 0 !important;         /* ocupa todo el artículo */
  left: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  object-fit: cover !important;
}


/* --- Card 3: ya lo tenías full-bleed; mantenemos --- */
/* (si no lo tenías) deja igual que el 2 */
.why-grid .why-card:nth-child(3) img{
  inset: 0; left: auto; bottom: auto;
  width: 100%; height: 100%;
  transform: none; object-fit: cover;
}

/* --- Card sin imagen (p.ej. el 4º): sin overlay gris y fondo liso --- */
.why-grid .why-card:not(:has(img)){
  background: #2f4156;
}
.why-grid .why-card:not(:has(img)) .why-card__overlay{
  background: none;
}

/* --- Importante: la regla base de IMG no debe forzar 'top' --- */
/* Mantén la ilustración del card 1 sin tocar su tamaño */
.why-card img{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: 22px;
  /* OJO: sin 'top' aquí para no pelear con los full-bleed */
  width: 47%;
  height: auto;
  object-fit: contain;
  z-index:1;
  pointer-events:none;
  user-select:none;
}

/* Overlay suave por defecto */
.why-card__overlay{ position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(7,14,30,.15), rgba(7,14,30,.22)); }

/* Card 1: fondo slate liso + móvil centrado */
.why-grid .why-card:nth-child(1){ background:#2f4156; }
.why-grid .why-card:nth-child(1) .why-card__overlay{ background:none; }

/* Card 2: fondo azul liso + persona centrada */
.why-grid .why-card:nth-child(2){ background:#0f327e; }

/* Card 3: foto a fondo (cover) con overlay más fuerte */
.why-grid .why-card:nth-child(3) img{
  inset:0; left:auto; bottom:auto; width:100%; height:100%;
  transform:none; object-fit:cover;
}
.why-grid .why-card:nth-child(3) .why-card__overlay{
  background: linear-gradient(180deg, rgba(7,14,30,.28) 0%, rgba(7,14,30,.45) 55%, rgba(7,14,30,.60) 100%);
}

/* Un poco menos alto en tablets */
@media (max-width: 991px){
  .why-card{ min-height: 460px; }
}


/* Desktop: 3 columnas (3×390 + 2×16 de gap = 1222px) */
@media (min-width: 1200px){
  .why-grid{
    grid-template-columns: repeat(4, 390px);
    /* max-width: calc(3 * 390px + 2 * 16px); */
    margin: 0 auto;
    /* max-width: 1460px; */
    margin: 0 auto;
  }
  .why-card{ width: 390px; }  /* coincide con tu max-width, no cambia el ancho real */
}

/* Tablet: 2 columnas (2×390 + 1×16 = 796px) */
@media (min-width: 768px) and (max-width: 1199px){
  .why-grid{
    grid-template-columns: repeat(2, 390px);
    max-width: calc(2 * 390px + 1 * 16px);
    margin: 0 auto;
  }
  .why-card{ width: 390px; }
}

/* Móvil: 1 columna (queda como lo tenías) */
@media (max-width: 768px){
  .why-grid{max-width: 560px; margin: 0 auto; }
}


/*----------------

club feature
-----------------*/

.club-features-section, .pricing-section {
  padding: 0px 0px 250px 0px;
}

.club-features-section .club-features-container {
  max-width: 1240px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.club-features-section .club-features-container .club-images {
      /* flex: 1; */
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}



.club-features-section .club-features-container .club-text {
  flex: 1;
  max-width: 500px;
}

.club-features-section .club-features-container .club-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.2rem;
  color: #1e1e1e;
}

.club-features-section .club-features-container .club-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.club-features-section .club-features-container .club-text li {
  display: flex;
  align-items: center;
  font-size: 22px;
  margin-bottom: 40px;
  color: #1e1e1e;
  font-weight: bold;
}

.club-features-section .club-features-container .club-text li:last-child {
  margin-bottom: 0px;
}

.club-features-section .club-features-container .club-text li img {
  margin-right: 12px;
}

/*--------------------
  Pricing plans
-----------------*/

.pricing-header {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 175px;
}

.pricing-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #1e1e1e;
}

.pricing-header p {
  font-size: 1rem;
  color: #666;
}

/* Toggle */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 25px 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4caf50;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Pricing Cards */


.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.pricing-cards .pricing-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 300px;
  flex: 1 1 300px;
  transition: transform 0.3s;
  position: relative;
  height: fit-content;
}

.pricing-cards .pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-cards .pricing-card h3 {
  background: #BAF15B;
  padding: 23px 0;
  border-radius: 22px 22px 0 0;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #1E1E1E;
}

.pricing-cards .pricing-card .price {
  font-size: 4.5rem;
  font-weight: bold;
  margin-bottom: 60px;
  color: #1e1e1e;
}

.pricing-cards .pricing-card .price p {
  font-family: 'Inter', sans-serif;
  font-weight: 100;
  font-style: italic;
  font-size: 1.302rem;
  color: #777;
  margin-top: 15px;
}

.pricing-cards .pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.pricing-cards .pricing-card ul li {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 50px;
  /* padding-right: 50px; */
  margin-bottom: 20px;
  font-size: 1rem;
  color: #333;
}

.pricing-cards .pricing-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background-size: contain;
}

.pricing-cards .pricing-card ul li img{
  margin-right: 20px;
  width: 18px;
}

.pricing-cards .pricing-card .discount {
  font-family: 'Inter', sans-serif;
  font-weight: 100;
  font-style: italic;
  font-size: 1.3rem;
  color: #777;
  max-width: 300px;
  margin: 53px auto;
}

.pricing-cards .pricing-card .btn-green {
  font-size: 23px;
  display: inline-block;
  background: #BAF15B;
  color: #000;
  padding: 25px 40px;
  font-weight: bold;
  border-radius: 13px;
  text-decoration: none;
  transition: background 0.3s;
  margin-bottom: 50px;
  letter-spacing: 0px;
}

.pricing-cards .pricing-card .btn-green:hover {
  background: #000;
  color: #fff;
}

.pricing-section .pricing-header .toggle-container .toggle-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e1e1e;
  min-width: 60px;
  text-align: center;
}

.pricing-section .pricing-header hr {
  width: 155px;
  margin: 25px auto;
  border: 1px solid #787878;
}

/*----------------
App section
-------------*/

.app-section {
  color: #1e1e1e;
  font-family: 'Inter', sans-serif;
}

.app-section .app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

.app-section .app-content .text-column {
  flex: 1 1 450px;
  text-align: center;
  margin-bottom: 40px;
}

.app-section .app-content .text-column h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.app-section .app-content .text-column hr {
  width: 210px;
  margin: 45px auto;
  border: 1px solid #787878;
}

.app-section .app-content .text-column p {
  font-size: 1.25rem;
  font-weight: 300;
  color: #6A6A6A;
  max-width: 500px;
  margin: auto auto 30px auto;
}

.app-section .app-content .text-column .btn-outline {
  display: inline-block;
  padding: 12px 40px;
  border: 3px solid #787878;
  border-radius: 8px;
  color: #787878;
  font-weight: bolder;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 20px;
}

.app-section .app-content .text-column .btn-outline:hover {
  background: #1e1e1e;
  color: white;
}

.app-section .app-content .mockup-column {
  flex: 1 1 400px;
  text-align: center;
  display: inherit;
}

.app-section .app-content .mockup-column img {
  max-width: 100%;
  height: auto;
}

/*------------------------
  CTA
--------------------------*/

.cta-section {
  position: relative;
  background: url('../images/backgrounds/background-cta.webp') center/cover no-repeat;
  padding: 60px 20px;
  color: white;
  overflow: hidden;
  position: relative;
  /* controla el alto aquí (elige uno): */
  min-height: clamp(520px, 60vh, 760px);   /* recomendado */
  /* padding vertical para respirar */
  padding-block: clamp(32px, 6vh, 64px);
  overflow: hidden; /* por si la imagen sobresale */
  position: relative;
  min-height: clamp(520px, 60vh, 760px);
  display: flex;           /* clave */
  align-items: center;     /* centra verticalmente el cta-container */
  overflow: hidden;
  padding-block: clamp(24px, 4vh, 56px); /* opcional, respiración */
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-container {
  /* position: relative; */
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* max-width: 1500px; */
  /* margin: 0 auto; */
  flex-wrap: wrap;
}

.cta-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  /* position: relative; */
  z-index: 2;
}

.cta-left img {
  
   /* invadir la derecha */
  margin-top: 0px; /* opcional si quieres que suba un poco */
  margin-left: 0;
            /* ocupa todo el alto de la sección */
             /* mantiene proporción */
       /* o usa width:50% + object-fit:cover si prefieres recorte */
  position: absolute;
  left:0;
  top:0;
  height:100%;
  width:auto;
  object-fit:cover;
  object-position:left center;
}

.cta-right {
  max-width: 500px;
  text-align: center;
}

.cta-right h2 {
  font-family: 'Inter', sans-serif;
  font-size: 50px;
  font-weight: 300;
  margin: 80px 0px;
}

.cta-right .highlight {
  color: #A2E12F; /* color verde flúor o similar */
  font-weight: 500;
}

.cta-logo {
  max-width: 360px;
  width: 100%;
  height: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

.store-button img {
  transition: transform 0.3s ease;
}

.store-button img:hover {
  transform: scale(1.05);
}

/* -------- Legal / Info Bar -------- */
.legal-bar{
  background: #ffffff;                     /* fondo claro para separar del héroe */
  border-top: 1px solid #E8E8E8;
  border-bottom: 1px solid #EFEFEF;
  color: #2A2A2A;
}

.legal-bar__container{
  max-width: 1300px;                       /* mismo ancho que footer */
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.2;
}

.legal-bar__links,
.legal-bar__contact{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.legal-bar a{
  color: #1F2533;                          /* mejor contraste */
  text-decoration: none;
  font-size: 14px;
  transition: color .2s ease, opacity .2s ease;
}

.legal-bar a:hover,
.legal-bar a:focus{
  color: #0C1736;                          /* tono marca */
  text-decoration: underline;
}

.legal-bar .sep{ color: #B9C0CC; }         /* separador discreto */

/* Responsive */
@media (max-width: 1024px){
  .legal-bar__container{
    padding: 12px 16px;
    gap: 10px;
  }
  .legal-bar a{ font-size: 13.5px; }
}

@media (max-width: 768px){
  .legal-bar__container{
    flex-direction: column;
    align-items: flex-start;
  }
  .legal-bar__contact{
    gap: 10px;
    opacity: .95;
  }
}

/* Modo oscuro (si en algún momento pones la sección sobre fondo oscuro) */
.dark .legal-bar{
  background: #0E1A3E;
  border-color: rgba(255,255,255,.08);
  color: #CFCDCD;
}
.dark .legal-bar a{ color: #E9EDF6; }
.dark .legal-bar a:hover{ color: #B8F243; }
.dark .legal-bar .sep{ color: rgba(255,255,255,.24); }


.footer-contact {
  background-color: #0C1736;
  padding: 80px 20px;
  color: #CFCDCD;
  font-family: 'Inter', sans-serif;
}

.footer-contact .footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 55px;
}

.footer-contact .footer-container .footer-left {
  flex: 1 1 35%;
}

.footer-contact .footer-container .footer-left img.footer-logo {
  margin-bottom: 20px;
}

.footer-contact .footer-container .footer-left p {
  font-size: 16px;
  color: #CFCDCD;
  line-height: 1.6;
}

.footer-contact .footer-container .footer-right {
  flex: 1 1 55%;
}

.footer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-header h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-contact .footer-container .footer-right h3 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 100;
}

.footer-contact .footer-container .footer-right .contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact .footer-container .footer-right .contact-form .input-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-contact .footer-container .footer-right .contact-form .input-group input,
.footer-contact .footer-container .footer-right .contact-form .input-group textarea,
.footer-contact .footer-container .footer-right .contact-form .email-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #787878;
  background-color: transparent;
  color: #CFCDCD;
  font-family: 'Inter', sans-serif;
}

.footer-contact .footer-container .footer-right .contact-form .input-group input::placeholder,
.footer-contact .footer-container .footer-right .contact-form .input-group textarea::placeholder,
.footer-contact .footer-container .footer-right .contact-form .email-input::placeholder {
  color: #787878;
}

.footer-contact .footer-container .footer-right .contact-form .submit-btn {
  align-self: flex-end;
  background-color: #A2E12F;
  color: #0C1736;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 20px 70px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.3s ease;
  font-size: 20px;
}

.footer-contact .footer-container .footer-right .contact-form .submit-btn:hover {
  background-color: #B8F243;
}

.footer-contact .footer-container .footer-right .footer-header .social-icons {
  display: flex;
  gap: 15px;
  color: #CFCDCD;
}

.footer-contact .footer-container .footer-right .contact-form .form-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-contact .footer-container .footer-right .contact-form .form-grid .left-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact .footer-container .footer-right .contact-form .form-grid textarea {
  flex: 1;
  resize: none;
}

.footer-contact .footer-container .footer-right .contact-form .form-grid input,
.footer-contact .footer-container .footer-right .contact-form .form-grid textarea {
  background: transparent;
  border: 1px solid #787878;
  border-radius: 8px;
  padding: 12px 16px;
  color: #CFCDCD;
  font-size: 15px;
}

.footer-contact .footer-container .footer-right .contact-form .form-grid input::placeholder,
.footer-contact .footer-container .footer-right .contact-form .form-grid textarea::placeholder {
  color: #787878;
}

.footer-contact .footer-container .footer-right .contact-form .submit-btn {
  align-self: flex-end;
  background-color: #A2E12F;
  color: #0C1736;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 14px 30px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.3s ease;
}

.footer-contact .footer-container .footer-right .contact-form .submit-btn:hover {
  background-color: #B8F243;
}


/* Hero text: desplazamiento estable por escalones */
@media (min-width: 1200px){
  .hero .hero-text{
    /* max-width: 1200px; */
    /* margin-right: auto; */
    /* margin-left: calc(50% - 600px - 50px); */   /* 1300px ≈ 50px de sesgo */
  }
}
@media (min-width: 1366px){
  .hero .hero-text{/* margin-left: calc(50% - 600px - 90px); */}
}
@media (min-width: 1440px){
  .hero .hero-text{/* margin-left: calc(50% - 600px - 130px); */}
}
@media (min-width: 1600px){
  .hero .hero-text{/* margin-left: calc(50% - 600px - 200px); */}
}
@media (min-width: 1920px){
  .hero .hero-text{/* margin-left: calc(50% - 600px - 225px); */} /* 1996px = bien */
}

/* Opcional: aire mínimo al borde en super-anchos */
@media (min-width: 1200px){
  .hero{/* padding-left: max(24px, calc(env(safe-area-inset-left) + 16px)); */}
}


@media (min-width: 1200px) and (min-height: 836px) {
  header {
    background: transparent;
    backdrop-filter: none;
  }
}
@media (max-width: 1200px) {

  .benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 60px 40px;
    flex-wrap: wrap;
    text-align: center;
  }

  .benefit {
    flex: 1 1 280px;
    max-width: 300px;
    padding: 20px;
    gap: 20px;
  }

  .feature-container,
  .club-features-container {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    gap: 30px;
  }

  .feature-container .feature-text,
  .club-text {
    flex: 1 1 auto;
    padding: 0 20px;
    max-width: 100%;
  }

  .feature-container .feature-images,
  .club-images {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .feature-container .feature-images img,
  .club-images img {
    max-width: 300px;
    height: auto;
  }

  .feature-container .feature-text h2,
  .club-text h2 {
    font-size: 2rem;
  }

  .feature-container .feature-text p,
  .club-text ul {
    font-size: 16px;
  }
  .footer-contact .footer-container {
    flex-direction: column;
    gap: 60px;
  }

  .footer-contact .footer-container .footer-left,
  .footer-contact .footer-container .footer-right {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-contact .footer-container .footer-right .footer-header {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-contact .footer-container .footer-right .contact-form .submit-btn {
    align-self: center;
  }

  .cta-container {
    padding: 0 40px;
  }

  .cta-left img {
    margin-right: -40px;
    max-width: 90%;
  }

  .cta-right h2 {
    font-size: 42px;
    margin: 60px 0;
  }
}


@media (max-width: 1024px) {

  .hero-wrapper {
    position: relative;
  }

  .hero-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* oscuro translúcido */
    z-index: 1;
  }

  .hero {
    position: relative;
    z-index: 2; /* para que el texto esté por encima del overlay */
  }

  .benefits {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
  }

  .benefit {
    max-width: 100%;
    text-align: center;
    flex: 1 1 120px;
  }

  .benefit img {
    max-width: 80px;
  }

  .benefit p {
    font-size: 16px;
    line-height: 1.5;
    padding: 0 10px;
  }


  .hero-wrapper > header .hamburger {
    display: block;
  }

  .hero > .hero-text h1{
    font-size: 28px;
  }

  .feature-container,
  .club-features-container,
  .app-content,
  .cta-container,
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .feature-container .feature-text,
  .club-text,
  .app-section .text-column,
  .cta-right,
  .footer-left,
  .footer-right {
    max-width: 100%;
    padding: 0 20px;
  }

  .about-racketpulse .features-container .mobile-image img{
    width: 100%;
  }

  .feature-container .feature-images .mockup{
    width: 100%;
  }

  .club-features-section .club-features-container .club-images img{
    width: 100%;
  }

  .feature-images,
  .club-images {
        flex-direction: column;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }


  header > .menu-wrapper {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: rgba(12, 23, 54, 0.95);
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
  }

  .menu-wrapper.open {
    display: flex;
  }

  header > .menu-wrapper > nav {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    text-align: center;
  }

  header > .menu-wrapper > nav a:hover {
    color: #A3FF12; /* Verde lima como acento */
  }

  header > .menu-wrapper > .social-icons {
    display: flex;
    justify-content: center;
    margin: 20px auto 0px auto;
    border: 0px;
    padding: 0px;
  }

  .benefits {

  }

  .cta-left {
    justify-content: center;
    margin-bottom: 30px;
  }

  .cta-left img {
    margin: 0 auto;
    max-width: 80%;
  }

  .btn-group .btn {
    margin: 10px 0;
  }

  .footer-header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-contact .form-grid {
    flex-direction: column;
  }

  .footer-contact .left-fields {
    width: 100%;
  }

  .hamburger {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1100;
  }

  .feature-container,
  .club-features-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding: 50px 25px;
  }

  .feature-container .feature-text,
  .club-text {
    max-width: 100%;
    padding: 0 20px;
  }

  .feature-container .feature-text h2,
  .club-text h2 {
    font-size: 2rem;
  }

  .feature-container .feature-text p,
  .club-text ul {
    font-size: 15px;
    line-height: 1.6;
  }

  .feature-container .feature-images,
  .club-images {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .feature-container .feature-images img,
  .club-images img {
    max-width: 280px;
    height: auto;
  }

  .club-text ul li {
    margin-bottom: 10px;
    text-align: left;
    padding-left: 30px;
    position: relative;
  }


  .feature-container .feature-text .btn-demo {
    padding: 12px 22px;
    font-size: 16px;
  }

  .feature-section {
    padding: 100px 0 10px 0;
  }

  .club-features-section, .pricing-section{
    padding: 0px 0px 100px 0px;
  }

  .club-divider{
    width: auto;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    justify-content: center;
  }

  .pricing-cards .pricing-card {
    width: 100%;
    max-width: 500px;
  }

  .pricing-cards .pricing-card h3 {
    font-size: 1.8rem;
  }

  .pricing-cards .pricing-card .price {
    font-size: 4rem;
    margin-bottom: 40px;
  }

  .pricing-cards .pricing-card .price p {
    font-size: 1.2rem;
  }

  .pricing-cards .pricing-card ul li {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 30px;
  }

  .pricing-cards .pricing-card .discount {
    font-size: 1.2rem;
    margin: 40px auto;
  }

  .pricing-cards .pricing-card .btn-green {
    font-size: 18px;
    padding: 18px 32px;
    margin-bottom: 40px;
  }

  .pricing-header h2 {
    font-size: 2rem;
  }

  .pricing-header p {
    font-size: 0.95rem;
  }

  .pricing-section .pricing-header hr {
    margin: 20px auto;
  }

  .footer-contact {
    padding: 60px 20px;
  }

  .footer-contact .footer-container .footer-left p {
    font-size: 15px;
  }

  .footer-contact .footer-container .footer-right h3 {
    font-size: 18px;
  }

  .footer-contact .footer-container .footer-right .contact-form .form-grid {
    flex-direction: column;
  }

  .footer-contact .footer-container .footer-right .contact-form .form-grid .left-fields {
    width: 100%;
  }

  .footer-contact .footer-container .footer-right .contact-form .submit-btn {
    padding: 14px 50px;
    font-size: 18px;
  }

  .cta-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 30px;
  }

  .cta-left {
    justify-content: center;
    margin-bottom: 30px;
  }

  .cta-left img {
    margin: 0 auto;
    max-width: 80%;
    position: relative;
  }

  .cta-right h2 {
    font-size: 36px;
    margin: 40px 0;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-right {
    max-width: 100%;
  }

}

@media (max-width: 768px) {


  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero > .hero-text {
    max-width: 100%;
  }

  .hero > .hero-text > .store-buttons{
    justify-content: center;
  }

  /* Estilo general de botones */
  .hero > .hero-text > .btn-group > .btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 10px;
    margin: 10px 5px;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    width: 100%;
    max-width: 280px;
    transition: all 0.3s ease;
  }

  /* Botón primario */
  .hero > .hero-text > .btn-group > .btn-primary {
    background-color: #BAF15B;
    border: 2px solid #BAF15B;
    color: #0a0e23;
  }

  /* Botón secundario */
  .hero > .hero-text > .btn-group > .btn-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
  }

  /* Hover */
  .hero > .hero-text > .btn-group > .btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
  }

  .hero-wrapper > .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-wrapper > header {
    flex-direction: column;
  }

  .about-racketpulse .features-container .features-column .feature-item{
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .about-racketpulse .features-container .features-column{
    gap: 100px;
  }

  .feature-container,
  .club-features-container {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
    gap: 20px;
  }

  .feature-container .feature-text h2,
  .club-text h2 {
    font-size: 1.8rem;
  }

  .feature-container .feature-text p,
  .club-text ul {
    font-size: 15px;
  }

  .why-choose h2{
    text-align: center;
  }

  .closer-look h2{
    text-align: center;
  }

  .closer-card__actions{
    justify-content: center;
  }

  .feature-container .feature-images img,
  .club-images img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .club-text ul li {
    margin-bottom: 12px;
  }

  .feature-container .feature-text .btn-demo {
    padding: 10px 20px;
    font-size: 14px;
  }

  .feature-section{
    padding: 80px 0 10px 0;
  }

  .footer-contact .footer-container .footer-left p {
    font-size: 14px;
  }

  .footer-contact .footer-container .footer-right h3 {
    font-size: 16px;
  }

  .footer-contact .footer-container .footer-right .contact-form input,
  .footer-contact .footer-container .footer-right .contact-form textarea {
    font-size: 14px;
    padding: 10px 14px;
  }

  .footer-contact .footer-container .footer-right .contact-form .submit-btn {
    font-size: 16px;
    padding: 12px 40px;
  }

  .footer-contact .footer-container .footer-right .footer-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .cta-section {
    padding: 40px 20px;
  }

  .cta-right h2 {
    font-size: 30px;
    margin: 30px 0;
  }

  .cta-left img {
    max-width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cta-right .cta-logo {
    max-width: 240px; /* más pequeño en móviles */
  }
}




/* ------------------------------
  Alerts section
------------------------------ */


.form-message {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  max-width: 420px !important;
  z-index: 99999 !important;
  opacity: 0 !important;
  transform: translateX(100%) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  font-family: 'Inter', sans-serif !important;
  display: block !important;
  pointer-events: auto !important;
}

.form-message.show {
  transform: translateX(0) !important;
  opacity: 1 !important;
}

.form-message.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
}

.form-message.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
}

.message-content {
  display: flex !important;
  align-items: flex-start !important;
  padding: 20px !important;
  gap: 15px !important;
}

.message-icon {
  flex-shrink: 0 !important;
  width: 24px !important;
  height: 24px !important;
  margin-top: 2px !important;
}

.message-text {
  flex: 1 !important;
  min-width: 0 !important;
}

.message-title {
  font-weight: 700 !important;
  font-size: 16px !important;
  margin-bottom: 4px !important;
  line-height: 1.2 !important;
}

.message-description {
  font-size: 14px !important;
  line-height: 1.4 !important;
  opacity: 0.95 !important;
}

.message-close {
  flex-shrink: 0 !important;
  background: none !important;
  border: none !important;
  color: currentColor !important;
  cursor: pointer !important;
  padding: 4px !important;
  border-radius: 4px !important;
  transition: background-color 0.2s ease !important;
  margin-top: -2px !important;
}

.message-close:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.message-progress {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 3px !important;
  background-color: rgba(255, 255, 255, 0.3) !important;
  transform-origin: left !important;
  animation: progress 5s linear forwards !important;
}

@keyframes progress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@media (max-width: 768px) {
  .form-message {
    top: 10px !important;
    right: 10px !important;
    left: 10px !important;
    max-width: none !important;
    transform: translateY(-100%) !important;
  }

  .form-message.show {
    transform: translateY(0) !important;
  }

  .message-content {
    padding: 16px !important;
    gap: 12px !important;
  }

  .message-title {
    font-size: 15px !important;
  }

  .message-description {
    font-size: 13px !important;
  }
}

/* Loading state para el formulario */
.contact-form.loading .submit-btn {
  background-color: #cccccc !important;
  cursor: not-allowed !important;
  position: relative !important;
}

.contact-form.loading .submit-btn:after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 16px !important;
  height: 16px !important;
  margin: -8px 0 0 -8px !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  border-top-color: transparent !important;
  animation: spin 1s linear infinite !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.contact-form.loading .submit-btn span {
  opacity: 0 !important;
}


/* ------------------------------
  FIN Alerts section
------------------------------ */

