/* --- CONFIGURACIÓN Y DIRECTIVAS --- */
@tailwind base;
@tailwind components;
@tailwind utilities;
@import "tailwindcss";

/* --- ESTILOS BASE Y RESETS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    /* outline: 1px solid red; -- Debug Mode */
}

body {
    font-family: 'Inter', sans-serif;
}

::selection {
    background-color: #f97316;
    color: #FFFCE1;
}

img,
svg {
    max-width: 100%;
}

/* --- TIPOGRAFÍA Y TÍTULOS --- */
section h1,
#logo {
    font-family: 'BBH Bartle', sans-serif;
}

section h1 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#hero-texto {
    font-size: 1.5rem;
}

#logo {
    padding: 0 1rem;
}

.titulo-tecnologias {
    padding-top: 1rem;
}

.text-adrenaline {
    background: linear-gradient(270deg, #009dff, #2238ff, #ff4d00, #ff0000, #ffd000);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: adrenaline-flow 3s ease infinite;
    font-weight: 800;
}

/* --- ANIMACIONES (KEYFRAMES) --- */
@keyframes button-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(249, 115, 22, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(249, 115, 22, 0.6), inset 0 0 5px rgba(0, 0, 0, 0);
    }
}

@keyframes shine-move {
    0% {
        transform: translateX(-150%) skewX(-15deg);
    }

    100% {
        transform: translateX(150%) skewX(-15deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes adrenaline-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Clases de utilidad para animaciones */
.animate-float-slow {
    animation: float 15s infinite ease-in-out;
}

.animate-float-slower {
    animation: float 20s infinite ease-in-out reverse;
}

.animate-float-medium {
    animation: float 12s infinite ease-in-out 1s;
}

/* --- ESTRUCTURA DE SECCIONES --- */
/* Agrupación de padding consistente para todas las secciones principales */
#about,
#proceso,
#tecnologias-stack,
#proyectos,
#contacto {
    padding: 3rem;
}

#about p:first-of-type,
#proceso h3,
#proceso p {
    margin-bottom: 2rem;
}

#proceso h2,
#proyectos h2,
h3 {
    margin-bottom: 1rem;
}

#detalles_sobre_mí {
    margin-top: 1rem;
    padding-left: 0.5rem;
}

#tecnologias-stack {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grupo-tecnologias {
    padding-top: 2rem;
}

#proyectos div {
    padding: 1rem;
}

#portfolio-parrafo {
    margin-top: 1rem;
    color: #FFFCE1;
}

/* --- BOTÓN PORTFOLIO --- */
#portfolio-boton {
    position: relative;
    z-index: 20;
    display: inline-block;
    margin-bottom: 10rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 40%, #9ca3af 60%, #4b5563 100%);
    background-size: 200% 200%;
    color: #1a1a1a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 3rem;
    overflow: hidden;
    animation: button-glow 3s infinite ease-in-out;
    transition: all 0.3s ease;
}

#portfolio-boton::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: overlay;
}

#portfolio-boton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-150%) skewX(-15deg);
    z-index: 2;
    animation: shine-move 4s infinite;
}

#portfolio-boton:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 40%, #d1d5db 60%, #9ca3af 100%);
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.8), inset 0 0 0 rgba(0, 0, 0, 0);
    border-color: #f97316;
    color: #000;
}

/* --- FOOTER Y OTROS EFECTOS --- */
footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#menu-shine-bg {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.144), transparent);
    transform: translateX(-550%) skewX(-150deg);
    width: 600%;
    height: 100%;
    animation: shine-move 5s infinite;
}

/* --- FORMULARIO Y CONTACTO (Global) --- */
#contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #f97316;
}

#contacto p,
#contacto form {
    display: flex;
    margin: 0 auto;
}

#contacto p {
    text-align: center;
    justify-content: center;
    padding: 1rem 1rem;
}

#contacto button {
    padding: 1rem 2rem;
    background-color: #f97316;
    color: #000000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 3rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

#contacto button:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 40%, #d1d5db 60%, #9ca3af 100%);
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.8), inset 0 0 0 rgba(0, 0, 0, 0);
    color: #000;
}

input,
select,
textarea {
    padding: .8rem;
}

#contacto select:invalid {
    color: #6b7280;
}

#contacto select:not(:invalid) {
    color: #000000;
    border-color: #f97316;
}

#contacto select option {
    color: #000000;
    background-color: #ffffff;
}

/* --- REACTIVIDAD DE INPUTS Y TEXTAREA --- */
#contacto input::placeholder,
#contacto textarea::placeholder {
    color: #6b7280;
    transition: color 0.3s ease;
}

#contacto input:not(:placeholder-shown),
#contacto textarea:not(:placeholder-shown),
#contacto select:not(:invalid) {
    color: #000000;
    border-color: #f97316;
    background-color: #ffffff;
}

#contacto input,
#contacto select,
#contacto textarea {
    transition: all 0.3s ease;
}

#contacto input:invalid:focus,
#contacto select:invalid:focus,
#contacto textarea:invalid:focus {
    border-color: #ef4444;
}

#contacto form:invalid button[type="submit"] {
    opacity: 0.7;
    cursor: not-allowed;
}
.copyright {
            padding: 1rem 0;
        }
/* --- MEDIA QUERIES --- */
@media (min-width: 1024px) {
    nav {
        padding: 1rem 2rem;
    }

    footer div {
        display: flex;
        margin: 0 auto;
        padding: 0 2rem;
        .copyright {
            padding: 1rem 0;
        }
    }


}