/* ================== ESTILO DEPORTIVO FITLY ================== */
:root{
    --fitly-main: #01d1d4;
    --fitly-dark: #0f172a;
    --fitly-gray: #64748b;
    --fitly-bg: #f8fafc;
}

/* ===== FIX GLOBAL OVERFLOW ===== */
html, body{
    max-width: 100%;
    overflow-x: hidden;
}

body{
    background: var(--fitly-bg);
    color: var(--fitly-dark);
}

/* IMÁGENES GLOBAL */
img{
    max-width: 100%;
    height: auto;
    display: block;
}

/* BOTONES */
.btn-primary{
    background-color: var(--fitly-main);
    border-color: var(--fitly-main);
    font-weight: 600;
}

.btn-primary:hover{
    background-color: #00b8bb;
    border-color: #00b8bb;
}

/* ================= HERO ================= */
#hero{
    height: 100vh;
    width: 100%;
    background-image: url('../../assets/img/portada.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden; /* FIX */
}

#hero::after{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
}

.hero-content{
    position: relative;
    z-index: 2;
}

.hero-slogan{
    color:#fff;
    font-weight:700;
    letter-spacing:1px;
}

/* FLECHA */
.hero-arrow{
    position:absolute;
    bottom:30px;
    font-size:2.5rem;
    color:#fff;
    animation:bounce 1.5s infinite;
    z-index:3;
}

@keyframes bounce{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(10px)}
}

/* ================= SECCIONES ================= */
.section{
    padding:80px 0;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    color:var(--fitly-main);
    font-weight:800;
}

/* ================= CARDS ================= */
.card{
    border:none;
    border-radius:18px;
    box-shadow:0 20px 40px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover{
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,.15);
}

/* ================= IMÁGENES ================= */
.img-section{
    border-radius:18px;
    box-shadow:0 20px 40px rgba(0,0,0,.15);
    width:100%;
    transition: transform .4s ease;
}

.img-section:hover{
    transform: scale(1.03);
}

/* BOTONES */
.btn{
    transition: all .3s ease;
}

.btn:hover{
    transform: scale(1.05);
}

/* ================================
   RESPONSIVE MOVIL - FITLY
================================ */

/* HERO */
@media (max-width: 768px) {

  #hero {
    min-height: 85vh;
    padding: 20px;
    background-attachment: scroll; /* FIX PARALLAX */
  }

  .hero-content img {
    width: 280px !important;
  }

  .hero-slogan {
    font-size: 1.2rem;
    padding: 0 10px;
  }

  .hero-arrow {
    bottom: 20px;
  }
}

/* HEADER */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  header nav {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  header nav a {
    flex: 1;
  }
}

/* SECCIONES */
@media (max-width: 768px) {

  .section {
    padding: 30px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }
}

/* IMÁGENES */
@media (max-width: 768px) {

  .img-section {
    border-radius: 12px;
    margin-bottom: 15px;
  }
}

/* CARDS */
@media (max-width: 768px) {

  .card {
    padding: 20px !important;
  }

  .card h2,
  .card h3 {
    font-size: 1.4rem;
  }

  .card p,
  .card li {
    font-size: 0.95rem;
  }
}

/* FEATURES */
@media (max-width: 768px) {

  #features .col-md-4 {
    text-align: center;
  }
}

/* FORMULARIO */
@media (max-width: 768px) {

  input.form-control,
  textarea.form-control {
    padding: 12px;
    font-size: 1rem;
  }

  button.btn {
    padding: 12px;
    font-size: 1rem;
  }
}

/* FOOTER */
@media (max-width: 768px) {

  footer {
    font-size: 0.85rem;
    padding: 15px;
  }
}

/* ================= MISIÓN · VISIÓN · VALORES ================= */

.fitly-mvv {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(4px);
}

.fitly-mvv-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.fitly-mvv-card i {
    color: var(--fitly-main);
}

.fitly-mvv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(0,0,0,.12);
}

