/* Normas Page CSS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #00CEB1;
    --primary-dark: #00a088;
    --text-dark: #011120;
    --text-muted: rgba(1, 17, 32, 0.75);
    --white: #ffffff;
    --black: #000000;
    --bg-body: #F9F8F8;
    --bg-hero: #292929;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* ===================== HEADER ===================== */
#main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 350px;
    height: auto;
}

.logo {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1201px) {
    .logo {
        margin-left: 25px;
    }
}

.logo-tagline {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    margin-top: -5px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-list li {
    padding: 0;
    margin-bottom: 0;
    line-height: 1.6;
}

.nav-list a {
    font-size: 18px;
    font-weight: 400;
    color: var(--white);
    padding: 0 18px;
    transition: transform 0.3s;
    display: inline-block;
    line-height: 1.6;
}

.nav-list a:hover {
    transform: scale(1.2);
}

.nav-list a.current {
    text-decoration: none;
}

.nav-list a.nav-btn-teal {
    background-color: var(--primary-color);
    color: var(--black);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
}

.nav-list a.nav-btn-teal:hover {
    transform: scale(1.2);
}


/* ===================== HERO SECTION ===================== */
#hero-normas {
    background-color: #292929;
    background-image: url('/images/02.jpg');
    background-image: -webkit-image-set(url("/images/02.webp") type("image/webp"), url("/images/02.jpg") type("image/jpeg"));
    background-image: image-set(url("/images/02.webp") type("image/webp"), url("/images/02.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: center;
    padding: 180px 20px 80px;
    text-align: center;
    position: relative;
}

#hero-normas::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Overlay match original */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 50px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}


/* ===================== CONTENT ===================== */
.normas-content {
    padding: 60px 0;
    background-color: var(--bg-body);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.normas-intro {
    text-align: left;
    margin-bottom: 50px;
}

.normas-section {
    margin-bottom: 50px;
}

h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 25px;
    line-height: 1.3;
}

h3 {
    font-size: 28px;
    color: var(--black);
    margin-bottom: 20px;
    margin-top: 30px;
}

p,
li {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.normas-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.normas-content a.download-btn {
    color: var(--white);
    text-decoration: none;
}

ul {
    list-style: none;
}

.normas-section ul,
.normas-intro ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

ul li {
    margin-bottom: 10px;
}

.normas-img {
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

/* Download Button */
.download-container {
    margin: 50px 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 206, 177, 0.4);
    transition: transform 0.3s, background-color 0.3s;
}

.download-btn:hover {
    transform: translateY(-3px);
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Structure Table */
/* Structure Table */
.structure-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: transparent;
}

.structure-table th,
.structure-table td {
    padding: 8px;
    border: 1px solid #ddd;
    vertical-align: top;
    text-align: left;
    color: var(--text-muted);
}

.structure-table th {
    font-weight: 700;
    color: var(--black);
    background-color: transparent;
}

.structure-table ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.structure-table li {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-muted);
}

/* Divider */
.divider {
    height: 1px;
    background-color: #ddd;
    margin: 60px 0;
}

.english-version .note {
    font-style: italic;
    color: #888;
    margin-bottom: 30px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    color: white;
}

.whatsapp-btn i {
    font-size: 24px;
    margin-right: 10px;
}

/* ===================== FOOTER ===================== */
#main-footer {
    background-color: #000000;
    color: var(--white);
    padding: 100px 30px 45px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-col .footer-title {
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #f9f8f8;
    font-family: inherit;
    display: block;
}

.footer-col p {
    font-size: 18px;
    line-height: 1.85;
    color: var(--white);
    margin-bottom: 1.75em;
}

.footer-col p:last-child {
    margin-bottom: 0;
}

.footer-col b,
.footer-col strong {
    font-weight: 700;
}

.teal-link {
    color: var(--primary-color);
    text-decoration: underline;
}


.menu-toggle {
    display: none;
    background-color: var(--primary-color);
    width: 45px;
    height: 45px;
    border: none;
    align-items: center;
    justify-content: center;
    color: #f9f8f8;
    font-size: 20px;
    cursor: pointer;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 920px) {

    /* Main header should remain absolute to overlay hero */
    #main-header {
        /* Intentionally empty to inherit position: absolute from desktop */
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .header-inner {
        padding: 0 20px;
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
    }

    .logo img {
        width: 70vw !important;
        max-width: 253px !important;
        height: auto !important;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f9f8f8;
        flex-direction: column;
        display: none;
        border-top: 1px solid #dddddd;
        z-index: 999;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        padding: 0;
    }

    .nav-list a {
        display: block;
        width: 100%;
        padding: 0 20px;
        height: 50px;
        line-height: 50px;
        border-bottom: 1px solid #dddddd;
        color: rgba(1, 17, 32, 0.75);
        font-size: 16.4px;
        font-weight: 400;
        text-align: left;
    }

    .nav-list a.nav-btn-teal {
        background-color: transparent;
        color: rgba(1, 17, 32, 0.75);
        padding: 0 20px;
        border-radius: 0;
        font-weight: 400;
    }

    .nav-list a.nav-btn-teal:hover {
        background-color: transparent;
        transform: none;
        color: var(--primary-color);
    }

    .nav-list a:hover {
        color: var(--primary-color);
        transform: none;
    }
}

@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    #main-footer {
        padding: 75px 25px 25px;
    }
}

@media (max-width: 768px) {
    #hero-normas {
        padding: 180px 20px 100px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    .whatsapp-label {
        display: none;
    }

    .whatsapp-btn {
        padding: 15px;
        border-radius: 50%;
    }

    .whatsapp-btn i {
        margin: 0;
    }

    .structure-table {
        table-layout: fixed;
    }

    .structure-table td,
    .structure-table th {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 576px) {
    #hero-normas {
        padding: 150px 20px 80px;
    }

    /* Fix overflow issues */
    .container,
    .header-inner,
    .normas-content,
    .hero-content,
    .normas-section,
    .structure-table {
        width: 100%;
        max-width: 100%;
    }

    /* Make table scrollable if needed or force fit */
    .structure-table {
        table-layout: fixed;
    }

    .structure-table td,
    .structure-table th {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    body,
    html {
        overflow-x: hidden;
    }
}