

/* --- NAVEGACIÓN ESTILO CRISTAL CON BORDE ANIMADO - MOBILE FIRST --- */
header {
    /* Posición relativa para el borde animado */
    position: sticky;
    top: 10px;
    z-index: 100;

    /* Centrado y tamaño - MOBILE */
    width: calc(100% - 30px);
    max-width: 900px;
    margin: 10px auto;
    padding: 15px;
    box-sizing: border-box;

    /* REPLICANDO TU EFECTO ORIGINAL */
    border-radius: 12px;
    backdrop-filter: blur(8px);
    /* Un poco más de blur para legibilidad */
    -webkit-backdrop-filter: blur(8px);

    background-image: linear-gradient(180deg,
            rgba(10, 43, 18, 0.42) 0,
            rgba(12, 12, 12, 0.9) 100%
            /* Un poco más opaco para el menú */
        );

    box-shadow:
        0 -1px 0 0 rgba(82, 255, 125, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.12);

    /* Layout - MOBILE FIRST */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;

    /* Para el borde animado */
    position: relative;
    overflow: hidden;
}

/* Desktop: h1 y nav lado a lado */
@media (min-width: 780px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        
    }
}

/* Borde animado que gira */
header::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: conic-gradient(from var(--border-angle), #ff0055, #00f2fe, #ff0055);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 10;
    animation: spin 3s linear infinite;
    pointer-events: none;
}

header h1 {
    font-size: 1.1rem;
    margin: 0;
    color: #52ff7d;
    font-weight: 600;
    position: relative;
    z-index: 11;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 15px;
    position: relative;
    z-index: 11;
    align-items: center;
}

/* Desktop: nav en fila */
@media (min-width: 780px) {
    nav ul {
        flex-direction: row;
        gap: 25px;
        align-items: center;
    }
}

/* Los li siempre en fila */
nav li {
    display: inline-block;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Efecto al pasar el ratón por los enlaces */
nav a:hover {
    color: #52ff7d;
    text-shadow: 0 0 8px rgba(82, 255, 125, 0.6);
}

/* --- AJUSTE PARA EL HERO - MOBILE FIRST --- */
hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 15px 30px;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Wrapper interno que contiene .card-container + figure
   Mobile: columna, uno debajo del otro
   Desktop (>=780px): fila lado a lado, acotado al ancho del header
   padding: espacio para que el glow del ::after (-12px) no quede cortado */
hero > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    /* 24px top/bottom + 24px laterales: el glow ::after extiende 12px → quedan 12px de margen */
    padding: 24px;
    box-sizing: border-box;
    overflow: visible;
}

/* Desktop: fila lado a lado */
@media (min-width: 780px) {
    hero > div:first-child {
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        /* 32px bottom: card con align-self:stretch llega al fondo → más holgura */
        padding: 24px 24px 32px;
    }
}

/* Variables para facilitar cambios de color */
:root {
    --bg-dark: #0c0c0c;
    --accent-green: #52ff7d;
    /* El verde de tu código original */
    --border-angle: 0deg;
}

@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

body {
    background-color: #050505;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- EL CONTENEDOR CON GLOW --- */
.card-container {
    position: relative;
    max-width: 345px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: 0 0 32px rgba(82, 255, 125, 0.08);
    overflow: visible;
}

/* Desktop: ocupa mitad de la fila y estira hasta la altura de la figura */
@media (min-width: 780px) {
    .card-container {
        flex: 1 1 345px;
        min-width: 0;
        align-self: stretch;
        margin: 0;
    }
}

/* Borde giratorio exterior: el pseudo se extiende 3px fuera del card,
   el gradiente cónico arranca en transparente, llega al verde y vuelve a transparente
   → sin seam visible, efecto cometa que rodea el exterior del card */
.card-container::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 15px;
    border: 3px solid transparent;
    background: conic-gradient(
        from var(--border-angle),
        transparent,
        var(--accent-green) 15%,
        transparent 35%
    ) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: drop-shadow(0 0 15px var(--accent-green));
    animation: spin 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.card-container::after {
    content: "";
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 16px;
    background: rgba(82, 255, 125, 0.18);
    filter: blur(14px);
    opacity: 0.45;
    z-index: -1;
    pointer-events: none;
}

/* --- EL CONTENIDO (Tu código de referencia adaptado) --- */
.card-content {
    padding: 30px 20px;
    border-radius: 11px;
    /* Un poco menos que el contenedor */

    /* Mezcla de tu código: Cristal + Degradado */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-image: linear-gradient(180deg, rgba(10, 43, 18, 0.42) 0, #0c0c0c 64%);

    /* Sombra interna y borde superior sutil de tu código */
    box-shadow: 0 -1px 0 0 rgba(82, 255, 125, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.12);

    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.card-content h3 h4 {
    margin-top: 0;
    color: var(--accent-green);
}

@keyframes spin {
    to {
        --border-angle: 360deg;
    }
}

h2 {
    text-align: center;
    margin-top: 0;
    color: var(--accent-green);
}

figure {
    border-radius: 11px;
    overflow: hidden;
    max-width: 345px;
    width: 100%;
    min-height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -1px 0 0 rgba(82, 255, 125, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.12);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
}

/* Desktop: ocupa mitad de la fila y estira hasta la altura de la card */
@media (min-width: 780px) {
    figure {
        flex: 1 1 345px;
        min-width: 0;
        align-self: stretch;
        margin: 0;
    }
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    min-height: 0;
}

/* --- Bloque 'lenguajes' con mismo tamaño y borde animado que header */
.lenguajes {
    width: calc(100% - 30px);
    max-width: 900px;
    margin: 10px auto;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 12px;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-image: linear-gradient(180deg, rgba(10,43,18,0.42) 0, rgba(12,12,12,0.9) 100%);
    z-index: 5;
}

.lenguajes::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1.5px solid transparent;
    background: conic-gradient(from var(--border-angle), #ff0055, #00f2fe, #ff0055) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 6;
    pointer-events: none;
    animation: spin 3s linear infinite;
}

p {
    color: var(--accent-green);   
}

.lenguajes-text {
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-green);
}

.lenguajes h3, p {
    margin: 5px auto;
    color: var(--accent-green);
    font-size: 1rem;
    color: #fff;
    text-align: center;
}

hero > div:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.svg-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    position: relative;
}

.svg-container img {
    width: clamp(42px, 11vw, 75px);
    height: clamp(42px, 11vw, 75px);
    border-radius: 50%;
    position: relative;
}

.svg-container img:not(:first-child) {
    margin-left: -8px;
}

footer {
    width: 900px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px;
    color: var(--accent-green);
    gap: 20px;
    margin-right: auto;
    margin-left: auto;

    @media (max-width: 1200px) {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }
}

.footer-nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    @media (max-width: 780px) {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
}

.footer-info a {
    color: var(--accent-green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-info a:hover {
    color: #52ff7d;
    text-shadow: 0 0 8px rgba(82, 255, 125, 0.6);
}

