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

    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    font-family: sans-serif;
    color: #eee;
    line-height: 1.6;


}
#Planes , #Horarios , #Sobre-mi , #Contactos {
    scroll-margin-top: 100px ;
}

header, header a {
    background-color: #111;
    color: #c6cf29;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 1;
    width: 100%;
    background-color: #0a0a0a66;
    backdrop-filter: blur(4px);
    
}
nav h1, nav ul, li {
    display: inline-block;
/*10px 40px*/
}

nav ul {
    margin-right: 20px;

}

nav li {
    margin: 10px;
}
nav li a {
    color: #eee;
    text-decoration: none;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
    background-color: #0f00;
}

nav li a::after {

    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;

    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background-color: #c6cf29;
    transition: transform 0.2s ease;
}

nav li a:hover::after {
    transform: scaleX(1);
}

nav i {
    position: relative;
    top: -1px;
    font-size: 25px;

}

nav h1 {
    margin-right: 0;
    text-transform: uppercase;
    margin-top: 20px;
    margin-left: 40px;
    margin-bottom: 20px;
    font-size: 32px;
}

.main {
    display: flex;
    flex-direction: column;
    gap: 100px;


}

.hero {
    height: 100vh;
    background: url('hombre.webp');
    background-position: center;
    background-size: cover;
    position: relative;
    text-align: center;
    animation: FadeIn 1s ease;
    mask-image: linear-gradient(
        #0ff 80%,
        transparent
    );
}

.hero::before {
    content: "";
    z-index: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    background-color: #0007;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero h2 {
    font-size: 48px;
    color: #c6cf29;
    position: relative;
    margin-bottom: 40px;
    opacity: 0;

    animation: FadeIn 0.8s ease both;
    animation-delay: 100ms;

}

.hero h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #c6cf29;
}
.hero p {
    font-size: 20px;
    opacity: 0;

    animation: FadeIn 0.8s ease both;
    animation-delay: 300ms;

}
.hero a {
    opacity: 1;
    transform: translateY(0);
    animation: FadeIn 0.8s ease backwards;
    animation-delay: 500ms;
    transition: all 0.3s ease;
}
.hero a, .cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #c6cf29;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
}

.hero a:hover, .cta-button:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(198, 207, 41, 0.5);
}



#Planes {
    margin-top: 50px;
    color: #c6cf29;

}

.plan__container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch; /* Los divs wrapper se estiran igual de alto */
}

/* Los divs wrapper son flex containers */
.plan__container > div {
    display: flex;
}

#Planes li {
    margin: 10px 30px;
}

#Planes h2 {
    text-align: center;
    font-size:48px;
    position: relative;
}

#Planes h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #c6cf29;
}

.plan-basico, .plan-full {
    width: 410px;
    box-shadow: 0 0 30px #444;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid #c6cf29;
    color: #eee;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 28px  28px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex: 1; /* Ocupan toda la altura disponible del wrapper */
}

.plan-basico p, .plan-full p {
    text-transform: none;
    border-left: 2px solid #c6cf29;
    text-align: left;
    padding-left: 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.plan-basico h3, .plan-full h3 {
    font-size: 2rem;
    color: #c6cf29;
    
}

#Planes div {
    text-align: center;
}

.plan-basico:hover, .plan-full:hover {
    transform: scale(1.04) translateZ(0) !important;
}

.beneficios li {
    border-bottom: 1px solid #333;
    transition: color 0.3s;
}

.beneficios li:hover, #Planes p:hover {
    color: #c6cf29;
}
.sobre_mi {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    gap: clamp(50px, 8vw, 100px);
    justify-content: center;

}


.sobre__h2 {
    font-size: clamp(32px, 5vw, 48px);
    color: #c6cf29;
    position: relative;
    text-align: center;
}
.sobre__h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #c6cf29;
}
.sobre__container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(30px, 6vw, 90px);
}

.img__container {
    background-color: #333;
    flex-basis: clamp(300px, 45%, 577px);
    min-width: 300px;
    padding: 20px;
    font-size: clamp(28px, 4vw, 42px);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    gap: 20px;
    color: #eee;
    border: 1px solid #777;
}

.container__p {
    font-size: clamp(18px, 2.5vw, 24px);
    color: #c6cf29;
    font-weight: 700;
}

.sobre__img {
    width: 100%;           
    height: clamp(400px, 50vw, 600px);          
    object-fit: cover;      
    object-position: 70%;
    border-radius: 10px;  
}

.sobre__p {
    width: 100%;
    max-width: 700px;
    color: #ddd;
    padding: 20px;
    font-size: clamp(16px, 2vw, 20px);
    text-transform: uppercase;
    line-height: 1.6;
}



.contacto {
    margin-top: 600px;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 10px;
    margin: auto;
    width: 100%;
    max-width: 900px;
    padding: 60px;
    border: 2px solid #c6cf29;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#Contactos h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 0px;
    position: relative;
}

.contactos__subtitle {
    text-align: center;
    font-size: 22px;
    margin-bottom: 30px;
}

.contacto__label {
    display: block;
    color: #d6cf29;
}

#Contactos h2 {
    color: #c6cf29;
}

.contacto input, .contacto textarea {
    padding: 8px;
    font-size: 18px;
    border-radius: 10px;
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #333;
    color: #eee;
}

.contacto input:focus, .contacto textarea:focus {
    border: 2px solid #c6cf29;
}
.contacto textarea {
    font-family: sans-serif ;
    resize: vertical;
}

/* Estilo del botón con efecto amarillo y negro */
.button {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    margin-top: 10px;
}

/* Efecto de brillo que pasa por el botón */
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    transition: left 0.5s;
}

.button:hover::before {
    left: 100%;
}

/* Efectos hover */
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
}

/* Efecto cuando se presiona */
.button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Efecto de focus para accesibilidad */
.button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
}

.contactos__direct {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
}

.contactos__item {
    text-align: center;
}
.contactos__item a {
    color: #c6cf29;
    text-decoration: none;
}

.footer {
    margin-top: 100px;
    background-color: #111;
    width: 100%;
    height: 230px;
    text-align: center;
    border-top: 2px solid #c6cf29;
}

.foot-h3 {
    color: #c6cf29;
    padding: 20px 20px 15px 20px;
}

.foot-text {
    margin-bottom: 60px;
}
.foot-copy {
    color: #7d7d7d;
    font-size: 13px;
}






@media screen and (max-width: 768px) {
    

    nav h1 {
        font-size: 20px;
        margin-left: 20px;
    }
    
    nav ul {
        margin-right: 10px;
    }
    
    nav li {
        margin: 5px;
    }
    

    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }

    #Planes h2, #Horarios h2, #Testimonios h2, #Contactos h2 {
        font-size: 36px;
    }
    

    .plan-basico, .plan-full {
        width: 90%;
        margin: 20px auto;
        display: block;
    }
    

    .sobre_mi {
        gap: 40px;
        padding: 30px 15px;
    }
    
    .sobre__container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .img__container {
        flex-basis: 100%;
        max-width: 500px;
    }
    
    .sobre__img {
        height: 400px;
    }
    
    .sobre__p {
        padding: 15px;
        text-align: center;
    }


    .contacto {
        padding: 40px 30px;
    }
}


@media screen and (max-width: 480px) {
    

    nav {
        text-align: center;
    }
    
    nav h1 {
        font-size: 18px;
        margin-left: 20px;
        margin-bottom: 15px;
    }
    
    nav ul {
        margin: 0;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 5px 8px;
        display: inline-block;

    }
    
    nav li a {
        font-size: 14px;
        display: block;
    }
    nav li a::after {

    bottom: -5px;

}

    .hero h2 {
        font-size: 28px;
        margin-bottom: 20px;
        padding: 0 20px;
    }
    
    .hero p {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .hero a {
        display: inline-block;
        margin-top: 20px;
        padding: 12px 24px;
        background-color: #c6cf29;
        color: #0a0a0a;
        text-decoration: none;
        border-radius: 25px;
        font-weight: bold;
    }
    

    #Planes h2, #Horarios h2, #Testimonios h2, #Contactos h2 {
        font-size: 28px;
        padding: 0 20px;
    }
    

    #Planes {
        padding: 0 20px;
    }
    
    .plan-basico, .plan-full {
        width: 100%;
        margin: 20px 0;
        display: block;
    }
    
    #Planes li {
        margin: 8px 20px;
        font-size: 14px;
    }
    

    .sobre_mi {
        gap: 30px;
        padding: 20px 10px;
    }
    
    .sobre__container {
        gap: 30px;
    }
    
    .img__container {
        padding: 15px;
        gap: 15px;
        min-width: 280px;
    }
    
    .sobre__img {
        height: 350px;
    }
    
    .sobre__p {
        padding: 10px;
        font-size: 14px;
        line-height: 1.8;
    }


    #Contactos {
        padding: 0 20px;
    }
    
    .contacto {
        padding: 30px 20px;
        margin-bottom: 50px;
    }
    
    .cps {
        margin: 30px 0;
    }
    
    .cps h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .cps p {
        font-size: 14px;
    }
    

    .footer {
        height: auto;
        padding: 30px 20px;
    }
    
    .foot-h3 {
        font-size: 20px;
    }
    
    .foot-text {
        margin-bottom: 30px;
        font-size: 14px;
    }
    
    .foot-copy {
        font-size: 12px;
    }
}


@media screen and (max-width: 360px) {
    
    nav h1 {
        font-size: 16px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    #Planes h2, #Horarios h2, #Testimonios h2, #Contactos h2 {
        font-size: 24px;
    }
    
    .plan-basico h3, .plan-full h3 {
        font-size: 24px;
    }
    
    .img__container {
        min-width: 260px;
        padding: 10px;
    }
    
    .sobre__img {
        height: 300px;
    }
    
    .sobre__p {
        font-size: 13px;
    }

}