:root {
    --primary-color: #0f172a;
    --accent-color: #3b82f6;
    --accent-color-light: #f1f5f9;
    --text-color: #334155;
    --light-text: #94a3b8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-color-light: #94a3b8;
    --transition: all 0.3s ease;
    --footer-color: #0f172a;
    --shadow:  rgba(0, 0, 0, 0.05);
}

body.dark-mode {
    --primary-color: #f8fafc;
    --accent-color: #6ba0f5;
    --accent-color-light: #1e293b; 
    --text-color: #e2e8f0;
    --light-text: #cbd5e1;
    --bg-color: #0f172a;
    --bg-color-light: #1e293b;
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-color-light: #64748b;
    --shadow:  rgba(255, 255, 255, 0.05);
}     
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
                    
html {
    scroll-behavior: smooth;
    font-size: 100%;

}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}
                    
/* Header y navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

main{
    background-color: var(--footer-color);
}

body.dark-mode .logo img{
    src:url(images/logos/logo_Negro.png)
}

#mainNav {
    background-color: var(--accent-color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
    
/* Efecto de reducción de la navbar al hacer scroll */
#mainNav.scrolled {
        padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode #mainNav.scrolled {
    background-color: rgba(30, 41, 59, 0.95);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0 50px;
}
.nav-links{
    position: fixed;
    transition: left 0.4s ease-in-out;
    z-index: 1000;
    right: 5%;
}

.logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.logo img {
    height: 75px;
    margin-right: 0.5rem;
    transition: opacity 0.3s ease;
}

/* Logo para modo claro - visible por defecto */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

.logo-text {
    font-size: clamp(0.8rem, 0.4138rem + 1.931vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
    
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}
#theme-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}
#theme-toggle i {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}
#theme-toggle i.fade-out {
    opacity: 0;
    transform: rotate(360deg) scale(0.7);
}
#theme-toggle:hover {
    color: var(--btn-color);
}

/* Ajustes para modo oscuro */
body.dark-mode #theme-toggle {
    color: var(--accent-color);
}
body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: block;
}
/* Asegurar que el texto del logo también cambie de color */
body.dark-mode .logo-text {
    color: #f8fafc; /* Color claro para modo oscuro */
}

body.dark-mode .contact {
    background-color: var(--bg-color);
}

body.dark-mode .contact-form {
    background-color: var(--card-bg);
}

/* Animación de salida */
#theme-toggle i.icon-exit {
    transform: rotate(90deg) scale(0.8);
    opacity: 0;
}

/* Animación de entrada */
#theme-toggle i.icon-enter {
    animation: icon-enter 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

#home, #about, #team, #projects, #contact,#modal-team, #modal-projects {
    position: relative;
    scroll-margin-top: 80px; /* Ajusta el margen superior para el desplazamiento suave */
    z-index: 5;
    transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
    /* Ajustar el contenedor de partículas */

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}
/* Hero section */
.hero {
    padding-top: 140px;
    padding-bottom: 5rem;
    text-align: center;
    width: 100%;
    height: 100vh;
    display: flex;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    padding:  5rem 0;
}
/* Ajustes para el texto mecanografiado */
#typed-text {
    height: 4.5rem;
    padding-top: 2rem;
}
.hero h1 {
    font-size: clamp(1.5rem, 0.8846rem + 3.0769vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}
                
.hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    
}
.hero .container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
    
.hero, #team, #contact {
        background-color: var(--accent-color-light);
}
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Efecto de pulsación para botones */
.btn:active {
    transform: translateY(-1px);
}
.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}
                        
.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* About section */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.25rem, 0.9423rem + 1.5385vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.containers {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;;
}

#about, #projects {
    background-color: var(--bg-color);
    padding: 3rem 0;
    box-shadow: 0 5px 15px var(--shadow);
}
.about-content {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}
                
.about-image {
    width: 40%;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.03);
}

.about-text {
    flex-grow: 1;
}

.about-text h3 {
    font-size: clamp(1.125rem, 0.9712rem + 0.7692vw, 1.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: clamp(0.875rem, 0.8237rem + 0.2564vw, 1rem);
    margin-bottom: 1rem;
    color: var(--text-color);   
}

/* Team section */
.team-container {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}
                
.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.member-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}

.member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.member-role {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
}

/* Modales del equipo */
.team-modal {
    padding: 0;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    max-width: 90%;
    width: 700px;
    margin: auto;
    background-color: transparent;
}

.team-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.team-modal .modal-container {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
}

.team-modal .modal-content {
    padding: 2rem;
}

/* Estilos para el encabezado del modal */
.team-modal .modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.team-modal .modal-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    border: 3px solid var(--accent-color);
}

.team-modal .modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-modal .modal-title {
    flex: 1;
}

.team-modal .modal-title h3 {
    font-size: clamp(1.3rem, 1.0949rem + 1.0256vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.team-modal .modal-role {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.team-modal .modal-social {
    display: flex;
    gap: 1rem;
}

.team-modal .modal-social-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.team-modal .modal-social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Estilos para la biografía y detalles */
.team-modal .modal-bio {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.team-modal h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.team-modal h4:first-child {
    margin-top: 0;
}

.team-modal .modal-bio p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Estilos para las habilidades */
.team-modal .skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.team-modal .skill-tag {
    padding: 0.3rem 1rem;
    background-color: var(--accent-color-light);
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.skills-container .skill-tag a{
    padding: 0.3rem 1rem;
    background-color: var(--accent-color-light);
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}
.skills-container .skill-tag a:hover{
    background-color: var(--accent-color);
    color: white;
}

/* Estilos para la experiencia y educación */
.team-modal .experience-item,
.team-modal .education-item {
    margin-bottom: 1rem;
}

.team-modal .experience-title,
.team-modal .education-degree {
    font-weight: 600;
    color: var(--text-color);
}

.team-modal .experience-company,
.team-modal .education-school {
    color: var(--accent-color);
    font-weight: 500;
}

.team-modal .experience-period,
.team-modal .education-year {
    color: var(--text-color-light);
    font-size: 0.9rem;
}



.team-modal .modal-button {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background-color: transparent;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.team-modal .modal-button:hover {
    background-color: var(--accent-color);
    color: #fff;
}


/* Projects section */
.projects-container {
    margin-top: 3rem;
}

.project {
    margin-bottom: 3rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}
        
.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow);
}

.project-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.project:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: clamp(1rem, 0.7949rem + 1.0256vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: #e0f2fe;
    color: #0369a1;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-description {
    font-size: clamp(0.875rem, 0.8237rem + 0.2564vw, 1rem);
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.project-link:hover {
    color: #2563eb;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Estilos para los modales de proyectos */
/* Estilo base para el modal */
.project-modal {
    padding: 0;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    max-width: 90%;
    width: 900px;
    margin: auto;
    background-color: transparent;
}

.project-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.project-modal .modal-container {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
}

.project-modal .modal-content {
    padding: 2.5rem;
}

.project-modal h3 {
    font-size: clamp(1.5rem, 1.2949rem + 1.0256vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.project-modal .modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.project-modal .modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal .modal-description {
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.6;
}

.project-modal h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.project-modal ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-modal ul li {
    margin-bottom: 0.5rem;
}

.project-modal .technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.project-modal .tech-tag {
    padding: 0.3rem 1rem;
    background-color: var(--accent-color-light);
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-modal .modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.project-modal .modal-action-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background-color: var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-modal .modal-action-link:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.project-modal .modal-button {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--text-color-light);
    background-color: transparent;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.project-modal .modal-button:hover {
    background-color: var(--text-color-light);
    color: var(--card-bg);
}

p{
    word-spacing: 2px;
    line-height: 1.5;
}
/* Contact section */

.contact {
    padding: 5rem 0;
    background-color: var(--primary-color);
    border-radius: 0 0 60px 60px;
}

.contact::before {
    display: block;
    content: '';
    position: absolute;
    bottom: 0;
    left: 2.5%;
    width: 95%;
    height: 5px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, var(--accent-color), #6ba0f5, var(--accent-color));
    animation: gradientShift 3s ease infinite;
}

.contact-container {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dbeafe;
    color: var(--accent-color);
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: clamp(0.875rem, 0.8237rem + 0.2564vw, 1rem);
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.contact-text p, .contact-text a {
    font-size: clamp(0.875rem, 0.8237rem + 0.2564vw, 1rem);
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-form {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
    background-color: var(--bg-color-);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--shadow);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #2563eb;
}

/* Estilos para el footer */
.team-modal .modal-footer {
    padding-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

/* ESTILOS MEJORADOS PARA EL FOOTER */
.improved-footer {
    background-color: var(--footer-color);
    padding: 4rem 0 1rem;
    color: white;
    position: sticky;
    overflow: hidden;
    bottom: 0;
    z-index: 0;
    transition: all2s 0.3s ease;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}


.footer-logo img {
    height: 80px;
    margin-right: 1rem;
    filter: brightness(0) invert(1);
    transition: transform 0.5s ease;
}

.footer-logo:hover img {
    
    
    transform: rotate(10deg) scale(1.1);
}

.footer-logo-text {
    font-size: clamp(0.8rem, 0.4138rem + 1.931vw, 1.5rem);
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #cbd5e1;
    padding-bottom: 0.5rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.footer-section:hover .footer-title::after {
    width: 80px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 10px;
    font-size: 0.9rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover i {
    transform: rotate(90deg);
}

#fast-link{
    display: block;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), #6ba0f5);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a i {
    position: relative;
    z-index: 2;
}

.footer-social a:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.footer-newsletter {
    margin-top: 1.5rem;
}

.newsletter-form {
    padding-top: .8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--accent-color), #6ba0f5);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.newsletter-btn:hover::before {
    left: 100%;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.footer-credits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.footer-credits a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-credits a:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-color), #6ba0f5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-5px) rotate(5deg);
}

/* Efecto de partículas en el footer */
#footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* Clase general para ocultar elementos en móviles */
.hide-on-mobile {
    display: block;
}

/* Clase para ocultar solo en tablets y móviles */
.hide-on-tablet-mobile {
    display: block;
}

/* Clase para ocultar solo en móviles muy pequeños */
.hide-on-small-mobile {
    display: block;
}

/* Media queries */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
        margin-bottom: 2rem;
    }
    .contact::before{
        display: none;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 55px;
        width: auto;
        margin-right: 0.5rem;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 2px 0;
        transition: var(--transition);
        transform-origin: center;
        border-radius: 2px;
    }

    /* Animación cuando el menú está abierto */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 110vh;
        gap: 5px;
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 5px 0 15px var(--shadow);
        transition: left 0.4s ease-in-out;
        z-index: 1000;
        padding: 2rem 0;
    }
    
    .nav-links.show {
        left: 0;
        padding: 0;
        margin: 0;
    }
    
    .nav-links li {
        margin:  0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: .5rem;
        font-size: 1.1rem;
        width: 100%;
        color: var(--text-color);
        transition: all 0.3s ease;
        gap: 2px;
    }
    
    .nav-link:after {
        display: none;
    }
    
    .nav-link:hover, .nav-link.active {
        background-color: var(--accent-color-light);
        color: var(--accent-color);
    }
    
    #theme-toggle {
        margin: 1rem auto 0;
        background-color: var(--accent-color-light);
        border-radius: 50%;
    }

    #typed-text {
        padding:0;
    }

    /* Overlay para el menú móvil */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-content{
        margin-top: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }

    .project-modal {
        width: 95%;
    }
    
    .project-modal .modal-content {
        padding: 1.5rem;
    }
    
    .project-modal .modal-image {
        height: 200px;
    }
    
    .project-modal .modal-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-modal .modal-action-link,
    .project-modal .modal-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .team-modal {
        width: 95%;
    }
    
    .team-modal .modal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .team-modal .modal-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .team-modal .modal-social {
        justify-content: center;
    }
    
    .team-modal .modal-footer {
        justify-content: center;
    }
    
    .team-modal .modal-button {
        width: 100%;
    }
    .improved-footer {
        padding: 2.5rem 0 1rem;
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-logo img {
        height: 70px;
    }
    
    .footer-logo-text {
        font-size: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin: 1rem 0;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section:hover .footer-title::after {
        width: 40px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }

    .footer-newsletter {
        order: 3; /* Mover newsletter al final en móviles */
        margin-top: 1.5rem;
    }
    .footer-links li {
        margin-bottom: 0.5rem;
        width: auto;
    }
    
    .footer-social {
        justify-content: center;
        margin: 1rem 0;
    }
    
    .footer-newsletter {
        margin-top: 1rem;
    }
    
    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .footer-credits {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
    }
    
    .hide-on-mobile {
        display: none !important;
    }
    .mobile-only {
            display: block;
    }
}

@media (max-width: 576px) {
    .containers {
        width: 95%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-content{
        margin-top: 2rem;
    }
}

@media (max-height: 500px) {
    .hero {
        height: auto;
        padding-bottom: 2rem;
    }

    .hero-content{
        margin: 0rem;
    }
    .container{
        margin: 0;
        padding: 0;
    }
    
    #fast-link {
        display: none !important;
    }
}
    @media (max-width: 480px) {
    .improved-footer {
        padding: 2rem 0 0.5rem;
    }
    
    .footer-container {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .footer-logo-text {
        font-size: 1.3rem;
    }
    
    .footer-about p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
    }
    
    .newsletter-input,
    .newsletter-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
    
    .back-to-top {
        right: 10px;
        bottom: 10px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .hide-on-small-mobile {
        display: none !important;
    }
    
    /* Estilos para mostrar mensaje alternativo en móviles */
    .mobile-only {
        display: none;
    }
}

/* Mejora de legibilidad en móviles pequeños */
@media (max-width: 360px) {
    .footer-logo-text {
        font-size: 1.1rem;
    }
    
    .footer-about p {
        font-size: 0.85rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
}

/* Ajuste para evitar desbordamiento en móviles muy pequeños */
@media (max-width: 320px) {
    .improved-footer {
        padding: 1.5rem 0.5rem 0.5rem;
    }
    
    .footer-container {
        padding: 0 0.25rem;
    }
    
    .footer-social {
        gap: 0.7rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

    /* Efectos de las librerías */
    .typed-cursor {
        color: var(--accent-color);
        font-size: 2.2rem;
        animation: blink 0.7s infinite;
    }


    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
    }



    @keyframes icon-enter {
    0% {
        transform: rotate(-90deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: rotate(10deg) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}
    /* Efecto de aparición suave */
    @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    }

    /* Efecto de flotación para elementos */
    @keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    }

    /* Asegurar que las animaciones no afecten el layout */
    [data-aos] {
        pointer-events: none;
    }

    [data-aos].aos-animate {
        pointer-events: auto;
        backface-visibility: hidden;
        transform: translateZ(0);
    }
    /* Optimizar partículas */
    #particles-js {
    will-change: transform, opacity;
    }

    /* Aplicar animaciones */
    .floating {
    animation: float 3s ease-in-out infinite;
    }

    .fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    }

    /* Efecto de escritura para títulos */
    .typing-effect {
    overflow: hidden;
    border-right: .15em solid var(--accent-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    }

    @keyframes typing {
    from { width: 0 }
    to { width: 100% }
    }

    @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color) }
    }