* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #111;
    color: #fff;
    line-height: 1.6;
}

/* HEADER */
header {
    background: linear-gradient(90deg, #ff0000, #000);
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 40px;
}

/* NAV */
nav {
    display: flex;
    justify-content: center;
    background: #000000;
}

nav a {
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    background: #ff0000;
}

/* SECCIONES */
section {
    padding: 40px;
    max-width: 900px;
    margin: auto;
}
section img{
    height: 300px;
}
#GYM img{
width: 200px;
}

h2 {
    color: #ff0000;
    margin-bottom: 15px;
}

/* BLOQUE MOTIVACIÓN */
blockquote {
    margin-top: 20px;
    font-style: italic;
    border-left: 5px solid red;
    padding-left: 15px;
}

/* TABLA */
table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #fafafa;
}

th, td {
    padding: 10px;
    text-align: center;
}

/* BOTÓN */
.accion {
    text-align: center;
}

button {
    background: red;
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

button:hover {
    background: darkred;
}

/* FOOTER */
footer {
    background: #000;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.card:hover {
    transform: scale(1.05);
    background: #ff0000;
}
nav {
    display: flex;
    justify-content: center;
    background: #000;
}

nav a {
    color: #fff;
     position: relative;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.5s ease, background 0.5s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 0;
    height: 3px;
    background: red;
    transition: all 0.5s ease;
}

nav a:hover::after {
    width: 60%;
    left: 20%;
}
 .container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #1c1c1c;
    border-radius: 15px;
    color: #fff;
}

h1 {
    text-align: center;
    color: #ff0000;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

input, select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    margin-top: 5px;
}

button {
    width: 100%;
    padding: 15px;
    background: red;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.4s;
    margin-top: 15px;
}

button:hover {
    background: darkred;
}

#resultado {
    margin-top: 30px;
    padding: 20px;
    background-color: #222;  /* Contraste con el texto */
    border-radius: 10px;
    color: #fff;             /* Texto blanco */
}

#resultado table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

#resultado th, #resultado td {
    border: 1px solid #ff0000;   /* Bordes rojos para resaltar */
    padding: 12px;
    text-align: center;
}

#resultado th {
    background-color: #ff0000;   /* Encabezado destacado */
    color: #fff;
}

#resultado td {
    background-color: #333;      /* Filas oscuras */
    color: #fff;
}

#resultado p {
    font-size: 16px;
    margin-bottom: 10px;
}
/* Estado inicial (oculto) */


/* CONTENEDOR FRASE - ANIMACIÓN PRO */
.frase-container {
    opacity: 0;
    transform: translateY(40px);
    animation: aparecerFrase 0.9s ease-out forwards;
    animation-delay: 0.3s;
}

/* ENTRADA */
@keyframes aparecerFrase {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GLOW FITNESS SUTIL */
.frase-box {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 12px rgba(255, 0, 0, 0.2);
    }
    to {
        box-shadow: 0 0 28px rgba(255, 0, 0, 0.55);
    }
}
/* ===== ANIMACIONES GENERALES ===== */

/* Estado oculto inicial */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease;
}

/* Cuando aparece */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Entrada del header */
header {
    animation: headerEntrada 1s ease-out forwards;
}

@keyframes headerEntrada {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Entrada del nav */
nav {
    animation: navEntrada 1.2s ease-out forwards;
}

@keyframes navEntrada {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}