@font-face {
    font-family: 'MinecraftEnchantment';
    src: url('../font/minecraft-enchantment.ttf') format('truetype');
}

.font-enchantment {
    font-family: 'MinecraftEnchantment', sans-serif !important;
}

/* --- Variables & Core --- */
:root {
    --bg-dark: #020204;
    --accent-primary: #4f46e5;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --glass-bg: rgba(255, 255, 255, 0.015);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-dim: #8a8a9e;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Universe Background --- */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #050508 0%, #020204 100%);
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(2, 2, 4, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    /* Compatibility fix */
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.lang-switcher {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 8px;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.lang-btn:hover {
    transform: scale(1.4) translateZ(0);
    background: rgba(255, 255, 255, 0.08);
}

.lang-btn:active {
    transform: scale(0.95) translateZ(0);
}

.flag-icon {
    height: 22px;
    width: auto;
    border-radius: 2px;
    opacity: 0.8;
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
    /* Sharpness */
    filter: none;
    /* No grayscale at start */
}

.lang-btn:hover .flag-icon {
    opacity: 1;
}

.lang-btn.active .flag-icon {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.5);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

.hero-title-styled {
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    /* Compatibility fix */
    -webkit-text-fill-color: transparent;
    letter-spacing: -3px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 3.5rem;
    white-space: pre-line;
}

/* --- Buttons --- */
.cta-group {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.btn {
    padding: 1.1rem 2.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-glass {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--accent-secondary);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

/* --- Grid & Content Sections --- */
.grid-section {
    padding: 120px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-desc {
    color: var(--text-dim);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    transition: var(--transition);
}

.card {
    padding: 3rem 2rem;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.icon {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    display: block;
}

/* --- Footer --- */
.footer {
    padding: 5rem 5% 3rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* --- Utilities --- */
h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.nav-logo {
    height: 24px;
    margin-right: -6px;
    vertical-align: middle;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .nav-logo {
    transform: scale(1.1) rotate(-6deg);
    filter: drop-shadow(0 0 6px rgba(120, 180, 255, 0.6));
}

.hero-logo {
    height: clamp(3.5rem, 9vw, 7.5rem);
    margin-right: -38px;

    position: relative;
    top: 32px;
    /* baja el PNG */

    animation: heroFloat 4.5s ease-in-out infinite;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.hero-logo:hover {
    transform: scale(1.12) rotate(-4deg);
    filter: drop-shadow(0 0 22px rgba(165, 140, 255, 0.9));
}

@keyframes heroFloat {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 0 6px rgba(20, 200, 255, 0.35));
    }

    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 0 18px rgba(20, 200, 255, 0.7));
    }

    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 6px rgba(20, 200, 255, 0.35));
    }
}

.project-icon {
    width: 256px;
    height: 256px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 6px 20px rgba(99, 102, 241, 0.35));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.card:hover .project-icon {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.5));
}

/* --- About & Team Sections --- */
.team-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-image-container {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
    position: relative;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    overflow: hidden;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.team-card:hover .team-image-container {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
}

.team-card:hover .team-photo {
    transform: scale(1.1);
}

.team-role {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.team-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

/* --- Contact Form --- */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.form-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.input-field {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
}

select.input-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

select.input-field option {
    background: var(--bg-dark);
    color: var(--text-main);
}

textarea.input-field {
    resize: vertical;
}

.checkbox-group {
    flex-direction: row !important;
    align-items: center;
    gap: 0.8rem !important;
}

.checkbox-group input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    accent-color: var(--accent-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 500;
}

.form-submit {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 3rem 1.5rem;
    }
}

.form-success-message {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spinMedal {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(720deg);
    }
}

/* --- Team & Medal Styles --- */
.team-image-container {
    perspective: 1000px;
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
    position: relative;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    overflow: visible !important;
}

.member-medal {
    position: absolute;
    bottom: 10px;
    right: -30px;
    width: 80px;
    height: auto;
    z-index: 20;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.6));
    pointer-events: none;
    transition: var(--transition);
    backface-visibility: visible;
    transform-style: preserve-3d;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
    display: block;
}

.team-card:hover .member-medal {
    transform: scale(1.1) rotate(5deg);
    animation: spinMedal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.8));
}


/* --- Responsiveness & Media Queries --- */

/* Tablets (1024px to 769px) */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .grid-section {
        padding: 80px 5%;
    }

    .hero-title-styled {
        font-size: clamp(3rem, 10vw, 5rem);
    }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {

    /* Header & Nav */
    .header {
        padding: 1rem 5%;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    .lang-switcher {
        margin-top: 0.5rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 140px;
        height: auto;
        min-height: 100vh;
    }

    .hero-logo {
        height: 4.5rem;
        margin-right: -15px;
        top: 15px;
    }

    .hero-title-styled {
        font-size: 3rem;
        letter-spacing: -1.5px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 10px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        padding: 1rem 2rem;
    }

    /* Grid & Cards */
    .grid-section {
        padding: 60px 5%;
    }

    h2 {
        font-size: 2rem;
    }

    .section-desc {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2.5rem 1.5rem;
    }

    .project-icon {
        width: 180px;
        height: 180px;
    }

    /* Team */
    .team-image-container {
        width: 150px;
        height: 150px;
    }

    .member-medal {
        width: 60px;
        right: -15px;
    }

    /* Form */
    .contact-container {
        padding: 3rem 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 4rem 5% 2rem;
        margin-top: 60px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.2rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .hero-title-styled {
        font-size: 2.5rem;
    }

    .nav-logo {
        height: 20px;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* Quitar subrayado por defecto del enlace */
.callout-container {
    text-decoration: none;
    display: block;
    /* Para que ocupe el ancho del div */
    color: inherit;
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Efecto al pasar el ratón */
.callout-container:hover {
    transform: translateY(-2px) scale(1.01);
    /* Se eleva y crece mínimamente */
    filter: brightness(1.1);
    /* Brilla un poco más */
}

/* Estilo para que el link parezca un botón dentro del texto */
.callout-container .callout.gold span {
    text-decoration: underline;
    font-weight: bold;
}

/* Opcional: Cursor de mano en todo el bloque */
.callout.gold {
    cursor: pointer;
}

/* Contenedor principal del banner */
.project-banner {
    padding: 20px !important;
    border: 1px solid rgba(255, 215, 0, 0.3);
    /* Un toque dorado sutil */
    background: rgba(255, 215, 0, 0.05);
    /* Fondo muy suave para destacar */
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Estilo del logo */
.banner-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

/* Efecto de Brillo (Shimmer) para el dominio */
.shimmer-text {
    color: #ffcc00;
    /* Color base dorado */
    font-weight: 800;
    text-transform: lowercase;
    background: linear-gradient(90deg, #ffcc00 0%, #ffffff 50%, #ffcc00 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    display: inline-block;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Ajuste responsive para móviles */
@media (max-width: 600px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-logo {
        width: 50px;
        height: 50px;
    }
}

/* Asegura que el badge se posicione respecto a esta tarjeta */
.relative-card {
    position: relative;
    overflow: visible;
    /* Permitimos que el badge sobresalga un poquito si quieres */
}

.coming-soon-badge {
    position: absolute;
    bottom: 10px;
    /* Ajuste desde el borde inferior */
    right: 10px;
    /* Ajuste desde el borde derecho */
    width: 80px;
    /* Tamaño del badge, ajústalo según tu imagen */
    height: auto;
    pointer-events: none;
    /* Para que no interfiera si el usuario intenta hacer clic en la tarjeta */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    /* Sombra para que resalte sobre el glass */
    z-index: 10;
    transition: transform 0.3s ease;
}

/* Opcional: un pequeño efecto cuando el usuario pasa el mouse por la tarjeta */
.relative-card:hover .coming-soon-badge {
    transform: rotate(5deg) scale(1.1);
}