
:root {
    --primary-color: #0b3d91; /* Deep Educational Blue */
    --secondary-color: #ff6b35; /* Global Emprende like Orange */
    --accent-color: #f7a072;
    --text-dark: #333333;
    --text-light: #f4f4f9;
    --bg-light: #ffffff;
    --bg-gray: #f9f9fb;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Nav */
header {
    background-color: var(--bg-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1752b5 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Summary Section */
.summary-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: -60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    margin-bottom: 4rem;
}

/* Base Responsive Grid (Mobile First or Overrides) */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 0.9rem !important;
        max-width: 200px !important;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .summary-section {
        padding: 1.5rem;
        margin-top: -40px;
    }

    .summary-section h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .grid-normas {
        grid-template-columns: 1fr;
    }

    .norma-header {
        padding: 3rem 1rem;
    }

    .norma-header h1 {
        font-size: 1.8rem;
    }

    .norma-text {
        padding: 1.5rem;
    }

    .norma-content-wrapper {
        margin-top: -20px;
    }
}

.summary-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .summary-content {
        grid-template-columns: 1fr 1fr;
    }
}

.summary-section h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    grid-column: 1 / -1;
}

.summary-card {
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.summary-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Grid Menu Normas */
.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.grid-normas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card-norma {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
}

.card-norma:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.norma-img-container {
    width: 100%;
    height: 200px;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.norma-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.norma-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-norma h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.card-norma p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-btn {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Page details */
.norma-header {
    background: var(--primary-color);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.norma-header .badge {
    background: var(--secondary-color);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.norma-content-wrapper {
    max-width: 1100px;
    margin: -40px auto 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .norma-content-wrapper {
        grid-template-columns: 1fr 1.5fr;
    }
}

.norma-visual {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.norma-visual img {
    width: 100%;
    border-radius: 8px;
    display: block;
    margin-bottom: 1.5rem;
}

.norma-text {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-size: 1.1rem;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
}

.btn-download {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #062b66;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--secondary-color);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--secondary-color);
}

