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

html, body {
    width: 100%;
    height: 100%;
    font-family: "Poppins", Arial, sans-serif;
}

/* ================== ESTILOS GENERALES ================== */
body {
    background: #0d1a2a; /* azul oscuro más profundo */
    color: #e8e8e8;
    overflow-x: hidden;
}

/* ================== HEADER ================== */
header {
    background: rgba(0, 60, 110, 0.85);
    color: white;
    padding: 18px 45px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}

header:hover {
    background: rgba(0, 80, 140, 0.9);
}

.title {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    grid-column: 2;
    justify-self: center;
}

.header-buttons {
    display: flex;
    gap: 12px;
    justify-self: end; /* Para grid */
    align-items: center;
}

/* Botones */
.btn {
    background-color: white;
    color: #003a63;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: 0.25s;
}

.btn:hover {
    background-color: #dceeff;
    transform: translateY(-2px);
}


/* ================== MENÚ LATERAL ================== */
:root {
    --menu-bg: rgba(0, 0, 0, 0.65);
    --menu-blur: blur(16px);
}

.menu-toggle-left {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 28px;
    cursor: pointer;
    z-index: 1002;
    color: #ffd54f;
    background: var(--menu-bg);
    backdrop-filter: var(--menu-blur);
    padding: 8px 14px;
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.menu-toggle-left:hover {
    transform: translateY(-50%) scale(1.1);
}

.side-menu-left {
    position: fixed;
    top: 0;
    left: -28vw;
    width: 28vw;
    height: 100vh;
    background: var(--menu-bg);
    backdrop-filter: var(--menu-blur);
    padding-top: 120px;
    transition: left 0.35s ease, box-shadow 0.3s;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: 6px 0 20px rgba(0,0,0,0.5);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.side-menu-left.open {
    left: 0;
}

.side-menu-left .side-btn {
    display: block;
    padding: 16px 20px;
    margin: 0 22px;
    color: #ffd54f;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
    background: rgba(255,255,255,0.05);
}

.side-menu-left .side-btn:hover {
    background: rgba(255,213,79,0.2);
    color: #fff;
    transform: translateX(4px);
}

/* ================== BANNER ================== */
.bg-gif {
    width: 100%;
    height: 360px;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(13,26,42,0.95)),
        url('../fondo/Ocean-Homepage-1468x512.gif')
        center/cover no-repeat;
    border-radius: 12px;
}

/* ================== MAIN CONTENEDOR ================== */
.vestimenta-container {
    max-width: 950px;
    margin: 50px auto;
    padding: 35px 25px;
}

.vestimenta-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffd54f;
    margin-bottom: 35px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

.vestimenta-content {
    background: rgba(20, 30, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 45px;
    backdrop-filter: blur(12px);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.vestimenta-intro {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 35px;
    text-align: center;
}

/* ================== ACORDEÓN ================== */
.rule-item {
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #003a63, #0055a5);
    color: #ffd54f;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.rule-header:hover {
    background: linear-gradient(135deg, #0055a5, #0077cc);
    transform: translateX(3px);
}

.rule-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
    background: rgba(255,255,255,0.03);
    color: #f0f0f0;
}

.rule-item.active .rule-body {
    max-height: 300px;
    padding: 16px 20px;
}

/* Footer */
.vestimenta-footer-content {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-note {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 22px;
    line-height: 1.7;
}

.btn-volver {
    background: linear-gradient(135deg, #ffd54f 0%, #ffca28 100%);
    color: #0d1a2a;
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.btn-volver:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffca28 0%, #ffc107 100%);
}

/* Footer */
footer {
    padding: 15px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 18px;
    text-align: center;
    margin-top: 40px;
}

.footer-socials {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #ffd54f;
    color: #ffd54f;
    background-color: rgba(0,0,0,0.5);
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

.social-btn:hover {
    transform: scale(1.2);
    background-color: rgba(255,213,79,0.25);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .vestimenta-container {
        margin: 30px auto;
        padding: 20px 15px;
    }

    .vestimenta-title {
        font-size: 2rem;
    }

    .rule-header {
        font-size: 0.95rem;
    }

    .rule-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}
