/* Variables */
:root {
    /* Colores principales */
    --primary-color: #0F172A;
    --secondary-color: #1E293B;
    --accent-color:  #F59E0B;

    /* Colores secundarios */
    --succes-color: #10B981;
    --alert-color: #EF4444;
    --border-color: rgba(148, 163, 184, 0.1);
    --primary-text: #F8FAFC;
    --secondary-text: #94A3B8;

    /* Tipografia */
    --font-primary: 'Inter', sans-serif;

    /* Espaciados */
    --spacing-xs: 0.5rem; /* 8px */
    --spacing-sm: 1rem; /* 16px */
    --spacing-md: 2rem; /* 32px */
    --spacing-lg: 3rem; /* 48px */
    --spacing-xl: 4rem; /* 64px */

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);

    /* Bordes */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --border-radius-pill: 20px;

    /* Transiciones */
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Reset basico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {box-sizing: border-box;}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.6;
    color: var(--secondary-text);
    overflow-x: hidden;
    background-color: var(--primary-color);
}

a {
    color: var(--primary-text);
    text-decoration: none;
}

.btn-nav-whatsapp {
    background-color: rgb(37, 211, 102); /* Verde WhatsApp o tu Naranja de marca */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-nav-whatsapp:hover {
    background-color: #128c7e; /* Un tono más oscuro al pasar el mouse */
    transform: translateY(-2px);
}

/* buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-text);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-link {
    color: var(--accent-color);
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-base);
}

.btn-link:hover::after { width: 100%; }

/* Navbar */
.navbar {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Layout === */
.section {padding: var(--spacing-xl) var(--spacing-md);}

/* === Hero Section === */
.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(245, 158, 11, 0.15) 0%,
        transparent 70%
    );
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-btn {animation: fadeInUp 0.8s ease-out 0.4s backwards;}

.cta-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.hero-visual {
    position: relative;
    width: 100%;
    margin-top: 4rem; /* Espacio después del botón CTA */
    max-width: 400px;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2;}
    50% { transform: scale(1.1); opacity: 0.3;}
}

/* La Ventana de Código */
.code-window {
    width: 100%;
    max-width: 350px; /* Tamaño contenido para móvil */
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.code-window:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(245, 158, 11, 0.1);
}

.window-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    display: flex;
    gap: 6px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; transition: all var(--transition-base); }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-window:hover .dot {box-shadow: 0 0 10px currentColor;}

.window-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem; /* Pequeño para que quepa en pantallas de 360px */
    text-align: left;
    color: var(--primary-text);
}

.code-line {
    margin: 4px 0;
    animation: typeIn 0.3s ease-out backwards;
}

.code-line:nth-child(1) { animation-delay: 0.8s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.2s; }
.code-line:nth-child(4) { animation-delay: 1.4s; }
.code-line:nth-child(5) { animation-delay: 1.6s; }
.code-line:nth-child(6) { animation-delay: 1.8s; }

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.indent { padding-left: 1.2rem; }

/* Colores de Sintaxis */
.c-purple { color: #c084fc; }
.c-blue { color: #60a5fa; }
.c-orange { color: #fb923c; }
.c-yellow { color: #facc15; }
.c-grey { color: #64748b; font-style: italic; }

/* === gallery section ===*/
.gallery-section {
    background: linear-gradient(
        180deg,
        var(--primary-color) 0%,
        rgba(15, 23, 42, 0.95) 100%
    );
}

.gallery-header { margin-bottom: var(--spacing-lg); }

.gallery-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--primary-text);
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

.gallery-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.gallery-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-sm);
}

.gallery-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr);
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.gallery-subtitle {
    font-size: 1.25rem;
    font-weight:600;
    color:var(--primary-text);
    margin:var(--spacing-lg) 0 var(--spacing-sm);
    padding-left:.75rem;
    border-left:4px solid var(--accent-color)
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2rem
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: rgba(30,41,59,.6);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .3s ease,border-color .3s ease,box-shadow .3s ease
}

.featured-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245,158,11,.5); 
    box-shadow: 0 20px 40px rgba(0,0,0,.4), 0 0 30px rgba(245,158,11,.15)
}

.featured-card--main {
    grid-column: 1/-1;
    flex-direction: row; border-color: rgba(245,158,11,.4);
    box-shadow: 0 0 40px rgba(245,158,11,.12)
}

.featured-media {
    overflow: hidden; 
    aspect-ratio: 16/9;
}
.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease
}

.featured-card:hover .featured-media img { transform:scale(1.05) }

.featured-card--main .featured-media {
    flex: 1 1 55%;
    aspect-ratio: auto; 
    min-height: 300px
}

.featured-body { 
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1 1 45%
}

.featured-badge {
    align-self: flex-start;
    background: var(--accent-color); 
    color: var(--primary-color);
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--border-radius-pill); 
    letter-spacing: .04em;
    text-transform: uppercase
}

.featured-badge--alt {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color)
}

.featured-title {
    font-size: 1.4rem;
    color: var(--primary-text);
    margin: 0
}

.featured-card--main .featured-title { font-size: clamp(1.6rem,3vw,2.1rem) }
.featured-desc {
    color: var(--secondary-text);
    line-height: 1.6; 
    margin: 0
}

.featured-points {
    list-style: none;
    padding: 0; 
    margin: 0;
    display: grid;
    gap: .4rem;
    color: var(--primary-text);
    font-size: .92rem
}

.featured-points li::before {
    content: "\2713";
    color: var(--accent-color);
    font-weight: 700; 
    margin-right: .5rem
}

.featured-card .tag-container { margin: .5rem 0 }
.featured-card .card-links { margin-top:auto }
@media (max-width:900px) { 
    .featured-grid { 
        grid-template-columns: 1fr
    }

    .featured-card--main { 
        flex-direction: column
    }
    .featured-card--main .featured-media {
        min-height: 0;
        aspect-ratio:16/9
    }
}

.card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.2);
}

.card-header {
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img { transform: scale(1.1); }

.card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover .card-header::after { opacity: 1; }

.card-content { padding: 1.5rem; }

.card-title {
    margin-bottom: 0.5rem;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--primary-text);
    font-weight: 600;
}

.concept {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.card-description {
    padding: 0.5rem 0;
    text-align: justify;
    line-height: 1.7;
}

.tag-container {
    display: flex;
    gap: 0.5rem;
    margin: 1.2rem 0;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--primary-text);
    padding: 5px 12px;
    border-radius: var(--border-radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--transition-base);
} 

.tag:hover {
    background-color: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.card-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

/* === About Section === */
.about-section {
    padding: 80px 0;
    color: #CCD6F6;
    margin: var(--spacing-md);
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.about-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.about-card {
    background-color: rgba(17, 34, 64, 0.6);
    border: 1px solid rgba(255, 193, 7, 0.15);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    backdrop-filter: blur(5px);
    max-width: 1000px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #8892B0;
    margin-bottom: 20px;
    text-align: center;
}

.highlight {
    color: var(--accent-color);
    font-weight: 500;
}

.about-note-box {
    display: flex;
    gap: 15px;
    background: rgba(255, 193, 7, 0.05);
    padding: 15px;
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
    align-items: start;
}

.note-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 2px;
}

.about-note {
    font-size: 0.9rem;
    margin: 0;
    color: #E6F1FF;
    font-style: italic;
}

.about-subtitle {
    font-size: 1.25rem;
    color: #FFF;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: inline-block;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-base);
    cursor: default;
}

.skill-tag:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* === Contact Section === */
.contact-section {
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
}

.contact-content {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-header { text-align: center; }

.contact-title {
    color: var(--primary-text);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.contact-description {
    color: var(--secondary-text);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: rgba(30, 41, 59, 0.6);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
}

.contact-form-title {
    color: var(--primary-text);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 700;
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: var(--primary-text);
    font-size: 0.95rem;
    font-weight: 600;
}

.form-input,
.form-textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-text);
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    width: 100%;
    transition: all var(--transition-base);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-input:focus,
.form-textarea:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--accent-color);
    box-shadow: 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
}

.form-input:not(:placeholder-shown):invalid {
    border-color: var(--alert-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input:not(:placeholder-shown):valid { border-color: var(--succes-color); } 

.privacy-note {
    font-size: 0.78rem;
    color: var(--secondary-text);
    line-height: 1.5;
    margin: 0 0 1rem;
}

.form-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--secondary-text);
    line-height: 1.5;
    margin: 0 0 1rem;
}

.form-consent input {
    margin-top: 0.25rem;
    accent-color: var(--accent-color);
    flex-shrink: 0;
}

.privacy-note a,
.form-consent a {
    color: var(--accent-color);
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

.form-success-container {
    text-align: center;
    padding: var(--spacing-md);
    animation: fadeInUp 0.6s ease-out;
}

.success-icon {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--succes-color);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    border: 2px solid var(--succes-color);
    animation: scaleIn 0.5 ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    color: var(--primary-text);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.success-text {
    color: var(--secondary-text);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* === footer === */
.footer {
    background-color: var(--secondary-color);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-text);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-logo:hover { color: var(--accent-color); }

.footer-logo .accent { color: var(--accent-color); }

.footer-tagline {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--primary-text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-links a:hover { color: var(--accent-color); transform: translateX(5px); }

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.social-icons a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons a:hover { color: var(--accent-color); transform: translateY(-2px); }

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.tech-stack {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-base);
}

.tech-badge:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px; /* Separación del borde inferior */
    right: 20px;  /* Separación del borde derecho */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000; /* Para que nada lo tape */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.1); /* Efecto visual al pasar el mouse */
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    } 
    to {
        opacity: 1;
    }
}

/* ==== Media queries === */

/* Tablet */
@media screen and (min-width: 768px) {
    .hero-description {
        max-width: 700px;
    }

    .code-window {
        max-width: 450px;
    }

    .window-body {
        font-size: 0.9rem;
        padding: 25px;
    }

    .about-card {
        padding: 50px;
    }

    .footer-container {
        text-align: left;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .social-icons {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop */
@media screen and (min-width: 1024px) {
    /* Hero desktop */
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
        gap: 4rem;
    }

    .hero-text-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-visual {
        flex: 1;
        margin-top: 0;
        justify-content: flex-end;
    }

    .code-window {
        max-width: 500px;
        transform: perspective(1000px) rotateY(-10deg) rotateX(3deg);
    }

    .code-window:hover {
        transform: perspective(1000px) rotateY(-5deg) rotateX(0) translateY(-10px);
    }

    .hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }

    /* About desktop */
    .about-card {
        padding: 80px;
    }

    .about-content {
        flex-direction: row;
        gap: 50px;
        align-items: flex-start;
    }

    .about-left {
        flex: 3;
    }
    
    .about-description {
        font-size: 1.1rem;
        line-height: 1.7;
        width: 90%;
        color: var(--secondary-text);
        margin-bottom: 25px;
        text-align: justify;
    }

    .about-right {
        flex: 2;
    }

    /* Proyects desktop */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
    }

    /* Footer desktop */
    .footer-container {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr;
        text-align: left;
        align-items: start;
        gap: var(--spacing-xl);
    }

    .footer-brand {
        max-width: 350px;
    }

    .footer-links,
    .footer-social {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        grid-column: 1 / -1;
    }
}

/* Desktop large */
@media screen and (min-width: 1200px) {
    .section {
        padding: calc(var(--spacing-xl) + var(--spacing-md)) var(--spacing-lg);
    }
}