:root {
    --primary: #38b6ff;
    --primary-dark: #1a97e0;
    --dark: rgb(2, 6, 23);
    --dark-light: rgb(10, 15, 35);
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Contenedor principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header y Navegación */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(2, 6, 23, 0.8);
}

header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.3rem 0;
}

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

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

.nav-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(56, 182, 255, 0.1), transparent 40%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-greeting {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
    animation-delay: 0.4s;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--primary);
    animation: blink 1s step-end infinite;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
    animation-delay: 0.6s;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 182, 255, 0.2), transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(56, 182, 255, 0.5);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards, float 5s ease-in-out infinite;
    animation-delay: 0.8s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(56, 182, 255, 0.4);
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
    animation-delay: 0.8s;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(56, 182, 255, 0.6);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 1rem;
    box-shadow: none;
}

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

.hero-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
    animation-delay: 1s;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--dark-light);
    color: var(--text);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

/* About Section */
.about {
    padding: 120px 0;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(56, 182, 255, 0.1), transparent 40%);
    z-index: -1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background-color: var(--dark-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.skill-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    padding: 120px 0;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(56, 182, 255, 0.1), transparent 40%);
    z-index: -1;
}

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

.project-card {
    background-color: var(--dark-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    height: 450px;
}

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

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tech {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(56, 182, 255, 0.1), transparent 40%);
    z-index: -1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    color: var(--text-secondary);
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-form {
    background-color: var(--dark-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.form-input {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

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

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark-light);
    padding: 3rem 0;
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    .profile-img {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    .hero-content, .about-content, .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-image {
        order: -1;
    }
    .profile-img {
        width: 250px;
        height: 250px;
    }
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .social-links {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .menu-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        animation: slideDown 0.3s ease;
    }
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .btn-outline {
        margin-left: 0;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* Añade este código al final de tu archivo styles.css para mejorar la experiencia móvil */

/* Mejoras generales para móviles */
@media (max-width: 768px) {
    /* Ajuste del menú móvil para hacerlo más atractivo */
    .menu-open .nav-links {
        background: rgba(10, 15, 35, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 0;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    /* Menú hamburguesa animado */
    .menu-btn {
        position: relative;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .menu-btn i {
        transition: all 0.3s ease;
    }
    
    .menu-open .menu-btn i.fa-bars {
        transform: rotate(90deg);
        opacity: 0;
    }
    
    .menu-open .menu-btn i.fa-times {
        transform: rotate(0deg);
        opacity: 1;
    }
    
    /* Mejoras en la sección hero para móviles */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
        margin: 0 auto 30px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Ajuste de botones */
    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    /* Mejoras en iconos sociales */
    .hero-social {
        justify-content: center;
    }
    
    /* Mejorar secciones - más espacio y mejor legibilidad */
    .section-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about, .projects, .contact {
        padding: 80px 0;
    }
    
    /* Mejoras en tarjetas de proyectos */
    .project-card {
        height: auto;
        min-height: 400px;
    }
    
    .project-tech {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }
    
    /* Formulario de contacto más amigable */
    .form-input {
        padding: 1.2rem;
        font-size: 16px; /* Evita el zoom en iOS */
    }
    
    textarea.form-input {
        min-height: 120px;
    }
    
    .submit-btn {
        padding: 1.2rem;
    }
    
    /* Footer más compacto */
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem 2rem;
    }
}

/* Ajustes específicos para pantallas muy pequeñas */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .profile-img {
        width: 180px;
        height: 180px;
    }
    
    .hero-social {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .project-image {
        height: 160px;
    }
}

/* Mejoras en las partículas para móviles para mejor rendimiento */
@media (max-width: 768px) {
    .particles {
        opacity: 0.5; /* Reducir opacidad para mejorar contraste */
    }
}

/* Ajustes específicos para tablets */
@media (min-width: 769px) and (max-width: 991px) {
    .about-content, .contact-content {
        gap: 2rem;
    }
    
    .skills-container {
        padding: 1.5rem;
    }
    
    .project-card {
        height: 420px;
    }
}

/* Mejora de la experiencia de desplazamiento */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px; /* Ajuste para navegación fija */
    }
}

/* Añade estos estilos al final de tu archivo styles.css para quitar las líneas de los enlaces */

/* Eliminar las líneas bajo los enlaces de navegación */
.nav-links a::after {
    display: none; /* Esto elimina completamente la línea */
}

/* Hacer que el enlace cambie de color directamente al pasar el mouse */
.nav-links a {
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Efecto alternativo más sutil: brillo en lugar de línea */
.nav-links a:hover,
.nav-links a.active {
    text-shadow: 0 0 8px rgba(56, 182, 255, 0.5);
}

/* Para los enlaces del footer también */
.footer-links a::before {
    display: none;
}

.footer-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(56, 182, 255, 0.5);
}

.form-success-message {
    background-color: rgba(56, 182, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border: 1px solid rgba(56, 182, 255, 0.3);
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.success-icon i {
    animation: scale 0.5s ease;
}

@keyframes scale {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

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

/* Estilo para el botón de envío durante el estado de carga */
.submit-btn.loading {
    background-color: var(--dark-light) !important;
    cursor: not-allowed;
}

/* Estilo mejorado para el formulario en general */
.contact-form {
    position: relative;
    transition: height 0.3s ease;
}

/* Hacer que los inputs tengan un efecto de brillo al enfocarlos */
.form-input:focus {
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(56, 182, 255, 0.3);
}

/* Estilo para el spinner de carga */
.fa-spinner {
    margin-right: 8px;
}

/* Mejorar el estilo de la animación de carga */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s infinite linear;
}

/* Estilos adicionales para agregar al final de styles.css */

/* Ajuste para todas las secciones */
section {
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Estilo para el cursor de máquina de escribir - CORREGIDO */
.hero-title .cursor {
    display: inline-block;
    margin-left: 3px;
    width: 3px;
    height: 1.2em;
    background-color: var(--primary);
    animation: blink 1s step-end infinite;
    color: transparent;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

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

/* Eliminar completamente los estilos anteriores del cursor */
.hero-title span::after {
    content: none !important;
    display: none !important;
}

/* Nuevo diseño para la sección "Sobre Mí" - OPTIMIZADO */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-card {
    background-color: var(--dark-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    height: 100%;
    border-top: 3px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(56, 182, 255, 0.05) 100%);
    pointer-events: none;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.about-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-header i {
    font-size: 1.5rem;
    margin-right: 1rem;
    background: rgba(56, 182, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(56, 182, 255, 0.3);
}

.about-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Estilos para la sección de habilidades - OPTIMIZADO ESPACIO */
.skills-section {
    background-color: var(--dark-light);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(56, 182, 255, 0.1), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.skills-title {
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--primary);
    position: relative;
    display: block;
}

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

/* Ajustar grid para 10 tecnologías incluyendo Node.js */
.skills-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 1.2rem;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}

/* Actualización para las skill-cards */
.skill-card {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0.6rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(56, 182, 255, 0.3);
}

.skill-icon {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    text-shadow: 0 0 10px rgba(56, 182, 255, 0.5);
}

.skill-name {
    font-size: 0.85rem;
}

/* Proyectos en cuadrícula 2x2 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image {
    height: 180px;
}

.project-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.project-description {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Mejoras responsivas adicionales */

/* 1. Tamaños de fuente responsivos usando clamp() */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

/* 2. Mejora del manejo de órbitas en pantallas medianas */
@media (max-width: 1100px) and (min-width: 769px) {
    .orbit-1 {
        width: 400px;
        height: 240px;
    }
    
    .orbit-2 {
        width: 520px;
        height: 300px;
    }
    
    .orbit-3 {
        width: 650px;
        height: 370px;
    }
    
    .tech-icon {
        width: 55px;
        height: 55px;
    }
    
    .tech-icon i {
        font-size: 26px;
    }
}

/* 3. Mejoras para navegación en pantallas medianas */
@media (max-width: 992px) and (min-width: 769px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* 4. Ajustes específicos para tabletas en orientación vertical */
@media (max-width: 850px) and (min-width: 768px) {
    .hero-content {
        gap: 2rem;
    }
    
    .profile-img {
        width: 260px;
        height: 260px;
    }
    
    .orbit-1 {
        width: 350px;
        height: 200px;
    }
    
    .orbit-2 {
        width: 450px;
        height: 260px;
    }
    
    .orbit-3 {
        display: none;
    }
}

/* 5. Ajustes para móviles en orientación horizontal */
@media (max-height: 500px) and (min-width: 500px) {
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }
    
    section {
        min-height: auto;
        padding: 50px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .profile-img {
        width: 180px;
        height: 180px;
    }
    
    .about-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .about-card {
        padding: 1rem;
    }
    
    .skills-container {
        grid-template-columns: repeat(10, 1fr);
        gap: 0.8rem;
    }
    
    .skill-card {
        padding: 0.6rem;
    }
    
    .skill-icon {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }
    
    .skill-name {
        font-size: 0.7rem;
    }
}

/* 6. Evitar contenido cortado en pantallas muy pequeñas */
@media (max-width: 360px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-greeting {
        font-size: 1rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .about-header h3 {
        font-size: 1.1rem;
    }
    
    .form-input {
        padding: 0.8rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
    }
    
    .btn-outline {
        margin-left: 0;
    }
}

/* 7. Asegurar consistencia en alturas de tarjetas */
.project-card {
    height: auto;
    min-height: 0;
}

.about-card, .skill-card {
    height: auto;
}

/* 8. Optimizar formulario para pantallas pequeñas */
@media (max-width: 480px) {
    .form-input {
        font-size: 16px; /* Evita zoom automático en iOS */
    }
    
    textarea.form-input {
        min-height: 120px; /* Reduce altura para móviles */
    }
}

/* 9. Mejorar la visualización en pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-img {
        border-width: 3px;
    }
    
    .skill-icon {
        text-shadow: 0 0 8px rgba(56, 182, 255, 0.4);
    }
}

/* 10. Ajustes para garantizar consistencia entre navegadores */
* {
    -webkit-tap-highlight-color: transparent; /* Elimina flash al tocar en móviles */
}

button, 
input, 
select, 
textarea {
    font-family: inherit; /* Consistencia en fuentes de formularios */
}

/* 11. Ajustes específicos para Safari en iOS */
@supports (-webkit-touch-callout: none) {
    .btn {
        -webkit-appearance: none; /* Corrige apariencia de botones en iOS */
    }
}

/* Responsive para las secciones - con ajustes para Node.js */
@media (max-width: 1200px) {
    .skills-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .about-info {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .skills-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}