@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Oswald:wght@200..700&display=swap');

*:root {
    --primary-color: #f56e0f;
    --secondary-color: #c8c8c8;
    --tercery-color: #fbfbfb;
    --fourty-color: #151419;
    --primary-text: "Oswald", sans-serif; /*texto para parrafos o todo lo aparte de los h*/
    --tittle: "Michroma", sans-serif; /*titulo tales como h1,h2,h3 y asi*/
}

/* ESTILOS GENERALES */

h1,h2,h3,h4,h5,h6 {
    font-family: "Michroma", sans-serif;
}

p,a,button,li,label,input,select,textarea,span {
    font-family: "Oswald", sans-serif;
}

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

body {
    background: var(--fourty-color);
    color: var(--tercery-color);
    font-family: "Oswald", sans-serif;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(21, 20, 25, 0.95) !important;
    padding: 10px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(21, 20, 25, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

@media (max-width: 576px) {
    .navbar-brand img {
        width: 35px;
        height: 35px;
    }
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--tercery-color) !important;
    font-size: 15px;
    font-weight: 400;
    padding: 6px 15px !important;
    transition: color 0.3s ease;
    position: relative;
    text-transform: capitalize;
}

@media (max-width: 992px) {
    .nav-link {
        font-size: 14px;
        padding: 4px 12px !important;
    }
}

@media (max-width: 576px) {
    .nav-link {
        font-size: 13px;
        padding: 3px 10px !important;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    background-color: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
}

.dropdown-item {
    color: var(--tercery-color) !important;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--fourty-color) !important;
}

.logo-redes {
    color: var(--primary-color);
    font-size: 18px;
    margin: 0 8px;
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .logo-redes {
        font-size: 16px;
        margin: 0 5px;
    }
}

.logo-redes:hover {
    color: var(--tercery-color);
    transform: translateY(-3px);
}

/* Botón Descargar CV */
.btn-download-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--primary-color);
    color: var(--fourty-color);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    margin: 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-download-cv:hover {
    background: #ff8c3a;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(245, 110, 15, 0.4);
    color: var(--fourty-color);
}

.btn-download-cv i {
    font-size: 15px;
}

/* Media query para CV button en mobile */
@media (max-width: 992px) {
    .btn-download-cv span {
        display: none;
    }
    
    .btn-download-cv {
        padding: 8px 12px;
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .btn-download-cv {
        margin: 5px 0;
    }
}

/* Logo del navbar */

.navbar-brand img {
    background: linear-gradient(135deg, #f56e0f 0%, #ff8c3a 100%);
    padding: 6px;
    border-radius: 8px;
}

/* Placeholder de perfil */

.perfil-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, rgba(245, 110, 15, 0.2) 0%, rgba(255, 140, 58, 0.2) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.perfil-placeholder:hover {
    transform: scale(1.02);
}

.perfil-placeholder i {
    font-size: 80px;
    color: var(--primary-color);
}

/* Placeholder de proyectos */

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2930 0%, #1a1920 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder i {
    font-size: 60px;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 60px;
    background: var(--fourty-color);
    position: relative;
}

.cont-nombre {
    animation: fadeInLeft 1s ease;
}

.nombre {
    margin-bottom: 30px;
}

.nombre h2 {
    font-size: 26px;
    font-weight: 400;
    margin: 0;
    letter-spacing: 4px;
    color: var(--tercery-color);
    line-height: 0.1;
}

.nombre h3 {
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 0 36px;
    letter-spacing: 4px;
    color: var(--tercery-color);
    line-height: 0.1;
}

.nombre h3 span {
    color: var(--primary-color);
    font-size: clamp(48px, 7vw, 80px);
}

.linea-hor {
    border-top: 2px solid var(--primary-color);
    margin: 20px 0 30px 0;
    width: 60%;
    box-shadow: 0 0 10px rgba(245, 110, 15, 0.3);
}

.enlaces-contacto {
    font-size: 18px;
    font-weight: 300;
}

.enlaces-contacto a {
    color: var(--tercery-color);
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 400;
}

.enlaces-contacto a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.enlaces-contacto a:hover::before {
    width: 100%;
}

.enlaces-contacto a:hover {
    color: var(--primary-color);
}

.linea-ver {
    color: var(--secondary-color);
    margin: 0 15px;
}

.cont-img {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.3s both;
    position: relative;
    min-height: 520px; /* Aumentado para dar más espacio a la imagen */
}

.hero-circle {
    width: 360px;
    height: 360px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c3a 100%);
    border-radius: 50%;
    position: relative;
    margin: auto;
    box-shadow: 
        0 0 60px rgba(245, 110, 15, 0.6),
        0 0 120px rgba(245, 110, 15, 0.4),
        inset 0 0 80px rgba(255, 140, 58, 0.3);
    animation: float 6s ease-in-out infinite;
    overflow: hidden; /* Asegura que la imagen no se desborde fuera del círculo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Asegura que la parte superior (cara) quede visible */
}

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

.hero-circle::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(245, 110, 15, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.cont-intro {
    animation: fadeInRight 1s ease 0.6s both;
    text-align: left;
}

.intro-tag {
    color: var(--primary-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    font-weight: 400;
    display: block;
}

.intro-tag::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 1px;
    background: var(--primary-color);
    margin-left: 15px;
    vertical-align: middle;
}

.cont-intro h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 4px;
    line-height: 1.2;
    text-transform: uppercase;
}

.cont-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 500px;
}

.cont-intro a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 400;
    font-size: 15px;
    transition: all 0.4s ease;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.cont-intro a:hover {
    background: var(--primary-color);
    color: var(--fourty-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 110, 15, 0.4);
}

.cont-intro a i {
    transition: transform 0.4s ease;
}

.cont-intro a:hover i {
    transform: translateY(3px);
}

/* Section Titles */
section {
    position: relative;
    padding: 100px 0;
}

section h6 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
    letter-spacing: 10px;
}

section h4 {
    color: var(--primary-color);
    text-align: center;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: 3px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

section h4::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
    box-shadow: 0 0 10px rgba(245, 110, 15, 0.5);
}

/* Perfil Section */
#perfil {
    background: linear-gradient(135deg, rgba(21, 20, 25, 0.9) 0%, rgba(31, 30, 35, 0.9) 100%);
}

.cont-img-perfil {
    padding: 20px;
}

.cont-img-perfil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(245, 110, 15, 0.2);
    transition: transform 0.3s ease;
}

.cont-img-perfil img:hover {
    transform: scale(1.05);
}

.cont-info-perfil {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cont-info-perfil p {
    line-height: 1.9;
    color: var(--secondary-color);
    font-size: 16px;
    text-align: justify;
    margin-bottom: 15px;
}

/* Habilidades Section */
#habilidades {
    text-align: center;
    background: linear-gradient(135deg, rgba(21, 20, 25, 0.5) 0%, rgba(31, 30, 35, 0.5) 100%);
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.skill {
    background: rgba(31, 30, 35, 0.8);
    border: 1px solid rgba(245, 110, 15, 0.15);
    border-radius: 15px;
    padding: 20px 15px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.skill i {
    font-size: 46px;
    color: var(--primary-color)
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c3a 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.skill:hover::before {
    opacity: 0.1;
}

.skill:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(245, 110, 15, 0.35);
    background: rgba(31, 30, 35, 0.95);
}

.skill-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    border-radius: 8px;
}

.skill:hover .skill-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(245, 110, 15, 0.5));
}

.skill-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary-color);
    margin-top: 0;
    font-family: "Oswald", sans-serif;
    text-align: center;
    position: relative;
    z-index: 1;
    letter-spacing: 0.8px;
    transition: color 0.4s ease;
    text-transform: uppercase;
}

.skill:hover .skill-title {
    color: var(--tercery-color);
    font-weight: 600;
}

/* Portafolio Section */
#portafolio {
    padding: 100px 0;
    text-align: center;
}

.cards-container {
    display: grid;
    /* Diseño responsivo con mínimo de 300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.project-card {
    background: rgba(31, 30, 35, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(245, 110, 15, 0.1);
    padding: 25px;
    transition: all 0.4s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(245, 110, 15, 0.3);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-placeholder {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-placeholder i {
    font-size: 24px;
    color: #1a1a1a;
}

.card-header a i {
    color: var(--secondary-color);
    font-size: 24px;
    transition: color 0.3s ease;
}

.card-header a:hover i {
    color: var(--primary-color);
}

.card-body h3 {
    font-size: 20.8px;
    color: var(--tercery-color);
    margin-top: 5px;
    margin-bottom: 5px;
    font-family: "Michroma", sans-serif;
}

.card-body .project-description {
    color: var(--secondary-color);
    font-size: 14.4px;
    line-height: 1.5;
    flex-grow: 1; /* Esto ayuda a que el cuerpo ocupe el espacio */
}

.card-body .update-info {
    font-size: 12.8px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.card-footer {
    border-top: 1px solid rgba(245, 110, 15, 0.1);
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer .language-tag {
    background: rgba(245, 110, 15, 0.2);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.card-footer .stars {
    color: gold;
    font-size: 14.4px;
}

.card-footer .stars i {
    color: gold;
    margin-right: 5px;
}

/* Estudios Section */
#estudios {
    padding: 100px 0;
    text-align: center;
}

.estudios-container {
    display: grid;
    /* Usamos una rejilla similar a la de hobbies para consistencia */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
    text-align: left; /* Volvemos a alinear el texto a la izquierda en los ítems */
}

.estudio-item {
    background: rgba(31, 30, 35, 0.9);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(245, 110, 15, 0.1);
    transition: all 0.4s ease;
    cursor: default; /* Mantenemos el cursor normal, ya que no son enlaces */
    min-height: 250px; /* Aseguramos una altura mínima consistente */
}

/* 🚀 EL HOVER A CORREGIR: Aplicamos el efecto de elevación */
.estudio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(245, 110, 15, 0.3); 
    border-color: var(--primary-color);
}

.estudio-icon-wrapper {
    background: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: background 0.4s ease;
}

.estudio-icon {
    color: #1a1a1a;
    font-size: 24px;
}

.estudio-title {
    font-size: 19.2px;
    color: var(--tercery-color);
    margin-bottom: 5px;
    font-family: "Michroma", sans-serif;
}

.estudio-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: #1a1a1a;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12.8px;
    font-weight: bold;
    margin-bottom: 15px;
}

.estudio-institution,
.estudio-description {
    color: var(--secondary-color);
    font-size: 15.2px;
    margin-bottom: 5px;
}

/* Experiencia Section */
#experiencia {
    background: linear-gradient(135deg, rgba(21, 20, 25, 0.9) 0%, rgba(31, 30, 35, 0.9) 100%);
    padding: 100px 0;
}

.experiencia-container {
    max-width: 900px;
    margin: 60px auto 0;
}

.experiencia-item {
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.experiencia-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 35px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--fourty-color);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.experiencia-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(245, 110, 15, 0.3);
    border-left-width: 6px;
}

.experiencia-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.experiencia-title {
    font-size: 20.8px;
    color: var(--tercery-color);
    margin: 0;
    font-family: "Michroma", sans-serif;
}

.experiencia-duration {
    background: var(--primary-color);
    color: var(--fourty-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14.4px;
    font-weight: 600;
}

.experiencia-company {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.experiencia-description {
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 15.2px;
}

@media (max-width: 768px) {
    .experiencia-item::before {
        display: none;
    }
    
    .experiencia-item {
        border-left-width: 3px;
    }
}

/* Hobbies Section */
#hobbies {
    text-align: center;
    background: linear-gradient(135deg, rgba(21, 20, 25, 0.9) 0%, rgba(31, 30, 35, 0.9) 100%);
    padding: 100px 0;
}

/* Contenedor general */
.hobbies-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    height: auto;
    margin: 60px auto 0;
}

/* Item base (Tarjeta) */
.hobby-item {
    background: rgba(31, 30, 35, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(245, 110, 15, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-align: center;
    min-height: 250px;
}

.hobby-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(245, 110, 15, 0.3);
    border-color: var(--primary-color);
}

/* Encabezado con Emoji */
.hobby-header {
    background: linear-gradient(0deg, rgba(245, 110, 15, 0.1) 0%, transparent 100%);
    padding: 25px 20px 15px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hobby-emoji {
    font-size: 56px;
    filter: drop-shadow(0 3px 10px rgba(245, 110, 15, 0.3));
    transition: transform 0.4s ease;
}

.hobby-item:hover .hobby-emoji {
    transform: scale(1.1);
}

/* Cuerpo de la tarjeta con el texto */
.hobby-body {
    padding: 20px 25px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hobby-title {
    font-size: 17.6px;
    color: var(--tercery-color);
    margin-bottom: 8px;
    font-family: "Michroma", sans-serif;
}

.hobby-description {
    color: var(--secondary-color);
    font-size: 14.4px;
    line-height: 1.6;
}

/* Responsividad */
@media (max-width: 576px) {
    .hobbies-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Footer */
.modern-footer {
    background: #0f0e12;
    padding: 60px 20px 30px;
    text-align: center;
    margin-top: 100px;
    /* ELIMINAMOS EL BORDE SUPERIOR GRUESO NARANJA */
    border-top: none; 
}

.footer-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 36px; /* Tamaño optimizado para mejor balance */
    letter-spacing: 4px;
}

.footer-header p {
    color: var(--secondary-color);
    margin-bottom: 50px; /* Más espacio entre el título y los enlaces */
    font-size: 18px; /* Hacemos el subtítulo un poco más grande */
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* Reducimos ligeramente el espacio entre enlaces para que se vean más unidos */
    margin: 40px 0; /* Mantenemos el margen */
}

.footer-item {
    color: var(--tercery-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(245, 110, 15, 0.5);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-item:hover {
    color: var(--fourty-color);
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px); /* Movimiento de hover más sutil */
    box-shadow: 0 5px 15px rgba(245, 110, 15, 0.4); /* Sombra más sutil */
}

.footer-item i {
    font-size: 16px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    /* ELIMINAMOS LA SEGUNDA LÍNEA HORIZONTAL */
    border-top: none; 
}

.footer-bottom p {
    color: var(--secondary-color);
    font-size: 14px;
}

.footer-bottom span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 15px 30px;
    }

    .hero-circle {
        width: 250px;
        height: 250px;
    }

    .nombre h2, .nombre h3 {
        font-size: 24px;
    }

    .nombre h3 span {
        font-size: clamp(32px, 5vw, 50px);
    }

    .linea-hor {
        width: 100%;
    }

    .timeline-line {
        left: 5%;
        width: 90%;
    }

    .timeline-items {
        flex-direction: column;
        gap: 60px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    section h6 {
        font-size: 50px !important;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-item {
        width: 90%;
        justify-content: center;
    }

    .cont-intro a {
        padding: 10px 25px;
        font-size: 13px;
    }
}

/* Tablets y dispositivos medianos */
@media (max-width: 576px) {
    .hero {
        padding: 60px 15px 20px;
    }

    .hero-circle {
        width: 200px;
        height: 200px;
        margin-top: 20px;
    }

    .nombre {
        margin-bottom: 20px;
    }

    .nombre h2, .nombre h3 {
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 2px;
    }

    .nombre h3 span {
        font-size: clamp(24px, 4vw, 40px);
    }

    .enlaces-contacto {
        font-size: 14px;
    }

    .enlaces-contacto a {
        margin: 0 5px;
    }

    .linea-ver {
        margin: 0 10px;
    }

    .cont-intro {
        text-align: center;
        margin-top: 30px;
    }

    .cont-intro h2 {
        font-size: 18px;
    }

    .cont-intro p {
        font-size: 14px;
        line-height: 1.6;
    }

    .cont-intro a {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 12px;
    }

    /* Secciones */
    section {
        padding: 60px 15px !important;
    }

    section h6 {
        font-size: 40px !important;
    }

    section h4 {
        font-size: clamp(20px, 5vw, 28px) !important;
        margin-bottom: 30px !important;
    }

    /* Skills */
    .skills {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 15px;
        margin-top: 40px;
    }

    .skill {
        padding: 15px 10px;
        min-height: 100px;
        gap: 8px;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
    }

    .skill-title {
        font-size: 11px;
    }

    /* Cards */
    .project-card {
        padding: 20px;
        min-height: 250px;
    }

    .card-header {
        margin-bottom: 10px;
    }

    .project-placeholder {
        width: 40px;
        height: 40px;
    }

    .project-placeholder i {
        font-size: 50px;
    }

    .card-header a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    /* Perfil */
    .cont-img-perfil {
        padding: 15px;
        margin-bottom: 30px;
    }

    .perfil-placeholder {
        height: 280px !important;
    }

    .cont-info-perfil {
        padding: 20px 15px;
    }

    .cont-info-perfil p {
        font-size: 14px;
        text-align: center;
    }

    /* Experiencia */
    .experiencia-item {
        padding: 20px 15px;
        margin-left: 0;
        border-left: 2px solid var(--primary-color);
    }

    .experiencia-title {
        font-size: 18px;
    }

    .experiencia-duration {
        font-size: 12px;
        padding: 4px 10px;
    }

    .experiencia-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Estudios */
    .estudios-container {
        grid-template-columns: 1fr;
    }

    .estudio-item {
        padding: 20px 15px;
    }

    .estudio-title {
        font-size: 16px;
    }

    /* Footer */
    .footer-header h3 {
        font-size: 24px;
    }

    .footer-header p {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .footer-item {
        font-size: 12px;
        padding: 8px 15px;
    }

    .footer-item i {
        font-size: 14px;
    }

    /* Scroll to top button */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--fourty-color);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(245, 110, 15, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 110, 15, 0.7);
}
