:root {
    --primary: #2056ac;
    --text: rgba(0, 0, 0, 0.7);
    --card: #f5f8fd;
    --border: rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    background: #fff url('bg01.png') repeat;
    font-family: 'Questrial', sans-serif;
    font-size: 1rem;
    color: var(--text);
}

h1, h2, h3 {
    margin: 0 0 0.75rem;
    padding: 0;
    color: #404040;
}

h1 {
    font-size: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.2;
}

p {
    line-height: 1.8;
    margin: 0 0 1rem;
}

ol, ul {
    padding: 0;
    margin: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1200px, 94vw);
    margin: 0 auto;
}

main {
    background: transparent;
}

.wrapper {
    background: transparent;
    padding: 8rem 0 4rem;
}

.redondeado {
    border-radius: 75px;
}

.title {
    margin-bottom: 2rem;
    text-align: center;
}

.title h1 {
    font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem);
}

.subtitle {
    max-width: 900px;
    margin: 0 auto 2rem;
    color: var(--text);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subtitle h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.6rem, 2vw + 0.8rem, 2.2rem);
    color: var(--primary);
}

.subtitle ul {
    padding-left: 1.25rem;
    margin: 0;
    list-style: disc;
}

.blog-section {
    padding: 3.5rem 0 1.5rem;
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    row-gap: 2.5rem;
    align-items: start;
}

.blog-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.blog-card img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.blog-card h3 {
    margin-bottom: 0.35rem;
}

.blog-card p {
    margin: 0;
}

@media screen and (max-width: 640px) {
    .blog-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .blog-card img {
        width: 100%;
        height: auto;
    }
}

hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 2.5rem 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 0;
}

.brand {
    font-size: clamp(2rem, 2vw + 1rem, 3rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand a {
    color: #fff;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 0.65rem 1rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 0.8rem 0.8rem 0 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    transform: translateY(-1px);
}

.site-nav li.active a,
.site-nav a[aria-current="page"] {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.nav-toggle-icon {
    position: relative;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.nav-toggle-icon::before {
    top: -6px;
}

.nav-toggle-icon::after {
    top: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#banner {
    margin-bottom: 2.5rem;
}

#banner img {
    width: 100%;
    border-radius: 12px;
}

#welcome {
    width: 100%;
    padding: 3rem 2rem;
    text-align: center;
}

#welcome .content {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    text-justify: inter-word;
}

#welcome .content p {
    text-align: justify;
    text-justify: inter-word;
}

#three-column {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

#three-column h2 {
    text-align: center;
    margin: 0 0 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.project-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    text-align: center;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card img {
    width: 100%;
    max-width: 380px;
    max-height: 340px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 12px;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

@media screen and (min-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
    }
}

.button {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    background: #2d77cf;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    text-decoration: none;
}

#footer {
    background: #E3F0F7;
    padding: 2rem 0 1rem;
}

#footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 4rem;
    align-items: center;
}

#footer .fbox1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    font-weight: 600;
    color: #404040;
    text-align: center;
}

#footer .icon {
    font-size: 2.6rem;
    color: #586170;
}

#copyright {
    background: #2056ac;
    padding: 1.25rem 0;
    text-align: center;
    letter-spacing: 1px;
    color: #d7e4f7;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

table td, table th {
    padding: 0.45rem 0.6rem;
    vertical-align: top;
}

table th, table td {
    border-bottom: 1px solid var(--border);
}

table th {
    text-align: left;
}

table img {
    border-radius: 12px;
}

.table-compact {
    width: auto;
    max-width: 900px;
}

.table-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    border: none;
}

.table-cards img {
    max-width: 260px;
    margin: 0 auto;
}

fieldset {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

legend {
    padding: 0 0.5rem;
    font-weight: 700;
}

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

input[type="button"],
input[type="submit"],
button {
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.slideshow {
    border: 1px solid gray;
    background: lightgray;
    padding: 0.75rem;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1rem;
}

.slideshow img {
    border: 0.6rem solid #000;
    padding: 0.25rem;
    background: #fff;
    margin: 0 auto;
}

.thumb-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.thumb-strip .lightbox-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.thumb-strip .lightbox-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.thumb-strip img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #000;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.card {
    background: var(--card);
    padding: 1.25rem;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    align-items: start;
    justify-items: center;
}

.gallery-grid figure {
    margin: 0;
    width: 100%;
}

figcaption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    text-align: center;
    color: var(--text);
}

.lightbox-trigger {
    background: none;
    border: 0;
    padding: 0;
    cursor: zoom-in;
    display: block;
}

.lightbox-dialog {
    border: none;
    padding: 0;
    background: transparent;
}

.lightbox-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.Error h6 {
    margin: 0;
    color: #c0392b;
}

.Correct h6 {
    margin: 0;
    color: #2e8b57;
}

@media screen and (max-width: 1024px) {
    #welcome {
        padding: 2.5rem 1.5rem;
    }
    .wrapper {
        padding-top: 9rem;
    }
}

@media screen and (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .site-nav ul.is-open {
        display: flex;
    }

    .site-nav a {
        border-radius: 0.6rem;
        width: 100%;
        text-align: left;
    }

    #welcome {
        padding: 2rem 1.25rem;
    }

    .wrapper {
        padding-top: 10rem;
    }

    #three-column {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    #footer .container {
        flex-direction: column;
        align-items: center;
    }
}
