/* -------------------------------------------------------------------
 * Variables CSS (Nueva Paleta)
 * ------------------------------------------------------------------- */
:root {
    --color-primary-start: #ffe601; /* Amarillo Neón */
    --color-primary-end: #14f000;   /* Amarillo Neón Oscuro */
    --color-accent: #f5e50b;        /* Color principal de acento */
    --gradient-main: linear-gradient(to right, var(--color-primary-start), var(--color-primary-end));
    --color-yellow-neon: rgba(18, 177, 4, 0.87); /* Color dominante del neón */
}

/* ====================
   Main Styles & Resets
=======================*/
html,
body {
    height: 100%;
    font-family: 'Open Sans', sans-serif; 
}

img {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    padding: 0;
    margin: 0;
}

p {
    color: #666666;
    line-height: 24px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}

li,
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* -------------------------------------------------------------------
   Estilos del Cuerpo y Tarjeta 
------------------------------------------------------------------- */
body {
    font-family: "Steady", sans-serif; 
    /* Fondo: Asegúrate de que fondo.png está en /assets/imges/ */
    background: url("/assets/imges/fondo.png") center/cover no-repeat fixed;
    color: #fffffffd;
    margin: 0;
    padding: 0;
    cursor: none; 
    transition: opacity 0.5s ease-in-out;
}

/* Estilos para el cursor personalizado */
.cursor {
    position: fixed; 
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none; 
    transition: transform 0.2s ease-out, background-color 0.2s ease-out; 
    z-index: 99999;
}

.cursor-hover {
    transform: scale(2.5); 
    background-color: var(--color-accent); 
}

/* Estilos para la sección principal */
section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilos para la tarjeta de perfil */
.card {
    position: relative;
    width: 90%; 
    max-width: 500px; /* Max width para móviles */
    padding: 30px;
    backdrop-filter: blur(25px);
    background: rgba(49, 54, 2, 0.089);
    box-shadow: 0 25px 45px var(--color-yellow-neon); 
    border-radius: 30px;
    text-align: center;
    animation: fadeInUp 1s ease-out; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

/* Animación fadeInUp */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación para el efecto de escritura */
@keyframes typing {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

/* Estilos para el título de Habilidades con animación */
.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-right: 2px solid var(--color-accent); 
    animation: typing 4s steps(10, end) infinite;
    font-size: 1.5rem; 
}

/* Estilos para la parte superior de la tarjeta */
.top {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid rgba(95, 93, 93, 0.527);
    padding-bottom: 10px;
    color: white;
    position: relative;
}

/* Pequeño punto amarillo en el centro superior */
.top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-accent); 
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
}


/* Estilos para la sección del medio de la tarjeta */
.middle {
    padding: 60px 0 20px 0; 
    color: white;
}

/* Contenedor de perfil y centrado */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.middle img {
    width: 150px; 
    height: 150px;
    border-radius: 50%;
    border: 3px solid transparent;
    outline: 3px dashed var(--color-accent);
    margin-bottom: 20px;
    margin-top: 20px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255, 230, 0, 0.5); 
}

/* Estilos para los iconos de redes sociales */
.social-icon {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icon a {
    position: relative;
    display: inline-block;
    margin: 5px;
    padding: 10px;
    background: #272726ec;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s, box-shadow 0.3s;
}

.social-icon a:hover {
    background: var(--gradient-main);
    box-shadow: 0 0 15px var(--color-accent);
}

.social-icon img {
    display: block;
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); 
    transition: filter 0.3s;
}

.social-icon a:hover img {
    filter: brightness(1);
}

/* Estilos para centrar y estilizar el botón de Contactar */
.button {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    position: relative;
    background: var(--color-accent);
    border: none;
    color: rgb(0, 0, 0);
    padding: 12px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 8px;
    transition: background 0.3s, box-shadow 0.3s;
    font-weight: bold;
    text-transform: uppercase;
}

.btn:hover {
    background: #0fff06;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Neon Border Animation */
@keyframes neon-border {
    0% { box-shadow: 0 0 5px var(--color-accent), 0 0 10px rgba(255, 255, 255, 0.9); }
    50% { box-shadow: 0 0 10px var(--color-accent), 0 0 20px rgba(255, 255, 255, 0.9); }
    100% { box-shadow: 0 0 5px var(--color-accent), 0 0 10px rgba(255, 255, 255, 0.9); }
}

.btn.neon {
    animation: neon-border 1.5s infinite alternate;
}

/* Estilo para el botón flotante de WhatsApp */
.whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #24f808; 
    color: #000000;
    padding: 12px 18px; 
    border-radius: 30px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.4); 
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s;
}

.whatsapp-button:hover {
    background-color: #09b133;
    transform: scale(1.05);
}

/* Estilo para el ícono de WhatsApp dentro del botón */
.whatsapp-button svg {
    margin-right: 8px;
    stroke: white; 
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* Estilo para el párrafo dentro de la tarjeta */
.card p {
    color: #fff; 
    font-size: 16px; 
    text-align: center; 
    margin-top: 15px; 
}

/* Ajuste de alineación para la sección de habilidades */
.skill-content {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
}

/* ------------------
    Preloder
--------------------*/
.rotate{
    -webkit-animation: rotate 1.5s linear infinite;
    animation: rotate 1.5s linear infinite;
}
@-webkit-keyframes rotate{ to{-webkit-transform: rotate(360deg); } }
@keyframes rotate{ to{ transform: rotate(360deg); } }

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: inset -1px 0 0 1px #ffffff;
}

.loading-text {
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    color: #fff;
    text-align: center;
    height: 20px;
    padding-top: 65px;
}
.loading-text:after {
    content: ' .';
    animation: dots 1s steps(5, end) infinite;
}

#preloder {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999999;
    background: #000;
    display: flex; 
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.loader {
    position: relative; 
    width: 100px;
    height: 100px;
}

/* Media Query para responsividad y ancho de PC */
@media (min-width: 1024px) {
    .card {
        max-width: 1024px; /* Ancho grande en PC */
        padding: 40px;
    }
    .typing-effect {
        font-size: 2rem;
    }
    @keyframes typing {
        0% { width: 0; }
        50% { width: 350px; } /* Ancho fijo para el texto completo en desktop */
        100% { width: 0; }
    }
}
/* Para tablets (opcional) */
@media (min-width: 768px) and (max-width: 1023px) {
    .card {
        max-width: 650px;
    }
}