/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #68C5DB 0%, #448FA3 50%, #0197F6 100%);
    min-height: 100vh;
}

/* Contenedor principal */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: rgba(255, 255, 250, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(2, 24, 43, 0.3);
    border: 1px solid rgba(215, 38, 61, 0.2);
}

/* Sección Hero */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
    gap: 40px;
    flex-wrap: wrap;
}

.info-section {
    flex: 1;
    min-width: 300px;
}

.info-section h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #02182B;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #D7263D, #0197F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-section h2 {
    font-size: 1.5rem;
    color: #448FA3;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-description strong {
    color: #D7263D;
    font-weight: 600;
}

.info-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.info-buttons button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.info-buttons button:first-child {
    background: linear-gradient(45deg, #D7263D, #0197F6);
    color: #FFFFFA;
    box-shadow: 0 4px 15px rgb(68, 143, 163);
}

.info-buttons button:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(215, 38, 61, 0.5);
    background: linear-gradient(45deg, #0197F6, #D7263D);
}

.info-buttons button:last-child {
    background: transparent;
    color: #448FA3;
    border: 2px solid #448FA3;
}

.info-buttons button:last-child:hover {
    background: #448FA3;
    color: #FFFFFA;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(68, 143, 163, 0.3);
}

.photo-section {
    flex: 0 0 300px;
    text-align: center;
}

.photo-section img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #68C5DB;
    box-shadow: 0 15px 30px rgba(2, 24, 43, 0.3);
    transition: transform 0.3s ease;
}

.photo-section img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(1, 151, 246, 0.4);
    border-color: #0197F6;
}

/* Secciones principales */
.about-me,
.skills,
.proyects,
.education-certifications {
    padding: 50px 40px;
    border-top: 1px solid rgba(68, 143, 163, 0.2);
}

.about-me h2,
.skills h2,
.proyects h2,
.education-certifications h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.about-me h2::after,
.skills h2::after,
.proyects h2::after,
.education-certifications h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #D7263D, #0197F6);
    border-radius: 2px;
}

.about-me p {
    font-size: 1.1rem;
    color: #2d2d2d;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

/* Sección de habilidades */
.skills-default {
    margin-bottom: 40px;
}

.skills-desc {
    text-align: center;
    font-size: 1.1rem;
    color: #2d2d2d;
    margin-bottom: 40px;
}

.skills-default h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 600;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(104, 197, 219, 0.1) 0%, rgba(255, 255, 250, 0.9) 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(2, 24, 43, 0.1);
    transition: all 0.3s ease;
    min-width: 120px;
    border: 1px solid rgba(68, 143, 163, 0.2);
}

.icon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(1, 151, 246, 0.3);
    border-color: #0197F6;
    background: linear-gradient(135deg, rgba(104, 197, 219, 0.2) 0%, rgba(255, 255, 250, 0.95) 100%);
}

/* Colores originales para tecnologías */
.icon-item i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* HTML */
.icon-item i.fa-html5 {
    color: #E34F26;
}

/* CSS */
.icon-item i.fa-css3 {
    color: #1572B6;
}

/* JavaScript */
.icon-item i.fa-square-js {
    color: #F7DF1E;
}

/* Node.js */
.icon-item i.fa-node-js {
    color: #339933;
}   

/* Git */
.icon-item i.fa-git-alt {
    color: #F05032;
}

/* SQL */
.icon-item i.fa-database {
    color: #9e9e9e;
}

/* Docker */
.icon-item i.fa-docker {
    color: #2496ED;
}

/* PHP */
.icon-item i.fa-php {
    color: #777BB4;
}

/* Fallback para iconos genéricos */
.icon-item i:not([class*="fa-"]) {
    color: #D7263D;
}

.icon-item p {
    font-size: 0.9rem;
    color: #1a1a1a;
    font-weight: 600;
}

.icons > i {
    font-size: 3rem;
    color: #D7263D;
    padding: 20px;
    background: linear-gradient(135deg, rgba(104, 197, 219, 0.1) 0%, rgba(255, 255, 250, 0.9) 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(2, 24, 43, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(68, 143, 163, 0.2);
}

.icons > i:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(1, 151, 246, 0.3);
}

.icons > i:nth-child(2n) {
    color: #0197F6;
}

.icons > i:nth-child(3n) {
    color: #448FA3;
}

.icons > i:nth-child(4n) {
    color: #68C5DB;
}

/* Sección de proyectos */
.proyects > div {
    background: linear-gradient(135deg, rgba(104, 197, 219, 0.1) 0%, rgba(255, 255, 250, 0.95) 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(2, 24, 43, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(68, 143, 163, 0.2);
}

.proyects > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(1, 151, 246, 0.2);
    border-color: #0197F6;
}

.qr-generator {
    border-left: 4px solid #D7263D;
}

.crud-aplication {
    border-left: 4px solid #0197F6;
}

.ecommerce {
    border-left: 4px solid #448FA3;
}

.proyects h4 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
}

.qr-generator h4 {
    color: #D7263D;
}

.crud-aplication h4 {
    color: #0197F6;
}

.ecommerce h4 {
    color: #448FA3;
}

.proyects p {
    font-size: 1rem;
    color: #2d2d2d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.proyects button {
    padding: 10px 25px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.qr-generator button:first-of-type {
    background: linear-gradient(45deg, #D7263D, #c0636f);
    color: #FFFFFA;
}

.crud-aplication button:first-of-type {
    background: linear-gradient(45deg, #0197F6, #68C5DB);
    color: #FFFFFA;
}

.ecommerce button:first-of-type {
    background: linear-gradient(45deg, #448FA3, #74a8b6);
    color: #FFFFFA;
}

.proyects button:first-of-type:hover {
    box-shadow: 0 5px 15px rgba(215, 38, 61, 0.4);
    transform: translateY(-2px);
}

.proyects button:last-of-type {
    background: transparent;
    color: #448FA3;
    border: 2px solid #448FA3;
}

.proyects button:last-of-type:hover {
    background: #448FA3;
    color: #FFFFFA;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(68, 143, 163, 0.3);
}

/* Sección de educación */
.education-certifications h4 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    margin-top: 25px;
    font-weight: 600;
}

.education-certifications h4:first-of-type {
    margin-top: 0;
    color: #D7263D;
}

.education-certifications h4:nth-of-type(2) {
    color: #0197F6;
}

.education-certifications h4:nth-of-type(3) {
    color: #448FA3;
}

.education-certifications p {
    font-size: 1rem;
    color: #2d2d2d;
    margin-bottom: 15px;
}

.education-certifications strong {
    color: #D7263D;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #02182B 0%, #448FA3 50%, #0197F6 100%);
    color: #FFFFFA;
    text-align: center;
    padding: 50px 40px;
    margin-top: 0;
}

footer p {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(45deg, #D7263D, #0197F6);
    color: #FFFFFA;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(215, 38, 61, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(215, 38, 61, 0.5);
    background: linear-gradient(45deg, #0197F6, #D7263D);
}

.socials {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* Solución 1: Simplificar los estilos de hover */
.socials a {
    color: #FFFFFA;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 50%;
    background: rgba(104, 197, 219, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent; /* Cambiar de rgba a transparent */
    text-decoration: none;
}

.socials a:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 255, 250, 0.9);
    border: 2px solid transparent; /* Mantener transparente */
    box-shadow: 0 10px 20px rgba(215, 38, 61, 0.3);
}

/* Colores específicos para cada red social */
.socials a:hover i.fa-github {
    color: #181717;
}

.socials a:hover i.fa-linkedin {
    color: #0077B5;
}

/* Solución 2: Alternativa más robusta */
.socials-alt a {
    color: #FFFFFA;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 50%;
    background: rgba(104, 197, 219, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none; /* Eliminar border completamente */
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.socials-alt a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 250, 0.9);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.socials-alt a:hover::before {
    transform: scale(1);
}

.socials-alt a i {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.socials-alt a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(215, 38, 61, 0.3);
}

.socials-alt a:hover i.fa-github {
    color: #181717;
}

.socials-alt a:hover i.fa-linkedin {
    color: #0077B5;
}

/* Solución 3: Enfoque minimalista */
.socials-minimal a {
    color: #FFFFFA;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 50%;
    background: rgba(104, 197, 219, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Sin borders ni box-shadow complejos */
}

.socials-minimal a:hover {
    background: rgba(255, 255, 250, 0.9);
    transform: translateY(-2px); /* Reducir el scale que puede causar problemas */
}

.socials-minimal a:hover i.fa-github {
    color: #181717;
}

.socials-minimal a:hover i.fa-linkedin {
    color: #0077B5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .info-section h1 {
        font-size: 2.5rem;
    }
    
    .photo-section {
        flex: none;
        margin-top: 20px;
    }
    
    .photo-section img {
        width: 220px;
        height: 220px;
    }
    
    .about-me,
    .skills,
    .proyects,
    .education-certifications {
        padding: 30px 20px;
    }
    
    .icons {
        gap: 20px;
    }
    
    .icon-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .info-buttons {
        justify-content: center;
    }
    
    .hero-container {
        margin: 10px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .info-section h1 {
        font-size: 2rem;
    }
    
    .info-section h2 {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .photo-section img {
        width: 180px;
        height: 180px;
    }
    
    .icons {
        gap: 15px;
    }
    
    .icon-item {
        min-width: 80px;
        padding: 10px;
    }
    
    .icon-item i {
        font-size: 2rem;
    }
    
    .proyects button {
        font-size: 0.8rem;
        padding: 8px 20px;
    }
}