/* Variables globales */
:root {
    --primary-color: #1e1d45;
    --accent-color: #00ff6a;
    --dark-color: #000000;
    --light-color: #ffffff;
    --gray-color: #f8f9fa;
    --transition: all 0.3s ease;
}

/* Estilos Generales */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
}

.section-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 0 auto 2rem;
}

/* Navbar */
.navbar {
    background-color: transparent;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.7rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--light-color);
}

.navbar-brand span {
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    color: var(--light-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--accent-color);
}

.navbar-nav .nav-link.active {
    color: var(--light-color);
    font-weight: 700;
}

.navbar-toggler {
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Header / Portada */
.header-section {
    height: 45vh;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    position: relative;
    display: flex;
    align-items: center;
}

.header-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-content h1 {
    color: var(--light-color);
    font-size: 3.5rem;
    margin-top: 8rem;
}

.header-content .lead {
    color: var(--accent-color);
    font-weight: 500;
}

.btn-outline-light:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

/* Sección Sobre Mí */
#sobre-mi {
    background-color: var(--light-color);
}

#sobre-mi h3 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Estilos para los botones de acción en la sección sobre mí */
#sobre-mi .mt-4 {
    text-align: center;
}

#sobre-mi .mt-4 .btn-primary {
    min-width: 200px;
    padding: 0.8rem 2.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    margin: 0 5px;
    transition: var(--transition);
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.personal-info p {
    margin-bottom: 0.7rem;
}

.personal-info i {
    color: var(--accent-color);
    margin-right: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Sección Áreas de Interés */
.interest-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.interest-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.interest-card .icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.interest-card i {
    font-size: 2rem;
    color: var(--accent-color);
}

.interest-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.interest-card p {
    color: #666;
    margin-bottom: 0;
}

/* Sección Proyectos */
.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    background-color: var(--light-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 29, 69, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-body {
    padding: 1.5rem;
}

.project-body h5 {
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.project-body p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background-color: var(--gray-color);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Sección Habilidades */
.skill-container {
    margin-bottom: 30px;
}

.skill {
    margin-bottom: 20px;
}

.skill span {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
}

.progress {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--accent-color);
}

/* Sección Contacto */
.contact-info {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
}

#contacto {
    margin-bottom: 7rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-item h5 {
    margin-bottom: 0.3rem;
    color: var(--light-color);
    font-weight: 600;
}

.contact-item p, .contact-item a {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
}

.form-control {
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 106, 0.25);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-outline-light {
    color: var(--light-color);
    border-color: var(--light-color);
}

.btn-outline-light:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-nav {
        background-color: var(--primary-color);
        padding: 1rem;
        border-radius: 5px;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
        margin-top: 1.5rem;
    }
    
    /* Mejorar centrado de botones en tablet */
    .intro-buttons .btn {
        margin: 0.5rem 0.25rem;
        min-width: 180px;
    }
}

@media (max-width: 767.98px) {
    .header-content h1 {
        font-size: 2rem;
        margin-top: 1.2rem;
    }
    
    .header-section {
        height: 35vh;
        min-height: 500px;
    }
    
    .interest-card, .project-card, .contact-info {
        margin-bottom: 1.5rem;
    }
    
    /* Espaciado para botones sociales en móvil */
    .social-icons {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .social-icons a {
        margin: 0 8px 10px 8px;
    }
    
    /* Footer social buttons spacing */
    .btn-social {
        margin: 1px !important;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 0.5rem;
    }
    
    .footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .header-content h1 {
        font-size: 1.8rem;
        margin-top: 0.5rem;
    }
    
    .header-content h2 {
        font-size: 1.3rem;
    }
    
    .header-section {
        height: 30vh;
        min-height: 450px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Mejorar espaciado en móvil pequeño */
    .social-icons {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .personal-info {
        margin-bottom: 0.5rem;
    }
    
    /* Footer mejorado para móvil */
    .footer .row {
        text-align: center !important;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 0.5rem;
        text-align: center !important;
    }
    
    .footer .btn-social {
        margin: 8px 5px !important;
        display: inline-block;
    }
}

/* Estilos para la nueva sección de habilidades */
.skills-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.skills-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skills-category {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent-color);
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-item span {
    font-weight: 500;
    color: var(--dark-color);
}

.skill-item i {
    color: var(--accent-color);
}

.skill-item:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.skill-item:hover span {
    color: var(--primary-color);
}

/* Para pantallas pequeñas */
@media (max-width: 767.98px) {
    .skills-card {
        margin-bottom: 1.5rem;
    }
}

/* Fondo animado para sección de Áreas de Interés */
.bg-light.tech-bg {
    position: relative;
    overflow: hidden;
}

.tech-logos-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(248, 249, 250, 0.9), 
        rgba(248, 249, 250, 0.9)), 
        url('./assets/img/tech-logos.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    opacity: .5;
    z-index: 1;
    animation: slideBackground 60s linear infinite;
}

@keyframes slideBackground {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.bg-light.tech-bg .container {
    position: relative;
    z-index: 2;
}
/* Animación de entrada estilo Apple */
.apple-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../assets/img/wallpaper.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.apple-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 29, 69, 0.7), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--light-color);
}

.intro-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 20rem;
    font-weight: normal;
    margin: 0;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: appleIntroTitle 2s ease-out 0.5s forwards;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    color: var(--light-color);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.intro-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin: 1rem 0 0 0;
    opacity: 0;
    transform: translateY(30px);
    animation: appleIntroSubtitle 1.5s ease-out 1.5s forwards;
    color: var(--accent-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Keyframes para la animación */
@keyframes appleIntroTitle {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    70% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes appleIntroSubtitle {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estado oculto de la animación */
.apple-intro.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Ocultar el contenido principal durante la intro */
body.intro-active {
    overflow: hidden;
}

body.intro-active .navbar,
body.intro-active .header-section,
body.intro-active main,
body.intro-active footer {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

body.intro-finished .navbar,
body.intro-finished .header-section,
body.intro-finished main,
body.intro-finished footer {
    opacity: 1;
}

/* Asegurar que el navbar tenga el estilo correcto después de la intro */
body.intro-finished .navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.7rem 0;
}

/* Estilos para los botones de introducción */
.intro-buttons {
    margin-bottom: 2rem;
    text-align: center;
}

.intro-buttons .btn {
    margin: 0.5rem 0.5rem;
    padding: 0.8rem 2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.intro-buttons .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    box-shadow: 0 4px 15px rgba(30, 29, 69, 0.3);
    color: var(--light-color);
}

.intro-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 29, 69, 0.4);
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: var(--light-color);
}

.intro-buttons .btn-outline-primary {
    border-width: 2px;
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.intro-buttons .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 106, 0.3);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-color);
}

/* Responsive para la animación */
@media (max-width: 991.98px) {
    .intro-title {
        font-size: 15rem;
    }
    
    .intro-subtitle {
        font-size: 1.4rem;
    }
    #contacto {
    margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
    .intro-title {
        font-size: 15rem;
    }
    
    .intro-subtitle {
        font-size: 1.2rem;
        letter-spacing: 0.05em;
    }
    
    .intro-buttons .btn {
        display: block;
        width: 200px;
        margin: 0.5rem auto;
        font-weight: 700;
    }
    #contacto {
    margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
    .intro-title {
        font-size: 7rem;
    }
    
    .intro-subtitle {
        font-size: 1rem;
    }

    #contacto {
    margin-bottom: 1rem;
}
}