:root {
    --primary: #1e3a8a;
    --secondary: #3b82f6;
    --gray: #6b7280;
}

/* =========================
   RESET / BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

body {
    font-family: Inter, sans-serif;
    color: #111;
}

/* =========================
   LAYOUT
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 120px 0;
}

.section--alt {
    background: #f3f4f6;
}

.section h2 {
    margin-bottom: 40px;
    text-align: center;
}

/* =========================
   HEADER
========================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(30, 58, 138, 0.75);
    transition: 0.3s;
}

.header.scrolled {
    background: white;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 60px;
    width: 165px;
}

/* =========================
   NAV
========================= */
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.header.scrolled .nav-menu a {
    color: black;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    padding: 10px 18px;

    border-radius: 6px;

    background: var(--secondary);
    color: white;

    border: none;
    text-decoration: none;

    white-space: nowrap;
    cursor: pointer;

    font-family: Inter, sans-serif;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 44px;

    padding: 6px 10px;
    border-radius: 6px;

    background: var(--secondary);
    color: white;

    border: none;
    cursor: pointer;

    font-size: 14px;
    font-family: Inter, sans-serif;

    transition: 0.3s;
}

/* =========================
   HERO
========================= */
.hero {
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;

    padding-top: 80px;

    background:
        linear-gradient(rgba(10,25,60,0.75), rgba(30,58,138,0.85)),
        url("./assets/hero-bg.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* =========================
   ABOUT
========================= */
.about-box {
    max-width: 900px;
    margin: auto;
    line-height: 1.8;
}

.about-box p {
    margin-bottom: 16px;
}

/* =========================
   GRID
========================= */
.grid-3,
.grid-4 {
    display: grid;
    gap: 20px;
    width: 100%;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

/* =========================
   CARDS / TECH
========================= */
.card,
.tech {
    background: white;

    padding: 20px;

    border: 1px solid #ddd;

    width: 100%;
    box-sizing: border-box;

    font-family: Inter, sans-serif;

    transition: 0.3s ease;

    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card:hover,
.tech:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--secondary);
}

/* =========================
   TITLES
========================= */
.card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    text-align: center;
}

.tech-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

/* =========================
   STACK TEXT
========================= */
.tech-text {
    font-size: 14px;
    color: #111;
    text-align: center;
}

/* =========================
   FORM
========================= */
.form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: auto;
}

.form input,
.form textarea {
    padding: 12px;
    margin-bottom: 15px;
    font-family: Inter, sans-serif;
}

.form textarea {
    min-height: 180px;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 20px;
}

/* =========================
   MOBILE
========================= */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        background: var(--secondary);
        color: white;
        border: none;
        padding: 6px 10px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;

        background: white;
        flex-direction: column;
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        color: black;
    }
}

/* =========================
   🔥 SVG ICONOS TECH (NUEVO SIN ROMPER)
========================= */
.tech-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
}

.tech svg {
    width: 42px;
    height: 42px;
}