:root {
    --brand-primary: #0d1a4d;
    --brand-accent: #1abc9c;
    --bg-light: #f4f4f4;
    --white: #ffffff;
    --text-base: clamp(0.95rem, 1vw, 1.1rem);
    --text-h1: clamp(1.8rem, 8vw, 3.2rem);
    --text-h2: clamp(1.5rem, 5vw, 2.3rem);
    --gap: 1.5rem;
    --radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* RESET TOTAL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--text-base);
    background: var(--bg-light);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: min(92%, 1200px);
    margin-inline: auto;
}

/* HEADER DINÁMICO */
header {
    background: var(--white);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    color: var(--brand-primary);
}

.logo img {
    height: clamp(50px, 7vw, 75px);
    width: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo img:hover {
    transform: scale(1.05);
}

/* NAVEGACIÓN */
nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-link {
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: var(--brand-primary);
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-accent);
    background: rgba(26, 188, 156, 0.1);
}

/* HERO SECTION */
.hero {
    min-height: 70vh;
    display: grid;
    place-items: center;
    background: 
        linear-gradient(rgba(13, 26, 77, 0.85), rgba(13, 26, 77, 0.6)),
        url("../images/ima_nortyco1.jpeg") center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: var(--gap);
}

.hero h1 {
    font-size: var(--text-h1);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* GRIDS Y CARDS */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap);
}

.card-base {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card-base:hover {
    transform: translateY(-5px);
}

h2 {
    font-size: var(--text-h2);
    color: var(--brand-primary);
    border-left: 6px solid var(--brand-accent);
    padding-left: 1.2rem;
    margin-bottom: var(--gap);
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--brand-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: filter 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    filter: brightness(1.2);
}

.btn:active {
    transform: scale(0.98);
}

.btn-hero {
    background: var(--brand-accent);
    font-size: 1.2rem;
}

/* FORMULARIOS */
input, select, textarea {
    width: 100%;
    padding: 0.9rem;
    margin-top: 0.5rem;
    border: 2px solid #eee;
    border-radius: var(--radius);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--brand-accent);
}

/* FOOTER & ACCESORIOS */
footer {
    background: var(--brand-primary);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
}

.corner-logo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    background: var(--white);
    padding: 5px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    z-index: 999;
}

/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}