:root {
    --bg-dark: #0c1d3c;
    --bg-alt: #122449;
    --bg-light: #f7f8fb;
    --accent: #f7b733;
    --accent-strong: #f36c3d;
    --text-main: #0f172a;
    --text-light: #e2e8f0;
    --text-muted: #475569;
    --card-bg: rgba(255, 255, 255, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.22);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: var(--text-main);
    background: #ffffff;
    line-height: 1.6;
}

p {
    text-align: justify;
    text-align-last: left;
}

a {
    color: inherit;
    text-decoration: none;
}

.hero {
    position: relative;
    padding: 48px clamp(24px, 6vw, 120px) 64px;
    background: radial-gradient(circle at 20% 20%, rgba(243, 108, 61, 0.35), transparent 55%),
                radial-gradient(circle at 80% 20%, rgba(247, 183, 51, 0.35), transparent 55%),
                linear-gradient(135deg, var(--bg-dark), #09142b 60%);
    color: var(--text-light);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.08), transparent 45%);
    pointer-events: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(32px, 6vw, 64px);
    position: relative;
    z-index: 2;
}

@font-face {
    font-family: 'Kometa';
    src: url('fonts/Kometa-Reg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Kometa';
    src: url('fonts/Kometa-Bld.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

.logo {
    display: flex;
    flex-direction: column;  /* apila verticalmente */
    align-items: center;     /* centra horizontalmente */
	
	font-family: 'Kometa', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: none !important;
	
    line-height: 1.1;         /* menos espacio entre las líneas */
}

.logo .logo-text {
    display: flex;          /* mantiene ihTES y labs en la misma línea */
    font-size: 2rem;
    line-height: 1.1;
}

.logo .logo-bold {
    font-weight: 700;   /* negrita */
}

.logo .logo-light {
    font-weight: 400;   /* normal */
}

.logo .slogan {
    font-size: 0.9rem;      /* más pequeño que el logo */
    font-weight: 400;         /* normal */
    letter-spacing: normal;   /* opcional: menos espaciado que el logo */
    margin-top: 0.1em;        /* separación del logo */
}

.logo .logo-image {
    margin-bottom: 0.3em;  /* espacio entre imagen y texto */
    max-width: 25%;         /* responsiva: no sobresalga del contenedor */
    height: auto;            /* mantiene proporción */
}

.navbar nav {
    display: flex;
    gap: clamp(16px, 4vw, 32px);
}

.navbar nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.82);
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: #ffffff;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    overflow: hidden;
    margin-left: clamp(12px, 2vw, 24px);
    background: rgba(255, 255, 255, 0.08);
}

.lang-btn {
    border: none;
    background: transparent;
    color: rgba(226, 232, 240, 0.82);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.lang-btn:not(.active):hover {
    color: #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    line-height: 1.15;
    margin: 0 0 20px 0;
}

.hero p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: rgba(226, 232, 240, 0.85);
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn.primary {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 12px 32px rgba(247, 183, 51, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(247, 183, 51, 0.35);
}

.btn.ghost {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-light);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-visual {
    justify-self: center;
    text-align: center;
}

.hero-figure {
    background: rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-lg);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 0 24px 60px rgba(8, 15, 32, 0.4);
    backdrop-filter: blur(16px);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-figure img {
    width: clamp(220px, 28vw, 320px);
    height: auto;
    display: block;
}

.hero-figure figcaption {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.78);
    max-width: 280px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 52px;
    position: relative;
    z-index: 2;
}

.metrics div {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    backdrop-filter: blur(12px);
}

.metric-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.75);
}

.section {
    padding: clamp(64px, 8vw, 110px) clamp(24px, 6vw, 120px);
}

.section.alt {
    background: var(--bg-light);
}

.section-header {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-header h2 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.feature-card h3 {
    margin-top: 0;
}

.process {
    margin-top: clamp(48px, 6vw, 64px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.process-card {
    border-radius: var(--radius-md);
    padding: 28px;
    background: linear-gradient(135deg, rgba(247, 183, 51, 0.12), rgba(243, 108, 61, 0.08));
    border: 1px solid rgba(247, 183, 51, 0.32);
}

.step {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(243, 108, 61, 0.12);
    color: var(--accent-strong);
    font-weight: 600;
    margin-bottom: 12px;
}

.publication-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 1024px) {
    .publication-grid {
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
        align-items: stretch;
    }
}

.publication-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px;
    padding-top: 48px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 12px;
    position: relative;
}

.publication-card h3 {
    margin-top: 0;
    color: var(--bg-dark);
}

.publication-card p {
    color: var(--text-muted);
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--accent-strong);
    font-weight: 600;
}

.link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.link:hover::after {
    transform: translateX(4px);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.team-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-dark);
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.role {
    margin-top: 0;
    font-weight: 600;
    color: var(--accent-strong);
}

.vision {
    background: linear-gradient(135deg, var(--bg-alt), #09102b 80%);
    color: #ffffff;
    display: flex;
    justify-content: center;
}

.vision-content {
    width: min(100%, 960px);
    background: rgba(8, 15, 32, 0.52);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 32px 80px rgba(3, 7, 18, 0.42);
}

.vision h2 {
    color: #ffffff;
    font-weight: 700;
}

.vision p {
    color: #ffffff;
}

.faq-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    margin: 0 auto;
}

.faq-item {
    width: 100%;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    padding: 0;
    scroll-snap-align: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 28px;
    font-weight: 600;
    color: var(--bg-dark);
    position: relative;
}

.faq-item summary::marker,
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    position: absolute;
    right: 28px;
    top: 28px;
    width: 11px;
    height: 11px;
    border-right: 2px solid var(--accent-strong);
    border-bottom: 2px solid var(--accent-strong);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(135deg);
    border-color: var(--bg-dark);
    top: 26px;
}

.faq-body {
    padding: 0 28px 24px;
    display: grid;
    gap: 12px;
}

.faq-body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.vision-list {
    margin: 28px 0 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.vision-list li {
    padding: 16px 22px;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(248, 250, 252, 0.22);
    color: #ffffff;
    backdrop-filter: blur(6px);
    text-align: justify;
    text-align-last: left;
}

.footer {
    background: #020817;
    color: rgba(226, 232, 240, 0.8);
    padding: 56px clamp(24px, 6vw, 120px) 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    align-items: center;
}

.footer h3 {
    margin-top: 0;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: rgba(226, 232, 240, 0.7);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-note {
    margin-top: 32px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.7);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 18px;
    }

    .hero {
        padding-top: 36px;
    }

    .metrics {
        margin-top: 40px;
    }

    .vision-content {
        max-width: 100%;
    }
}
