/**
 * Estilos optimizados para NadirCoach
 * - Variables CSS globales
 * - Eliminación de código redundante
 * - Mejoras responsive
 * - Eliminación del subrayado en navbar
 */

 :root {
    /* Variables de color */
    --fondoPrincipal: #0e0b0b;
    --colorPrincipal: #00BFFF;
    --textoPrincipal: #D9D9D9;
    --azulElectrico: #2A73D9;
    --Bordes: #666666;
    
    /* Tipografía con fallbacks */
    --fuentePrincipal: 'Montserrat', 'Segoe UI', sans-serif;
}

@media (min-width: 1440px) { html { font-size: 18px; } }
@media (min-width: 1920px) { html { font-size: 20px; } }
@media (max-width: 768px) { html { font-size: 14px; } }
@media (max-width: 480px) { html { font-size: 13px; } }


/* Reset global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    list-style: none;
    color: #F5F5F5;
    font-family: var(--fuentePrincipal);
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth; /* Scrolling suave */
}

body {
    line-height: 1.6;
}

/* ==================
   HEADER Y NAVEGACIÓN
   ================== */
   header {
    background-color: var(--fondoPrincipal);
    height: 3.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1em;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Logo header */
header .logo {
    font-size: 1.2em;
    font-weight: 900;
    display: flex;
    align-items: center;
}

header .logo span {
    font-weight: 400;
    color: var(--textoPrincipal);
}

header .logo img {
    height: 50px;
    width: auto;
}

/* Navegación móvil */
header nav {
    position: absolute;
    top: 3.5em;
    right: 1em;
    background-color: var(--fondoPrincipal);
    border-radius: 5px;
    width: 75%;
    max-width: 400px;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

header nav a {
    display: block;
    color: #FFFFFF; /* Texto blanco para la navegación móvil */
    letter-spacing: .08em;
    padding: 0.95em 0;
    text-align: center;
    border-bottom: 1px solid rgba(217, 217, 217, 0.2);
    transition: all 0.2s ease-in-out;
}

header nav a:last-child {
    border-bottom: none;
}

header nav a:hover {
    background-color: var(--colorPrincipal);
    color: var(--fondoPrincipal);
    border-radius: 5px;
}

/* Icono del menú móvil */
#menu-icon {
    padding: 10px;
    font-size: 1.25em;
    cursor: pointer;
    color: var(--textoPrincipal);
}

/* Clases para JavaScript */
.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.menu-active {
    background-color: var(--colorPrincipal);
    border-radius: .1em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Query para Desktop - NAVBAR */
@media only screen and (min-width: 720px) {
    header nav {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
        position: static;
        max-width: none;
        width: 100%;
        box-shadow: none;
    }

    header nav a {
        padding: 0;
        margin-left: .8em;
        color: var(--textoPrincipal); /* Restaura el color original en desktop */
        font-weight: 700;
        font-size: medium;
        position: relative;
        transition: color 0.2s ease;
        background-color: transparent !important;
        border-bottom: none;
    }

    /* Efecto hover sin subrayado */
    header nav a:hover {
        color: var(--colorPrincipal);
        background-color: transparent !important;
    }

    #navbar {
        display: flex;
        gap: 1.5em;
    }

    #navbar a {
        padding: 0 10px;
    }

    #menu-icon {
        display: none;
    }
}


/* ==================
   SECCIÓN INICIO
   ================== */
   #inicio {
    height: calc(100vh - 3.5em);
    background: linear-gradient(0, rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url(../img/Imagen\ de\ WhatsApp\ 2025-04-29\ a\ las\ 16.09.05_32e2bb1d.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
}

#inicio .text {
    color: var(--textoPrincipal);
    padding: 2.5em;
}

#inicio .text h2 {
    font-size: clamp(1.5em, 5vw, 2.5em); /* Fuente responsive */
    text-transform: uppercase;
    margin-bottom: 0.75em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Botón llamada a la acción */
.btn {
    background-color: var(--azulElectrico);
    padding: .8em 2em;
    border-radius: .2em;
    color: var(--textoPrincipal);
    font-size: .9em;
    letter-spacing: .08em;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}



.btn:hover {
    background-color: #f5f5f5;
    color: var(--azulElectrico);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Ajuste para la versión responsive */
@media only screen and (max-width: 768px) {
    #inicio {
        align-items: flex-end; /* Alinea el contenido hacia abajo */
        padding-bottom: 5em; /* Añade espacio en la parte inferior */
    }
}

/* ==================
   SECCIÓN SOBRE MI
   ================== */
#sobreMi {
    background: linear-gradient(135deg, rgba(15,15,15,0.95), rgba(30,30,30,0.95)), url('../img/bg-textura-gym.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5em 1em;
    color: var(--textoPrincipal);
}

#sobreMi .container {
    max-width: 1200px;
    margin: 0 auto;
}

#sobreMi .title {
    text-align: center;
    margin-bottom: 1em;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--azulElectrico);
    margin-bottom: 1rem;
    font-weight: 700;
}


#sobreMi .content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    align-items: flex-start;
}

#sobreMi .left-box {
    flex: 1 1 40%;
    max-width: 450px;
}

#sobreMi .left-box-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-image: url(../img/Imagen\ de\ WhatsApp\ 2025-04-29\ a\ las\ 16.09.05_cace1f1c.webp);
    background-position: center;
    background-size: cover;
    border-radius: 1em;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

#sobreMi .right-box {
    flex: 1 1 50%;
    padding: 0 1em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

/* Clase añadida vía JavaScript */
#sobreMi.visible .right-box {
    opacity: 1;
    transform: translateY(0);
}

#sobreMi .subtitle {
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: 1.5em;
    color: var(--azulElectrico);
}

#sobreMi .right-box p {
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.2em;
}

#sobreMi .features {
    padding-left: 0;
    margin-bottom: 2em;
}

#sobreMi .features li {
    display: flex;
    align-items: center;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0.75em;
}

#sobreMi .features li i {
    background: var(--azulElectrico);
    color: white;
    border-radius: 50%;
    padding: 0.4em;
    margin-right: 0.7em;
    font-size: 1em;
}

@media only screen and (max-width: 720px) {
    #sobreMi .content-container {
        flex-direction: column;
        gap: 1em;
    }
    
    #sobreMi .subtitle {
        text-align: center;
        margin-top: 0.5em;
    }
    
    #sobreMi .left-box {
        order: 1;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    #sobreMi .right-box {
        order: 2;
        padding: 0;
        width: 100%;
    }
    
    #sobreMi .right-box p {
        text-align: center;
    }
    
    #sobreMi .features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8em;
        justify-content: center;
        margin-top: 1.5em;
    }
    
    #sobreMi .features li {
        font-size: 0.9em;
        margin-bottom: 0;
    }
}

/* ==================
   TRANSICIÓN SOBRE MÍ -> PRECIOS
   ================== */
.transition-section {
    background: linear-gradient(45deg, var(--fondoPrincipal), #1a1a1a);
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.transition-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--azulElectrico), transparent);
    animation: slide 3s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.transition-content h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--azulElectrico);
    margin-bottom: 1rem;
    font-weight: 600;
}

.transition-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--textoPrincipal);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==================
   SECCIÓN PRECIOS
   ================== */
#precios {
    background: linear-gradient(135deg, var(--fondoPrincipal), #1a1a1a);
    padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 3vw, 3rem);
    text-align: center;
    position: relative;
}

#precios::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(14, 11, 11, 0.8), transparent);
    pointer-events: none;
}

#precios .title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--azulElectrico);
    margin-bottom: 1rem;
    font-weight: 700;
}

#precios .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--textoPrincipal);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Layout responsive para tarjetas */
#precios .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1400px;
    margin: 0 auto;
}

/* Tarjetas responsive */
#precios .price-box {
    position: relative;
    text-align: center;
    height: clamp(550px, 70vh, 650px);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 3px solid #444;
    border-radius: 1rem;
    background: rgba(34, 34, 34, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

#precios .price-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(42, 115, 217, 0.2);
}

/* Imágenes de fondo para tarjetas */
.semi-presencial::before,
.virtual::before,
.rutina-personalizada::before {
    content: "";
    background-size: cover;
    background-position: center top 5%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 0;
}

.semi-presencial::before {
    background: url('../img/Imagen\ de\ WhatsApp\ 2025-04-29\ a\ las\ 16.09.05_86acbf3e.webp') no-repeat center 75%;
    background-size: cover;
}

.virtual::before {
    background: url('../img/Imagen\ de\ WhatsApp\ 2025-04-29\ a\ las\ 16.09.05_db37ed22.webp') no-repeat center 75%;
    background-size: cover;
}

.rutina-personalizada::before {
    background: url('../img/Imagen\ de\ WhatsApp\ 2025-05-27\ a\ las\ 15.22.22_e2fcdfb8.jpg') no-repeat center 75%;
    background-size: cover;
}

/* Precio */
#precios .price-box h3 {
    font-size: 1.6em;
    font-weight: bold;
    position: absolute;
    top: 1em;
    right: 1em;
    z-index: 1;
}

#precios .price-box h3 span {
    font-size: 2.2em;
    font-weight: 800;
}

/* Contenedor para nombre del plan y lista de características */
#precios .plan-content {
    position: absolute;
    bottom: 5em;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nombre del plan */
#precios .price-box h4 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0em;
    z-index: 1;
}

/* Lista de características */
#precios .activities {
    width: 100%;
    text-align: left;
    z-index: 1;
    margin-bottom: 1em;
}

#precios .activities li {
    font-size: 1em;
    padding-top: .4em;
    display: flex;
    align-items: center;
}

#precios .activities li i {
    padding-right: .5em;
    font-weight: 700;
    font-size: 1.2em;
}

#precios .activities li i.fa-circle-check {
    color: #28a745;
}

#precios .activities li i.fa-circle-xmark {
    color: #dc3545;
}

/* Botón WhatsApp */
#precios .whatsapp-button {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    font-size: 1em;
    font-weight: bold;
    padding: 0.7em 1.2em;
    border-radius: 0.5em;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    position: absolute;
    bottom: 1.2em;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    z-index: 1;
}

#precios .whatsapp-button:hover {
    background-color: #0056b3;
    transform: translateX(-50%) translateY(-3px);
}

/* Responsive para precios */
@media (max-width: 768px) {
    #precios .price-box {
        height: auto;
        min-height: 500px;
    }
    
    #precios .plan-content {
        bottom: 5.5em;
    }
    
    #precios .row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

  .virtual::before {
    background: url('../img/Imagen\ de\ WhatsApp\ 2025-04-29\ a\ las\ 16.09.05_db37ed22.webp') no-repeat center 75%;
    background-size: cover;
}

.semi-presencial::before {
    background: url('../img/Imagen\ de\ WhatsApp\ 2025-04-29\ a\ las\ 16.09.05_86acbf3e.webp') no-repeat center 75%;
    background-size: cover;
}

.rutina-personalizada::before {
    background: url('../img/Imagen\ de\ WhatsApp\ 2025-05-27\ a\ las\ 15.22.22_e2fcdfb8.jpg') no-repeat center 75%;
    background-size: cover;
}
}



/* ==================
   SECCIÓN CONTACTO
   ================== */
#contacto {
  padding: 5em 2em;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(25, 25, 25, 0.95));
  text-align: center;
}

#contacto .container {
  max-width: 1000px;
  margin: 0 auto;
}

.intro-contacto h2 {
  font-size: clamp(2rem, 5vw, 3rem);
    color: var(--azulElectrico);
    margin-bottom: 1rem;
    font-weight: 700;
}

.intro-contacto p {
  font-size: 1.2em;
  color: var(--textoPrincipal);
  margin-bottom: 2em;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  flex-wrap: wrap;
  margin-bottom: 3em;
}

.whatsapp-btn,
.form-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.5em;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1em;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  min-width: 160px;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #20b358);
  color: white;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #20b358, #1a9448);
  transform: translateY(-2px);
}

.form-btn {
  background: linear-gradient(135deg, var(--azulElectrico), #1e5bb8);
  color: white;
}

.form-btn:hover {
  background: linear-gradient(135deg, #1e5bb8, #1548a0);
  transform: translateY(-2px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2em 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.contact-card i {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: var(--azulElectrico);
}

.contact-card p {
  font-size: 1.05em;
  color: var(--textoPrincipal);
  word-break: break-word;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  align-items: center;
  margin-top: 2em;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-size: 1.1em;
  color: var(--textoPrincipal);
  transition: all 0.3s ease;
}

.contact-line i {
  font-size: 1.5em;
  color: var(--azulElectrico);
}

.contact-line a {
  color: var(--textoPrincipal);
  text-decoration: none;
  font-weight: 600;
}

.contact-line a:hover {
  color: var(--azulElectrico);
  text-decoration: underline;
}

.contact-line span {
  font-weight: 500;
}


/* ==================
   FOOTER
   ================== */
footer {
    background-color: var(--Bordes);
    height: 2em;
}

footer .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .container p {
    font-size: .85em;
}

/* Tablets grandes y laptops pequeñas */
@media (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 0 2rem;
    }
    
    #precios .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    #precios .row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    #precios .price-box {
        height: auto;
        min-height: 500px;
    }
}

/* TVs y pantallas grandes */
@media (min-width: 1440px) {
    .container, #precios .row {
        max-width: 1600px;
    }
    
    #precios .price-box {
        height: clamp(600px, 60vh, 700px);
    }
}

/* Pantallas ultra anchas */
@media (min-width: 1920px) {
    body {
        max-width: 2400px;
        margin: 0 auto;
    }
}