/* ===== BASE / PALETA ===== */
:root {
    --color1: #a69450;
    --color2: #ffc107;
    --color3: #121212;
    --color4: #707170;
    --color5: #1f1f1f;

    --bg: #ffffff;
    --surface: #ffffff;
    --muted: #707170;
    --text: #121212;
    --accent: var(--color1);
    --accent-strong: var(--color1);
    --line: rgba(112, 113, 112, 0.18);
    --container: min(1200px, 92vw);
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

/* ===== HEADER (header.php) ===== */
.site-header {
    width: 100%;
    background: var(--color3);
    border-bottom: 1px solid rgba(166, 148, 80, 0.32);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 12px 30px rgba(18, 18, 18, 0.2);
}

.nav-shell {
    width: 100%;
    max-width: none;
    height: 86px;
    min-height: 86px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    min-width: 150px;
    color: #ffffff;
    font-family: inherit;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.brand-top {
    font-size: inherit;
    color: inherit;
}

.brand-bottom {
    display: inline;
    font-size: inherit;
    color: var(--color2);
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.nav-list > li {
    position: relative;
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
}

.nav-list a,
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 30px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.dropdown-toggle i {
    color: var(--color2);
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.nav-list > li > a:hover,
.dropdown:hover .dropdown-toggle,
.dropdown:focus-within .dropdown-toggle,
.dropdown.active .dropdown-toggle {
    background: var(--color2);
    color: var(--color3);
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    z-index: 1001;
    min-width: 280px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 10px;
    list-style: none;
    background: var(--color5);
    border: 1px solid rgba(166, 148, 80, 0.24);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(18, 18, 18, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.dropdown-menu::before {
    content: none;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: var(--color1);
    color: #ffffff;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-toggle i,
.dropdown:focus-within .dropdown-toggle i,
.dropdown.active .dropdown-toggle i {
    color: var(--color3);
    transform: rotate(180deg);
}

.nav-icons a:hover,
.inline-link:hover {
    color: var(--accent-strong);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-icons a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--color2);
    background: rgba(166, 148, 80, 0.18);
    text-decoration: none;
    transition: all 0.25s ease;
}

.nav-icons a:hover {
    background: var(--color2);
    color: var(--color3);
    transform: translateY(-2px);
}

.mobile-nav-brand {
    display: none;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: none;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
}

/* ===== FOOTER (footer.php) ===== */

  @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Source+Sans+3:wght@300;400;600&display=swap');

  .footer-wrap {
    background: var(--color3);
    font-family: 'Source Sans 3', sans-serif;
    color: var(--color4);
    padding: 0;
    border-top: 3px solid var(--color1);
  }

  .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding: 3rem 2.5rem 2rem;
  }

  .footer-brand h2 {
     font-family: 'Source Sans 3', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
  }

  .footer-brand h2 span {
    color: var(--color2);
  }

  .footer-brand .tagline {
    font-size: 12px;
    color: var(--color2);
    letter-spacing: 2px;
    margin: 0 0 1rem;
    font-weight: 300;
  }

  .footer-brand p {
    font-size: 14px;
    line-height: 1.75;
    color: #ffffff;
    margin: 0;
    max-width: 320px;
  }

  .footer-col h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--color2);
    margin: 0 0 1rem;
    font-weight: 600;
  }

  .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-col ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .footer-col ul li a:hover {
    color: var(--color2);
  }

  .footer-col ul li a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color2);
    opacity: 0.6;
    flex-shrink: 0;
  }

  .footer-divider {
    height: 0.5px;
    background: linear-gradient(90deg, transparent, rgba(166, 148, 80, 0.28) 20%, rgba(166, 148, 80, 0.28) 80%, transparent);
    margin: 0 2.5rem;
  }

  .footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.25rem 2.5rem;
  }

  .social-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: #fff;
    font-weight: 600;
    margin-right: 4px;
  }

  .social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color5);
    border: 0.5px solid rgba(166, 148, 80, 0.26);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: 'Source Sans 3', sans-serif;
    transition: all 0.2s;
  }

  .social-btn:hover {
    background: var(--color1);
    color: #fff;
    border-color: var(--color1);
  }

  .social-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
  }

  .footer-bottom {
    background: var(--color3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-bottom p {
    font-size: 12px;
    color: var(--color4);
    margin: 0;
  }

  .footer-bottom a {
    color: var(--color4);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
  }

  .footer-bottom a:hover { color: var(--color2); }

  .footer-bottom-links {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color5);
    border: 0.5px solid rgba(166, 148, 80, 0.26);
    border-radius: 6px;
    padding: 10px 16px;
    margin-top: 1.25rem;
  }

  .contact-pill svg {
    fill: var(--color2);
    width: 14px;
    height: 14px;
  }

  .contact-pill a {
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
  }

  .contact-pill a:hover { color: var(--color2); }

@media (max-width: 1920px) {
    .nav-shell {
        height: 86px;
        min-height: 86px;
    }

    .mobile-menu-button {
        display: block;
        position: relative;
        z-index: 1003;
        background: var(--color2);
        color: var(--color3);
        border: none;
        font-size: 26px;
        line-height: 1;
        padding: 8px 14px;
        border-radius: 10px;
        cursor: pointer;
    }

    .mobile-menu-button[aria-expanded="true"] {
        position: fixed;
        top: 24px;
        right: 24px;
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
    }

    .nav-group {
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 1002;
        width: min(320px, 88vw);
        height: 100vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 20px;
        padding: 28px 22px 34px;
        background: var(--color5);
        box-shadow: -12px 0 35px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        min-width: 0;
        flex: none;
    }

    .nav-group.active {
        right: 0;
    }

    .mobile-nav-brand {
        display: block;
        margin-bottom: 18px;
        color: #ffffff;
        font-family: inherit;
        font-size: 24px;
        font-weight: 800;
        line-height: 1.1;
        text-decoration: none;
    }

    .mobile-nav-brand span,
    .mobile-nav-brand strong {
        display: block;
    }

    .mobile-nav-brand strong {
        color: var(--color2);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }

    .nav-list > li,
    .dropdown {
        width: 100%;
    }

    .dropdown::after {
        content: none;
    }

    .nav-list a,
    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        padding: 13px 14px;
        border-radius: 12px;
        white-space: normal;
    }

    .dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        max-width: none;
        width: 100%;
        margin: 4px 0 10px;
        padding: 10px;
        border: none;
        border-radius: 14px;
        background: rgba(112, 113, 112, 0.42);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown.active .dropdown-menu,
    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        display: block;
        transform: none;
    }

    .dropdown-menu a {
        padding: 10px 12px;
        font-size: 13.5px;
    }

    .nav-icons {
        justify-content: center;
        margin-left: auto;
        margin-top: 0;
        order: 2;
    }

    .mobile-menu-button {
        order: 3;
    }

    .brand {
        order: 1;
    }
}

@media (max-width: 620px) {
    .nav-shell {
        height: 76px;
        min-height: 76px;
        padding: 0 16px;
    }

    .brand {
        min-width: 0;
        font-size: 22px;
    }

    .nav-icons {
        gap: 6px;
    }

    .nav-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .nav-group {
        width: min(320px, 90vw);
        padding: 24px 18px 30px;
    }

    .mobile-menu-button[aria-expanded="true"] {
        top: 19px;
        right: 16px;
    }
}

@media (max-width: 460px) {
    .nav-shell {
        gap: 8px;
    }

    .brand {
        font-size: 18px;
    }

    .nav-icons {
        gap: 4px;
    }

    .nav-icons a {
        width: 30px;
        height: 30px;
        font-size: 0.82rem;
    }

    .mobile-menu-button {
        font-size: 22px;
        padding: 7px 11px;
    }
}
/* ==========================
   RESPONSIVE FOOTER
========================== */

/* Tablet */
@media (max-width: 992px) {

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 2rem;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-social {
    flex-wrap: wrap;
  }
}


/* Mobile */
@media (max-width: 768px) {

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer-brand {
    grid-column: unset;
  }

  .footer-brand p {
    max-width: 100%;
    margin: auto;
  }

  .footer-col ul li a {
    justify-content: center;
  }

  .contact-pill {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px;
  }

  .footer-divider {
    margin: 0 1.5rem;
  }

  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
    padding: 1.5rem;
  }

  .social-label {
    width: 100%;
    margin-bottom: 8px;
  }

  .social-btn {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem 1.5rem;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}


/* Extra pequeño */
@media (max-width: 480px) {

  .footer-brand h2 {
    font-size: 20px;
  }

  .footer-brand .tagline {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .footer-col h4 {
    font-size: 10px;
  }

  .footer-col ul li a,
  .contact-pill a {
    font-size: 13px;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
  }
}
