* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1b1b33 0%, #191a29 25%, #1e2938 50%, #1e2d32 75%, #1e3128 100%);
    z-index: -1;
    animation: gradientAnimation 15s ease infinite;
    background-size: 400% 400%;
}

.section#home:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(78, 0, 146, 0.25) 0%, rgba(78, 0, 146, 0) 30%),
        radial-gradient(circle at 20% 80%, rgba(0, 120, 215, 0.25) 0%, rgba(0, 120, 215, 0) 30%),
        radial-gradient(circle at 50% 50%, rgba(156, 119, 255, 0.15) 0%, rgba(156, 119, 255, 0) 60%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: colorShift 20s ease infinite;
    pointer-events: none;
}

.section#home.active:before {
    opacity: 1;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes colorShift {
    0% {
        filter: hue-rotate(0deg);
    }
    25% {
        filter: hue-rotate(90deg);
    }
    50% {
        filter: hue-rotate(180deg);
    }
    75% {
        filter: hue-rotate(270deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatParticle var(--duration) ease-in-out infinite;
    opacity: 0;
    z-index: -1;
}

.container {
    max-width: 1200px;
    width: 90%;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
    overflow: hidden;
    position: relative;
}

.section {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 1rem;
}

.section.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.about-card {
    overflow-y: auto;
    padding-bottom: 2rem;
}

.info-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-card {
    flex: 1;
    min-width: 280px;
    background-color: rgba(40, 44, 63, 0.6);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.info-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card-header i {
    font-size: 1.5rem;
    color: #9c77ff;
    margin-right: 1rem;
}

.info-card-header h3 {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.info-item {
    display: flex;
    margin-bottom: 0.8rem;
    align-items: baseline;
}

.info-label {
    font-weight: 600;
    min-width: 100px;
    color: rgba(255, 255, 255, 0.8);
}

.info-value {
    color: #9c77ff;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-pill {
    display: flex;
    align-items: center;
    background-color: rgba(156, 119, 255, 0.1);
    border: 1px solid rgba(156, 119, 255, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    color: #9c77ff;
}

.skill-pill:hover {
    background-color: rgba(156, 119, 255, 0.2);
    transform: translateY(-2px);
}

.skill-pill i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    color: #9c77ff;
}

.skill-pill span {
    font-size: 0.9rem;
}

.skill-pill .os-logo {
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.5rem;
    vertical-align: -0.1rem;
    color: #9c77ff !important;
    transition: transform 0.3s ease;
}

.skill-pill:hover .os-logo {
    transform: scale(1.15);
}

.skill-pill.minecraft i {
    color: #4CAF50;
}

.about-text {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1rem;
}

.minecraft-skills {
    margin-top: 1.5rem;
}

.minecraft-skills h3 {
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.minecraft-skills h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50 0%, rgba(76, 175, 80, 0) 100%);
    border-radius: 2px;
}

.mc-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.mc-skill {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0.8rem;
}

.mc-skill-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.mc-skill-icon i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.mc-skill-info {
    flex-grow: 1;
}

.mc-skill-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .info-cards-container {
        flex-direction: column;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .info-label {
        margin-bottom: 0.3rem;
    }
    
    .mc-skills-container {
        flex-direction: column;
    }
}

.card {
    background-color: rgba(30, 33, 48, 0.85);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow-y: auto;
    max-height: 85vh;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-card {
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo-img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #9c77ff 0%, rgba(156, 119, 255, 0) 100%);
    border-radius: 2px;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.role, .cta {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.highlight {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.highlight.red,
.highlight.red:visited,
.highlight.red:active,
.highlight.red:hover {
    color: #fff;
    background-color: #dc3545;
    text-decoration: none;
    cursor: pointer;
}

.green {
    background-color: #28a745;
}

.purple {
    background-color: #9c77ff;
}

.orange {
    background-color: #fd7e14;
}

.red {
    background-color: #dc3545;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.skill-category {
    flex: 1;
    min-width: 250px;
}

.skill-category ul {
    list-style-type: none;
}

.skill-category li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: '▹';
    color: #9c77ff;
    position: absolute;
    left: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-card {
    background-color: rgba(40, 44, 63, 0.6);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-project {
    grid-column: 1 / -1;
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(30, 33, 48, 0.9));
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    opacity: 0.5;
}

.tech-stack {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    background-color: rgba(156, 119, 255, 0.2);
    color: #9c77ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
}

.project-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #9c77ff;
    transition: width 0.3s ease;
}

.project-links a:hover::after {
    width: 100%;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    border-radius: 4px;
}

.contact-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.contact-link i {
    font-size: 1.2rem;
    color: #9c77ff;
}

.x-logo {
    width: 16px;
    height: 16px;
    margin-left: 2px;
    filter: brightness(0) saturate(100%) invert(65%) sepia(58%) saturate(5312%) hue-rotate(225deg) brightness(87%) contrast(93%);
}

.x-logo-nav {
    width: 20px;
    height: 20px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    background-color: rgba(30, 33, 48, 0.85);
    padding: 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.icon-button {
    position: relative;
    width: 50px;
    height: 50px;
    text-decoration: none;
    transition: transform 0.3s ease;
    overflow: visible;
}

.icon-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(40, 44, 63, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.icon-button.active .icon-container {
    background-color: rgba(156, 119, 255, 0.3);
    box-shadow: 0 0 15px rgba(156, 119, 255, 0.6);
    border-color: rgba(156, 119, 255, 0.8);
    transform: scale(1.1);
}

.icon-button:hover .icon-container {
    background-color: rgba(156, 119, 255, 0.2);
    transform: translateY(-5px);
}

.icon-button i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.icon-button:hover i {
    transform: scale(1.2);
}

.icon-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(30, 33, 48, 0.95);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(30, 33, 48, 0.95) transparent transparent transparent;
}

.icon-button:hover .icon-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
}

@keyframes rippleEffect {
    to {
        transform: scale(15);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-card {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .container {
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        padding: 0;
        margin: 0;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
    .card {
        padding: 1rem 0.5rem;
        max-width: 100vw;
        width: 100vw;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        max-height: 90vh;
    }
    .about-card {
        padding-bottom: 1rem;
    }
    .info-cards-container {
        gap: 0.7rem;
        margin: 1rem 0;
    }
    .info-card {
        padding: 1rem 0.5rem;
        min-width: unset;
    }
    .skills-grid {
        gap: 0.4rem;
    }
    .skill-pill {
        padding: 0.3rem 0.7rem;
        font-size: 0.85rem;
    }
    .about-text {
        margin: 1rem 0;
    }
    .minecraft-skills {
        margin-top: 1rem;
    }
    .mc-skills-container {
        gap: 0.7rem;
        margin-top: 1rem;
    }
    .mc-skill {
        margin-bottom: 0.5rem;
    }
    .project-image {
        height: 140px;
    }
    .projects-grid {
        gap: 0.7rem;
        margin-top: 0.5rem;
    }
    .project-card {
        padding: 1rem 0.5rem;
    }
    .contact-links {
        gap: 0.7rem;
        margin-top: 1rem;
    }
    .contact-link {
        gap: 0.7rem;
        padding: 0.3rem;
    }
    .icon-tooltip {
        font-size: 0.7rem;
        padding: 3px 7px;
    }
    footer {
        padding: 0.3rem;
    }
    .social-icons {
        padding: 0.3rem;
        gap: 0.4rem;
    }
    .icon-button {
        width: 32px;
        height: 32px;
    }
    .icon-container {
        font-size: 1rem;
    }
    h1 {
        font-size: 1.3rem;
        gap: 0.3rem;
    }
    h2 {
        font-size: 1.1rem;
    }
    h3 {
        font-size: 1rem;
    }
    .logo-img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 375px) {
    .container, .card {
        padding: 0.2rem 0.1rem;
    }
    .project-image {
        height: 100px;
    }
    .logo-img {
        width: 18px;
        height: 18px;
    }
}

.hero-card h1,
.hero-card .subtitle,
.hero-card .role,
.hero-card .cta {
user-select: none;
}

.web-skills {
    margin-top: 1.5rem;
}

.web-skills h3 {
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.web-skills h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #007acc 0%, rgba(0, 122, 204, 0) 100%);
    border-radius: 2px;
}

.web-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.web-skill {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0.8rem;
}

.web-skill-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 122, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.web-skill-icon i {
    color: #007acc;
    font-size: 1.2rem;
}

.web-skill-info {
    flex-grow: 1;
}

.web-skill-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.web-skill .skill-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.web-skill .skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #007acc, #00a2ff);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .web-skills-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .web-skills {
        margin-top: 1rem;
    }
    
    .web-skills-container {
        gap: 0.7rem;
        margin-top: 1rem;
    }
    
    .web-skill {
        margin-bottom: 0.5rem;
    }
}

.ip-tooltip {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 1rem;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0.95;
    pointer-events: none;
    animation: fadeOutTooltip 1.5s forwards;
}

@keyframes fadeOutTooltip {
    0% { opacity: 0.95; }
    80% { opacity: 0.95; }
    100% { opacity: 0; }
}

/* --- ESTILOS PARA LA PUTA SECCIÓN DE DONACIONES --- */
.donation-container {
    margin-top: 2rem;
    text-align: center;
}

.donation-presets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.donation-button {
    background-color: rgba(156, 119, 255, 0.1);
    border: 1px solid rgba(156, 119, 255, 0.5);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.donation-button:hover {
    background-color: rgba(156, 119, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(156, 119, 255, 0.2);
}

.custom-donation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.custom-donation input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem;
    border-radius: 8px;
    width: 120px;
    text-align: center;
    font-size: 1rem;
}

.custom-donation input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.custom-donation button {
    background-color: #28a745;
    border: none;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.custom-donation button:hover {
    background-color: #218838;
}
