/* Reset básico para asegurar consistencia entre navegadores */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Evita la barra de desplazamiento horizontal */
    padding-top: 80px; /* Espacio para el header fijo */
}

/* Contenedores */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sección header común */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: #007bff;
    margin: 0 auto;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.hamburger {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-cta {
    margin-left: 30px;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    background-color: #e9ecef;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    margin-bottom: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.hero-content .highlight {
    color: #007bff;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 30px;
}

.hero-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
}

.hero-cta button {
    margin: 0 10px;
}

.social-links {
    margin-top: 30px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: #555;
    font-size: 1.2rem;
    margin: 0 10px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background-color: #007bff;
    color: #fff;
    transform: scale(1.1);
}

.hero-image {
    /* Estilos para la imagen del avatar (necesitarás definir la imagen) */
}

.avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.avatar-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://res.cloudinary.com/dicvw9qmd/image/upload/v1719957767/sochindep_website/members/d8erhj2jkcba2qg8up82.jpg'); /* Reemplaza con tu imagen */
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

.avatar-shape {
    /* Puedes añadir una forma superpuesta si lo deseas */
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #555;
    font-size: 1.5rem;
    cursor: pointer;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Technologies Section */
.tech-section {
    padding: 80px 0;
    background-color: #fff;
}

.tech-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.category-btn {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #555;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.category-btn i {
    margin-right: 8px;
}

.category-btn.active,
.category-btn:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tech-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 15px;
}

.tech-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.tech-level {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.progress-bar {
    background-color: #e9ecef;
    height: 8px;
    border-radius: 4px;
    flex-grow: 1;
    overflow: hidden;
}

.progress {
    background-color: #007bff;
    height: 100%;
    border-radius: 4px;
}

.level-text {
    margin-left: 10px;
    color: #555;
    font-size: 0.9rem;
}

/* Experience Section */
.experience-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #ccc;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    clear: both;
}

.timeline-item:nth-child(odd) {
    padding-right: 30px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 30px;
}

.timeline-dot {
    position: absolute;
    top: 10px;
    width: 16px;
    height: 16px;
    background-color: #007bff;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.timeline-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
}

.job-header {
    margin-bottom: 10px;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.job-company {
    color: #555;
    font-size: 1rem;
}

.job-location {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.job-location i {
    margin-right: 5px;
}

.job-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    background-color: #e9ecef;
    color: #555;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

/* Skills Section */
.skills-section {
    padding: 80px 0;
    background-color: #fff;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.skill-description {
    color: #666;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #f4f4f4;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: #007bff;
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.info-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
}

.social-links-large {
    margin-top: 30px;
}

.social-icon-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #555;
    font-size: 1.5rem;
    margin-right: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease-in-out;
}

.social-icon-large:hover {
    background-color: #007bff;
    color: #fff;
    transform: scale(1.1);
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #555;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social .social-links {
    display: flex;
    justify-content: flex-start;
}

.footer-social .social-icon {
    background-color: #444;
    color: #ccc;
    margin-right: 10px;
}

.footer-social .social-icon:hover {
    background-color: #007bff;
    color: #fff;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.8rem;
    color: #ccc;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border: none;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0056b3;
}

/* Media Queries para Responsividad */
@media (max-width: 992px) {
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        display: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links li:first-child {
        margin-top: 0;
    }

    .nav-links li:last-child {
        margin-bottom: 0;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .hero-container {
        text-align: center;
    }

    .hero-image {
        margin-top: 40px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item::before {
        left: 12px;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta button {
        width: 100%;
        margin: 10px 0;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-social .social-links {
        justify-content: flex-start;
    }
}