@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #121212;
    --primary-card: #1E1E1E;
    --primary-text: #E0E0E0;
    --secondary-text: #A0A0A0;
    --accent-color: #00A8E8;
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--primary-text);
}

/* --- HERO HEADER --- */
.hero {
    background: linear-gradient(135deg, #16222A 0%, #3A6073 100%);
    color: #FFF;
    text-align: center;
    padding: 80px 20px 60px;
    border-bottom: 4px solid var(--accent-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-contact {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
}

.hero-contact a {
    color: #FFF;
    text-decoration: none;
    transition: color 0.3s ease;
}
.hero-contact a:hover {
    color: var(--accent-color);
}

.hero-contact i {
    margin-right: 8px;
}

/* --- CONTENIDO PRINCIPAL --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
}

.card {
    background-color: var(--primary-card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease-out forwards;
}
/* Retraso para efecto escalonado */
#perfil { animation-delay: 0.1s; }
#experiencia { animation-delay: 0.2s; }
#formacion { animation-delay: 0.3s; }
#habilidades { animation-delay: 0.4s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}
.icon {
    margin-right: 15px;
}

p { color: var(--secondary-text); }
strong { color: var(--primary-text); }
.job { margin-bottom: 25px; }
.job:last-child { margin-bottom: 0; }

h3 {
    font-size: 1.4rem;
    color: var(--primary-text);
    font-weight: 600;
}
.job-details {
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 10px;
}
ul { list-style: none; }
li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    color: var(--secondary-text);
}
li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.skills-container span {
    background-color: rgba(0, 168, 232, 0.1);
    color: var(--accent-color);
    padding: 10px 18px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.skills-container span:hover {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    transform: scale(1.05);
}

/* --- BOTONES FLOTANTES --- */
.floating-action-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}
.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    color: #FFF;
    font-size: 24px;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}
#whatsapp { background: #25D366; }
#email { background: #EA4335; }
#download-pdf { background: var(--accent-color); }
.fab-button:hover {
    transform: scale(1.1) translateY(-5px) rotate(10deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.fab-button .fa-spinner {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}