
/* ==============================================
   PORTFOLIO DAVID MARTIN
   Estilo: Dark Minimal
   ============================================== */


/* ==============================================
   1. VARIABLES DE DISEÑO
   ============================================== */

:root {
    --color-fondo: #0B1120;
    --color-tarjetas: #151E30;
    --color-azul: #3B82F6;
    --color-titulos: #F8FAFC;
    --color-textos: #94A3B8;

    --fuente-titulos: 'Cormorant Garamond', serif;
    --fuente-textos: 'Inter', sans-serif;
}


/* ==============================================
   2. RESETEO GENERAL
   ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==============================================
   3. CONFIGURACIÓN GENERAL
   ============================================== */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-textos);
    font-family: var(--fuente-textos);
    line-height: 1.6;
    min-height: 100vh;
}


/* ==============================================
   4. TIPOGRAFÍAS
   ============================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulos);
    color: var(--color-titulos);
    font-weight: 500;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
}

p {
    font-size: 1rem;
    line-height: 1.8;
}


/* ==============================================
   5. ENLACES
   ============================================== */

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--color-azul);
}


/* ==============================================
   6. IMÁGENES RESPONSIVE
   ============================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ==============================================
   7. ACCESIBILIDAD
   ============================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* ==============================================
   8. BARRA DE NAVEGACIÓN
   ============================================== */

.header {
    width: 100%;
    border-bottom: 1px solid #263247;
    background-color: #0B1120;

    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* LOGO */

.logo {
    font-family: var(--fuente-textos);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-titulos);
    white-space: nowrap;
}

.logo span {
    color: var(--color-azul);
}


/* ENLACES */

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    font-size: 13px;
    color: #CBD5E1;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-azul);
}


/* BOTÓN CONTACTO */

.nav-contact {
    display: inline-block;
    background-color: var(--color-azul);
    color: #FFFFFF;

    padding: 10px 18px;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 500;

    transition: background-color 0.3s ease;
}

.nav-contact:hover {
    background-color: #2563EB;
    color: #FFFFFF;
}



/* ==============================================
   9. PORTADA PRINCIPAL - HERO
   ============================================== */

.hero {
    min-height: calc(100vh - 73px);

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            ellipse at 20% 15%,
            rgba(30, 70, 120, 0.22),
            transparent 55%
        ),
        var(--color-fondo);
}


/* CONTENEDOR */

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 30px;
}


/* ETIQUETA SUPERIOR */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 8px 15px;
    margin-bottom: 30px;

    border: 1px solid #263D59;
    border-radius: 30px;

    background-color: rgba(21, 30, 48, 0.65);

    color: #93C5FD;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.badge-icon {
    color: #38BDF8;
    font-size: 15px;
}


/* TÍTULO PRINCIPAL */

.hero-title {
    max-width: 850px;
    margin-bottom: 10px;

    font-family: var(--fuente-titulos);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -1px;

    color: var(--color-titulos);
}


/* SUBTÍTULO */

.hero-subtitle {
    max-width: 850px;
    margin-bottom: 25px;

    font-family: var(--fuente-titulos);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.15;

    color: #CBD5E1;
}


/* DESCRIPCIÓN */

.hero-description {
    max-width: 650px;
    margin-bottom: 30px;

    font-family: var(--fuente-textos);
    font-size: 15px;
    line-height: 1.9;

    color: var(--color-textos);
}


/* BOTONES */

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 12px 20px;

    border-radius: 7px;

    font-family: var(--fuente-textos);
    font-size: 13px;
    font-weight: 500;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}


/* BOTÓN PRINCIPAL */

.btn-primary {
    background-color: var(--color-azul);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #2563EB;
    color: #FFFFFF;
    transform: translateY(-2px);
}


/* BOTÓN SECUNDARIO */

.btn-secondary {
    background-color: #172338;
    color: #F8FAFC;

    border: 1px solid #263D59;
}

.btn-secondary:hover {
    background-color: #22314A;
    color: #FFFFFF;
    transform: translateY(-2px);
}


/* ==============================================
   10. AJUSTES PARA PANTALLAS PEQUEÑAS
   ============================================== */

@media (max-width: 768px) {

    .hero {
        min-height: 85vh;
    }

    .hero-container {
        padding: 80px 24px;
    }

    .hero-title {
        font-size: clamp(3rem, 9vw, 4rem);
    }

    .hero-subtitle {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}


/* ==============================================
   11. SECCIÓN PROYECTOS
   ============================================== */

.projects {
    padding: 110px 30px;
    background-color: var(--color-fondo);

    scroll-margin-top: 85px;
}

.projects-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ENCABEZADO DE SECCIÓN */

.section-heading {
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    margin-bottom: 15px;

    color: #93C5FD;
    font-family: var(--fuente-textos);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
}

.section-title {
    margin-bottom: 15px;

    font-family: var(--fuente-titulos);
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--color-titulos);
}

.section-description {
    max-width: 600px;
    font-size: 15px;
    color: var(--color-textos);
}



/* ==============================================
   TARJETA DE PROYECTO
   ============================================== */

.project-card {
    display: block;
    width: 100%;
    padding: 30px;

    background-color: var(--color-tarjetas);
    border: 1px solid #29384C;
    border-radius: 14px;

    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}

.project-card:hover {
    border-color: #45658F;
    transform: translateY(-3px);
}




/* ÁREA DE IMAGEN */

.project-image {
    width: 100%;
    min-width: 0;

    background-color: #1C2C43;
    border-radius: 10px;

    overflow: hidden;
}

.project-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* INFORMACIÓN DEL PROYECTO */

.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-label {
    margin-bottom: 15px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #93C5FD;
}

.project-title {
    margin-bottom: 18px;

    font-family: var(--fuente-titulos);
    font-size: 3rem;
    font-weight: 500;
    color: var(--color-titulos);
}

.project-description {
    margin-bottom: 24px;

    font-size: 14px;
    line-height: 1.9;
    color: var(--color-textos);
}


/* TECNOLOGÍAS */

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 25px;
}

.project-technologies span {
    padding: 6px 11px;

    background-color: #26344A;
    border: 1px solid #34445B;
    border-radius: 5px;

    color: #CBD5E1;
    font-size: 11px;
}





/* ==============================================
   12. RESPONSIVE DE PROYECTOS
   ============================================== */

@media (max-width: 768px) {

    .projects {
        padding: 80px 24px;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .project-card { 
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    
    .project-image {
      min-height: 0;
    }

    .project-placeholder {
     min-height: 220px;
    }


    .project-title {
        font-size: 2.5rem;
    }
}

/* ==============================================
   LISTADO DE PROYECTOS
   ============================================== */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}



/* ==============================================
   13. CAPTURAS DE PROYECTOS
   ============================================== */

/* CONTENEDOR DE LA IMAGEN */

.project-image {
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;

    border-radius: 10px;
    overflow: hidden;
}

/* IMAGEN DEL PROYECTO */

.project-screenshot {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 10px;

    transition: transform 0.4s ease;
}

/* ANIMACIÓN AL PASAR EL CURSOR */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {

    .project-card:hover .project-screenshot {
        transform: scale(1.03);
    }

}

/* RESPONSIVE */

@media (max-width: 768px) {

    .project-image {
        min-height: 0;
    }

}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .project-screenshot {
        transition: none;
    }

}


/* ==============================================
   14. SECCIÓN SERVICIOS
   ============================================== */

.services {
    padding: 110px 30px;
    background-color: var(--color-fondo);

    scroll-margin-top: 85px;
}

.services-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* LISTADO DE SERVICIOS */

.services-list {
    display: flex;
    flex-direction: column;

    border-bottom: 1px solid #29384C;
}


/* CADA SERVICIO */

.service-item {
    display: grid;
    grid-template-columns: 60px 1fr 35px;
    align-items: center;
    gap: 25px;

    padding: 35px 10px;

    border-top: 1px solid #29384C;

    transition:
        background-color 0.3s ease,
        padding-left 0.3s ease;
}


/* NÚMERO */

.service-number {
    color: #60A5FA;
    font-family: var(--fuente-textos);
    font-size: 14px;
    font-weight: 500;
}


/* CONTENIDO */

.service-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-title {
    font-family: var(--fuente-titulos);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 500;
    color: var(--color-titulos);
}

.service-description {
    max-width: 650px;

    font-family: var(--fuente-textos);
    font-size: 14px;
    line-height: 1.8;

    color: var(--color-textos);
}


/* FLECHA DECORATIVA */

.service-arrow {
    justify-self: end;

    color: #93C5FD;
    font-size: 24px;

    transition: transform 0.3s ease;
}


/* INTERACCIONES SUTILES */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {

    .service-item:hover {
        background-color: rgba(30, 45, 70, 0.25);
        padding-left: 18px;
    }

    .service-item:hover .service-arrow {
        transform: translate(3px, -3px);
    }

}


/* ==============================================
   15. RESPONSIVE DE SERVICIOS
   ============================================== */

@media (max-width: 768px) {

    .services {
        padding: 80px 24px;
    }

    .service-item {
        grid-template-columns: 35px 1fr 20px;
        gap: 12px;

        padding: 28px 0;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-description {
        font-size: 13px;
    }

    .service-arrow {
        font-size: 19px;
    }

}


/* ACCESIBILIDAD: MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {

    .service-item,
    .service-arrow {
        transition: none;
    }

}


/* ==============================================
   16. SECCIÓN SOBRE MÍ
   ============================================== */

.about {
    padding: 110px 30px;
    background-color: var(--color-fondo);

    scroll-margin-top: 85px;
}


/* CONTENEDOR DE DOS COLUMNAS */

.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;

    align-items: start;
}


/* COLUMNA IZQUIERDA */

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-content .section-title {
    margin-bottom: 30px;
}

.about-intro {
    margin-bottom: 20px;

    font-size: 16px;
    line-height: 1.9;
    color: #CBD5E1;
}

.about-description {
    margin-bottom: 25px;

    font-size: 14px;
    line-height: 1.9;
    color: var(--color-textos);
}


/* ENLACE A PROYECTOS */

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #93C5FD;
    font-size: 13px;
    font-weight: 500;

    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.about-link:hover {
    color: #60A5FA;
    gap: 15px;
}


/* COLUMNA DERECHA */

.about-details {
    display: flex;
    flex-direction: column;

    border-top: 1px solid #29384C;
}


/* BLOQUES INFORMATIVOS */

.about-detail {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 20px;

    padding: 25px 0;

    border-bottom: 1px solid #29384C;
}

.about-detail-number {
    color: #60A5FA;
    font-size: 12px;
    font-weight: 500;

    padding-top: 5px;
}

.about-detail-content h3 {
    margin-bottom: 12px;

    font-family: var(--fuente-titulos);
    font-size: 1.8rem;
    font-weight: 500;

    color: var(--color-titulos);
}

.about-detail-content p {
    font-size: 13px;
    line-height: 1.8;

    color: var(--color-textos);
}


/* ETIQUETAS DE TECNOLOGÍAS */

.about-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-technologies span {
    padding: 6px 11px;

    background-color: #26344A;
    border: 1px solid #34445B;
    border-radius: 5px;

    color: #CBD5E1;
    font-size: 11px;
}


/* ==============================================
   17. RESPONSIVE DE SOBRE MÍ
   ============================================== */

@media (max-width: 768px) {

    .about {
        padding: 80px 24px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-intro {
        font-size: 15px;
    }

    .about-description {
        font-size: 13px;
    }

    .about-detail {
        gap: 15px;
    }

}


/* ==============================================
   18. SECCIÓN CONTACTO
   ============================================== */

.contact {
    padding: 130px 30px;

    background:
        radial-gradient(
            ellipse at 80% 45%,
            rgba(30, 70, 120, 0.14),
            transparent 60%
        ),
        var(--color-fondo);

   

    scroll-margin-top: 85px;
}


/* CONTENEDOR PRINCIPAL */

.contact-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* TÍTULO PRINCIPAL */

.contact-title {
    max-width: 950px;
    margin-top: 25px;

    font-family: var(--fuente-titulos);
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    font-weight: 500;
    line-height: 1.05;

    color: var(--color-titulos);
}


/* SUBTÍTULO */

.contact-subtitle {
    margin-top: 12px;

    font-family: var(--fuente-titulos);
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;

    color: #94A3B8;
}


/* DESCRIPCIÓN */

.contact-description {
    max-width: 650px;

    margin-top: 30px;
    margin-bottom: 35px;

    font-family: var(--fuente-textos);
    font-size: 15px;
    line-height: 1.9;

    color: var(--color-textos);
}


/* BOTONES DE CONTACTO */

.contact-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-buttons .btn {
    padding: 14px 22px;
}


/* ==============================================
   19. RESPONSIVE DE CONTACTO
   ============================================== */

@media (max-width: 768px) {

    .contact {
        padding: 95px 24px;
    }

    .contact-title {
        font-size: clamp(3rem, 9vw, 4rem);
    }

    .contact-subtitle {
        font-size: clamp(2.2rem, 7vw, 3rem);
    }

    .contact-description {
        font-size: 14px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-buttons .btn {
        width: 100%;
    }

}


/* ==============================================
   20. FOOTER
   ============================================== */

.footer {
    padding: 0 30px;
    background-color: var(--color-fondo);
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    border-top: 1px solid #29384C;
}


/* PARTE SUPERIOR */

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 40px 0;
}

.footer-logo {
    font-family: var(--fuente-textos);
    font-size: 18px;
    font-weight: 600;

    color: var(--color-titulos);
}

.footer-logo span {
    color: var(--color-azul);
}

.footer-brand p {
    margin-top: 8px;

    font-size: 13px;
    color: var(--color-textos);
}


/* REDES PROFESIONALES */

.footer-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;

    font-family: var(--fuente-textos);
    font-size: 13px;

    color: #CBD5E1;
}


/* PARTE INFERIOR */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 25px 0;

    border-top: 1px solid #29384C;
}

.footer-bottom p {
    font-size: 12px;
    color: #64748B;
}


/* ==============================================
   21. RESPONSIVE FOOTER
   ============================================== */

@media (max-width: 768px) {

    .footer {
        padding: 0 24px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-social {
        gap: 20px;
    }

}


/* ENLACE DE CONTACTO DEL FOOTER */

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #CBD5E1;
    font-size: 13px;

    transition: color 0.3s ease;
}

.footer-contact-link:hover {
    color: #60A5FA;
}


/* ==============================================
   22. NAVBAR RESPONSIVE SIN MENÚ DESPLEGABLE
   ============================================== */


/* ==============================================
   22. NAVBAR RESPONSIVE
   NAVEGACIÓN SIEMPRE VISIBLE
   ============================================== */

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 16px 12px;
    }

    .logo {
        font-size: 16px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .nav-links a {
        font-size: 12px;
        white-space: nowrap;
    }

    .nav-contact {
        font-size: 12px;
        padding: 8px 12px;
    }

}

/* AJUSTES PARA CELULARES */

@media (max-width: 480px) {

    .navbar {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px 8px;
    }

    .logo {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .nav-links {
        grid-column: 1;
        justify-content: space-between;
        gap: 7px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .nav-contact {
        grid-column: 2;
        font-size: 11px;
        padding: 8px 10px;
    }

}


/* ==============================================
   23. AJUSTE DE ESPACIADO NAVBAR MÓVIL
   ============================================== */

@media (max-width: 480px) {

    .navbar {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px;
    }

    .nav-links {
        justify-content: space-between;
        gap: 5px;
        min-width: 0;
    }

    .nav-contact {
        justify-self: end;
    }

}


@media (max-width: 360px) {

    .nav-links {
        gap: 5px;
    }

    .nav-links a,
    .nav-contact {
        font-size: 10px;
    }

    .nav-contact {
        padding: 7px 6px;
    }

}


/* ==============================================
   24. SERVICIOS EN CELULARES ESTRECHOS
   ============================================== */

@media (max-width: 480px) {

    .service-item {
        grid-template-columns: 1fr auto;
        gap: 12px;
        align-items: start;
    }

    .service-number {
        grid-column: 1;
        grid-row: 1;
    }

    .service-arrow {
        grid-column: 2;
        grid-row: 1;
    }

    .service-content {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .service-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .service-description {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.8;
    }

}


/* ==============================================
   25. NAVBAR RESPONSIVE PARA TABLETS
   ============================================== */


/* ==============================================
   25. NAVBAR RESPONSIVE PARA TABLETS
   ============================================== */

@media (min-width: 481px) and (max-width: 768px) {

    .navbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        gap: 12px;
        padding: 18px 20px;
    }

    .logo {
        font-size: 17px;
        flex-shrink: 0;
    }

    .nav-links {
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;

        gap: 20px;
    }

    .nav-links a {
        font-size: 13px;
        white-space: nowrap;
    }

    .nav-contact {
        font-size: 13px;
        padding: 10px 15px;
        white-space: nowrap;
        flex-shrink: 0;
    }

}


/* ==============================================
   27. ANIMACIONES DE APARICIÓN
   ============================================== */

/* Estado inicial controlado por JavaScript */

.js-animations .reveal {
    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

/* Elemento visible */

.js-animations .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {

    .js-animations .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

}

/* Accesibilidad: reducir movimiento */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}



/* ==============================================
   29. TARJETA INTERACTIVA MEDISCAN
   ============================================== */

.project-card-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 38px;

    width: 100%;
    min-width: 0;

    color: inherit;
    text-decoration: none;
}

.project-card-link > * {
    min-width: 0;
}

.project-card-link:focus-visible {
    outline: 2px solid #60A5FA;
    outline-offset: 5px;
    border-radius: 8px;
}

.project-card:focus-within {
    border-color: #60A5FA;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .project-card-link {
        grid-template-columns: 1fr;
        gap: 25px;
    }

}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .project-card {
        transition: none;
    }

    .project-card:hover {
        transform: none;
    }

}


/* ==============================================
   INDICADOR VISITAR PROYECTO
   ============================================== */

.project-visit {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    font-weight: 500;
    color: #93C5FD;
}

.project-visit span {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Movimiento suave de la flecha */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .project-card:hover .project-visit span {
        transform: translate(3px, -3px);
    }
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
    .project-visit span {
        transition: none;
    }
}
