:root {
    --color-background: #1e1e1e;
    --color-background-alt: #383838;
    --color-text: #fff;
    --color-accent: #af9d55;
    --font-primary: 'Lato', sans-serif;
    --font-display: 'Funnel Display', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: linear-gradient(153.95deg, var(--color-background), var(--color-background-alt));
    line-height: 1.6;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px;
    background: rgba(56, 56, 56, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.contact {
    position: relative;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text);
}

/* Language Switcher */
.language-switcher {
    margin-left: auto;
    display: flex;
    gap: 20px;
    align-items: center;
}

.language-switcher a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.language-switcher a:hover {
    opacity: 1;
}

.language-switcher a.active {
    color: var(--color-accent);
    opacity: 1;
}

/* Main Container */
.main-container {
    margin-top: 80px;
    padding: 24px 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Content Container */
.content-container {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
}

/* Tagline */
.tagline-container {
    text-align: center;
    padding: 20px 0;
    width: 1237px;
    margin-left: auto;
    margin-right: auto;
}

.tagline {
    font-family: var(--font-display);
    font-size: 90px;
    line-height: 95.04px;
    width: 1237px;
    margin: 0 auto;
    text-align: center;
}

.mundos {
    color: var(--color-accent);
}

/* Profile Section */
.profile-and-image-container {
    width: 1237px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 0 20px;
    font-family: var(--font-mono);
    margin: 0 auto;
}

.profile-container {
    width: 352px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name-and-email-container-parent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.name-and-email-container {
    width: 263px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.name {
    font-size: 24px;
    line-height: 32.76px;
}

.email-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    line-height: 32.76px;
}

.heroicons-solidmail {
    width: 20px;
    height: 20px;
    filter: invert(70%) sepia(19%) saturate(753%) hue-rotate(358deg) brightness(89%) contrast(86%);
}

.profile-image-icon {
    width: 100%;
    height: 352px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.image-container-icon {
    width: 861px;
    height: fit-content;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Projects Grid */
.projects-container {
    padding: 0 20px 80px;
    width: 100%;
}

.projects-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
    max-width: 1052px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    height: 378px;
    overflow: hidden;
    background: rgba(56, 56, 56, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.project-image-icon {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-name {
    position: absolute;
    top: 238px;
    left: 19px;
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--color-text);
}

.project-card .project-type {
    position: absolute;
    top: 268px;
    left: 19px;
    background: rgba(175, 157, 85, 0.1);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.project-description {
    position: absolute;
    top: 306px;
    left: 19px;
    font-size: 14px;
    font-weight: 300;
    padding-right: 19px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 270px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 42px;
    line-height: 1.5;
}

/* Footer */
.site-footer {
    background-color: var(--color-background-alt);
    padding: 35px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-description {
    font-size: 25px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1280px) {
    .tagline-container,
    .profile-and-image-container,
    .description-container {
        width: 100%;
        padding: 0 20px;
    }
    
    .tagline {
        width: 100%;
        font-size: 72px;
        line-height: 80px;
    }

    .image-container-icon {
        width: calc(100% - 375px);
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 1024px) {
    .tagline {
        font-size: 60px;
        line-height: 65px;
    }

    .profile-and-image-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-container {
        width: 100%;
        max-width: 352px;
    }

    .image-container-icon {
        width: 100%;
        max-width: 861px;
        height: auto;
        min-height: 300px;
    }

    .projects-row {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .tagline {
        font-size: 40px;
        line-height: 45px;
        padding: 0;
    }

    .profile-and-image-container {
        padding: 0 20px;
    }

    .name-and-email-container {
        width: 100%;
    }

    .projects-container {
        padding: 20px 20px 40px;
    }

    .projects-row {
        grid-template-columns: 1fr;
        max-width: 325px;
        gap: 30px;
    }

    .project-card {
        max-width: 325px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .tagline {
        font-size: 32px;
        line-height: 36px;
    }

    .projects-container {
        padding: 20px 15px 30px;
    }

    .projects-row {
        gap: 25px;
    }
}

/* Description Section */
.description-container {
    width: 1237px;
    padding: 0;
    text-align: center;
    margin: 0 auto;
    position: relative;
}

.description-container::after {
    content: '';
    display: block;
    width: 100%;
    max-width: 800px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 60px auto 0;
}

.main-description {
    font-size: 25px;
    line-height: 32px;
    width: 1237px;
    margin: 0 auto;
    font-family: var(--font-primary);
}

@media (max-width: 1280px) {
    .description-container {
        width: 100%;
        padding: 0 20px;
    }

    .main-description {
        width: 100%;
        max-width: 800px;
    }
}

/* Contact Page */
.contact-container {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-content {
    background: rgba(56, 56, 56, 0.5);
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--color-text);
    letter-spacing: 1px;
}

.contact-description {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.2rem;
    color: var(--color-text);
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-direct {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(175, 157, 85, 0.1);
    border-radius: 12px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-email img {
    width: 24px;
    height: 24px;
    opacity: 1;
    color: var(--color-accent);
    filter: invert(70%) sepia(19%) saturate(753%) hue-rotate(358deg) brightness(89%) contrast(86%);
}

.contact-email a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-email a:hover {
    color: #c4b16e;
    transform: translateY(-1px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.9;
    font-family: var(--font-mono);
    margin-left: 4px;
}

.form-group input,
.form-group textarea {
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(175, 157, 85, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(175, 157, 85, 0.1);
}

.submit-button {
    padding: 16px 32px;
    background: var(--color-accent);
    color: var(--color-text);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: 16px;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(175, 157, 85, 0.2);
}

.submit-button:hover {
    background: #c4b16e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(175, 157, 85, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-container {
        padding: 40px 20px;
    }

    .contact-content {
        padding: 40px 20px;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .contact-description {
        font-size: 1.1rem;
    }

    .contact-email {
        padding: 10px 20px;
    }

    .contact-email a {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px;
    }

    .submit-button {
        padding: 14px 28px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-content {
        padding: 30px 15px;
    }

    .contact-title {
        font-size: 2rem;
    }
}

/* Project Single Page */
.project-single {
    max-width: 1052px;
    margin: 0 auto;
    padding: 40px 20px;
}

.project-header {
    position: relative;
    margin-bottom: 60px;
}

.project-hero-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.project-info {
    max-width: 800px;
    margin: 0 auto 60px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 90px;
    line-height: 95.04px;
    margin-bottom: 24px;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.project-metadata {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.project-metadata .project-type,
.project-metadata .project-date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(30, 30, 30, 0.9);
    color: var(--color-accent);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(175, 157, 85, 0.3);
}

.project-logline {
    font-size: 24px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-primary);
    font-weight: 300;
}

.project-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-primary);
}

.project-content h1 {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--color-accent);
    margin: 60px 0 24px;
    letter-spacing: -0.02em;
}

.project-content h2 {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--color-accent);
    margin: 60px 0 24px;
    letter-spacing: 0.5px;
}

.project-content p {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-primary);
}

.project-content strong {
    color: var(--color-accent);
    font-weight: 600;
}

.project-content ul {
    margin: 24px 0;
    padding-left: 24px;
    list-style-type: none;
}

.project-content ul li {
    margin-bottom: 16px;
    position: relative;
    padding-left: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-primary);
}

.project-content ul li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

.project-content a:hover {
    color: #c4b16e;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .project-single {
        padding: 20px;
    }

    .project-hero-image {
        height: 400px;
        margin-bottom: 30px;
    }

    .project-title {
        font-size: 36px;
    }

    .project-logline {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-content {
        font-size: 16px;
    }

    .project-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        max-width: none;
    }

    .project-content {
        font-size: 16px;
    }

    .project-content h1 {
        font-size: 28px;
        margin: 40px 0 20px;
    }

    .project-content h2 {
        font-size: 28px;
        margin: 40px 0 20px;
    }

    .project-content p {
        font-size: 18px;
    }

    .project-content ul {
        padding-left: 16px;
    }

    .project-content ul li {
        padding-left: 20px;
    }
}

.nav-link:hover {
    background: rgba(175, 157, 85, 0.1);
    transform: translateY(-2px);
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
}

.project-navigation {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 20px;
    border-radius: 12px;
    background: rgba(56, 56, 56, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
}

.nav-label {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.nav-title {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--color-text);
}

.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(56, 56, 56, 0.3);
}

.project-content ul li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.project-content ul li ul {
    margin: 16px 0;
}

.project-content ul li ul li::before {
    content: "◦";
}

/* Destacar secciones importantes */
.project-content h2 + p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    font-family: var(--font-primary);
}

/* Estilizar números y estadísticas */
.project-content ul li strong {
    font-size: 1.1em;
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .project-single {
        padding: 20px;
    }

    .project-hero-image {
        height: 400px;
        margin-bottom: 30px;
    }

    .project-title {
        font-size: 36px;
    }

    .project-logline {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-content {
        font-size: 16px;
    }

    .project-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        max-width: none;
    }

    .project-content {
        font-size: 16px;
    }

    .project-content h1 {
        font-size: 28px;
        margin: 40px 0 20px;
    }

    .project-content h2 {
        font-size: 28px;
        margin: 40px 0 20px;
    }

    .project-content p {
        font-size: 18px;
    }

    .project-content ul {
        padding-left: 16px;
    }

    .project-content ul li {
        padding-left: 20px;
    }
}

.nav-link:hover {
    background: rgba(175, 157, 85, 0.1);
    transform: translateY(-2px);
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
}

.portfolio-section {
    padding: 0 20px;
    max-width: 1052px;
    margin: 0 auto;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--color-text);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    text-align: center;
}

.main-description .project-type {
    display: inline-block;
    background: rgba(175, 157, 85, 0.1);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.main-description .project-type a {
    color: var(--color-accent);
    text-decoration: none;
}

.main-description .project-type:hover {
    background: rgba(175, 157, 85, 0.2);
    transform: translateY(-1px);
}

.history-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    background: rgba(175, 157, 85, 0.1);
    color: var(--color-accent);
    padding: 12px 16px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    transition: all 0.3s ease;

}

.history-button a {
    color: var(--color-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.history-button:hover {
    background: rgba(175, 157, 85, 0.2);
    transform: translateY(-1px);
}

/* Estilos específicos para la página About Me */
.aboutme .project-info {
    text-align: left;
    padding-top: 80px;
}

.aboutme .project-title {
    text-align: left;
}