﻿/* Animación de entrada desde abajo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* Inicia más abajo */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* La tarjeta se anima primero */
.tarjeta_membresia {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.1s; /* Pequeño retraso antes de que aparezca */
}

    /* Luego los elementos internos con sus propios retrasos */
    .tarjeta_membresia > * {
        opacity: 0;
        animation: fadeInUp 0.6s ease-out forwards;
    }

    /* Retrasos individuales */
    .tarjeta_membresia h1 {
        animation-delay: 0.4s;
    }

    .tarjeta_membresia h2 {
        animation-delay: 0.5s;
    }

    .tarjeta_membresia h3 {
        animation-delay: 0.6s;
    }

    .tarjeta_membresia p {
        animation-delay: 0.7s;
    }

.input-cont {
    animation-delay: 0.8s;
}

.secondary {
    animation-delay: 0.9s;
}



.h1-logo-container {
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: space-between; /* Mueve el logo a la derecha */
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
}

.svg-container {
    width: 40px; /* Ajusta el tamaño */
    height: auto;
}


.tarjeta_membresia {
    height: 550px;
    width: 450px;
    display: flex;
    background-color: #FCFCFC; /* Fondo blanco fijo */
    border-radius: 25px 25px 70px 70px;
    box-shadow: 2px 12px 25px rgba(162, 82, 129, 0.8);
    padding: 50px;
    position: relative;
    overflow: hidden;
}

    .tarjeta_membresia::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 200 50'%3E%3Ctext x='0' y='50' font-size='40' fill='rgba(0,0,0,0.8)' font-family='Lilita+One' transform='rotate(-40)'%3ERASTI%3C/text%3E%3C/svg%3E");
        background-repeat: repeat;
        background-size: 80px 60px;
        opacity: 0.07; 
        z-index: 0;
    }

/* Asegurar que el contenido no se vea afectado */
.tarjeta_membresia > * {
    position: relative;
    z-index: 1;
}


    .tarjeta_membresia h1 {
        margin-left: 10px;
        font-family: 'Lilita One';
        font-size: 2.8rem;
        color: #333333; /* #A25281;*/
        text-align: justify;
        direction: ltr;
    }

    .tarjeta_membresia h2 {
        color: #444444;
        font-size: 1.4rem;
        text-align: justify;
        direction: ltr;
    }

    .tarjeta_membresia h3 {
        display: block;
        color: #2C2C2C;
        font-size: 22px;
        font-weight: 400;
        text-align: center;
        margin-right: 20px;
        text-indent: 20px;
        line-height: 1.2;
    }

    .tarjeta_membresia p {
        margin-top:10px;
        color: #000000;
        font-size: 23px;
        font-weight: 200;
        letter-spacing: 1px;
        text-align: center;
        width: 100%;
        text-indent: 0px; 
        line-height: 1;
    }


    .tarjeta_membresia h1,
    .tarjeta_membresia h2,
    .tarjeta_membresia h3 {
        margin: 0; /* Elimina los márgenes predeterminados */
        padding: 10px 0; /* Ajusta el espacio entre los elementos */
    }




.input-cont {
    position: relative;
    width: auto; /* Se ajusta automáticamente al contenido */
    max-width: 100%; /* No se pasa del ancho del padre */
    display: flex;
    align-items: center; /* Alinea los elementos dentro */
}

    /* Estilo del input */
    .input-cont input {
        width: 100%;
        padding: 12px 10px;
        font-size: 18px;
        border: 2px solid #22202f;
        border-radius: 5px 5px 0 0;
        color: #0A1172;
        outline: none;
        transition: border-color 0.2s;
    }

        /* Cuando el input está enfocado, cambia el color del borde */
        .input-cont input:focus {
            border-color: #7166F9;
            background: #ffffff;
        }

    /* Label flotante */
    .input-cont label {
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        font-size: 18px;
        color: #999;
        transition: all 0.2s ease-in-out;
        pointer-events: none;
    }

    /* Cuando el input tiene texto o está enfocado, el label se mueve hacia arriba */
    .input-cont input:focus + label,
    .input-cont input:valid + label {
        top: 5px;
        left: 10px;
        font-size: 14px;
        color: #0A1172;
        background: #fff;
        padding: 0 5px;
    }

/*
"#7b5cff"/ >
        backgdrond 
        background: #333540;

    */












/* Estilos base del botón */
.secondary {
    background-color: #000000; /* Azul profundo */
    color: white;
    padding: 18px 35px;
    font-size: 16px;
    border-radius: 0px 0px 5px 5px; /* Borde redondeado */
    border: none;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Se adapta al ancho del contenedor */
    max-width: 500px; /* Evita que sea demasiado ancho */
    margin: 0px auto; /* Centrar */
    margin-top: 4px; /* Espacio arriba */
    box-sizing: border-box;
    overflow: hidden;
    word-break: break-word;
    text-decoration: none;
}

.hero {
    background: #ffffff;
    color: #000000;
    font-size: 24px;
    letter-spacing: 4px;
    padding: 9px 20px;
}    
    .secondary:hover {
        background-color: #2627ff; /* Azul más claro */
    }


/* 📲 Media Query para celulares */
@media (max-width: 480px) {
    .secondary {
        font-size: 16px;
        padding: 10px 25px;
        width: 90%;
    }

}
