.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--azul);
}

.header__barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: clamp(4.5rem, 8vw, 7.5rem);
}

.header__logo img {
    width: clamp(9.5rem, 16vw, 15rem);
    height: auto;
}

.header__toggle {
    display: flex;
    flex-direction: column;
    gap: clamp(5px, 0.6vw, 8px);
    padding: 0.5rem 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.header__toggle span {
    display: block;
    width: clamp(2rem, 4vw, 3.5rem);
    height: clamp(4px, 0.5vw, 6px);
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
}

.header.abierto .header__toggle span:nth-child(1) {
    transform: translateY(calc(clamp(5px, 0.6vw, 8px) + clamp(4px, 0.5vw, 6px))) rotate(45deg);
}

.header.abierto .header__toggle span:nth-child(2) {
    opacity: 0;
}

.header.abierto .header__toggle span:nth-child(3) {
    transform: translateY(calc((clamp(5px, 0.6vw, 8px) + clamp(4px, 0.5vw, 6px)) * -1)) rotate(-45deg);
}

.header__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--azul);
    transition: max-height 0.4s ease;
}

.header.abierto .header__menu {
    max-height: 30rem;
}

.header__menu a {
    display: block;
    padding: 1rem max(1.5rem, calc((100vw - var(--ancho-contenedor)) / 2));
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s;
}

.header__menu a:hover,
.header__menu a:focus-visible {
    background: var(--naranja);
}

.header__acciones {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
}

.header__idioma {
    display: flex;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.header__idioma a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.header__idioma a:hover,
.header__idioma a:focus-visible {
    color: var(--naranja);
}

.header__idioma [aria-current] {
    font-weight: 700;
}

.boton {
    --punta: 21px;
    --borde: 1px;

    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    height: 42px;
    margin-top: 1.5rem;
    padding: 0 1.75rem 0 1.25rem;
    background: var(--azul);
    color: var(--azul);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    word-spacing: 0.35em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - var(--punta)) 0, 100% 50%,
                       calc(100% - var(--punta)) 100%, 0 100%);
    transition: color 0.25s;
}

.boton::before {
    content: "";
    position: absolute;
    inset: var(--borde);
    z-index: -1;
    background: var(--relleno-boton, var(--fondo));
    clip-path: polygon(0 0, calc(100% - var(--punta) + 0.4px) 0, 100% 50%,
                       calc(100% - var(--punta) + 0.4px) 100%, 0 100%);
    transition: background 0.25s;
}

.boton:hover,
.boton:focus-visible {
    color: #fff;
}

.boton:hover::before,
.boton:focus-visible::before {
    background: var(--azul);
}

button.boton {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.boton--naranja {
    --relleno-boton: #e07c3a;
    gap: 0.8rem;
    padding-right: 1.6rem;
}

.boton--claro {
    --relleno-boton: #0a3f6e;
    gap: 0.8rem;
    padding-right: 1.6rem;
    background: #fff;
    color: #fff;
}

.boton--claro:hover,
.boton--claro:focus-visible {
    color: var(--azul);
}

.boton--claro:hover::before,
.boton--claro:focus-visible::before {
    background: #fff;
}

.boton--claro .boton__play {
    background: var(--naranja);
}

.boton--claro .boton__play::after {
    background: #fff;
}

.boton--claro:hover .boton__play,
.boton--claro:focus-visible .boton__play {
    background: var(--azul);
}

.boton__play {
    flex: none;
    position: relative;
    width: 28px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--azul);
    transition: background 0.25s;
}

.boton__play::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--naranja);
    clip-path: polygon(38% 28%, 72% 50%, 38% 72%);
}

.boton--naranja:hover .boton__play,
.boton--naranja:focus-visible .boton__play {
    background: #fff;
}

.pagina-hero {
    position: relative;
}

.pagina-hero img {
    width: 100%;
    height: clamp(14rem, 46vw, 41.5rem);
    object-fit: cover;
}

.pagina-hero__capa {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(1.25rem, 5.5vw, 5rem);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 55%);
}

.pagina-hero__capa .titulo {
    margin-bottom: 0;
}

.titulo--claro {
    color: #fff;
}

.titulo__principal--hero {
    font-size: clamp(2.4rem, 6.1vw, 5.5rem);
}

.footer {
    background: var(--azul);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.footer__contenido {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.footer__isotipo {
    width: clamp(7rem, 12.6vw, 11.4rem);
    height: auto;
    margin-bottom: clamp(1.5rem, 4vw, 3.5rem);
}

.footer__copy {
    font-weight: 500;
    font-size: clamp(0.8rem, 1.25vw, 1.125rem);
}

.footer__instagram img {
    width: clamp(8rem, 12.6vw, 11.4rem);
    height: auto;
}
