/* Global styles */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');
body {
    background-image: url('../resources/img/fondo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Geist", sans-serif;
}
:root{
    --primary-color: #0861A3;
    --accent-red: #d1373f;
}

/* Revelado suave al entrar en pantalla (ver BaseLayout.astro) */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Botones compartidos entre vistas */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.9em 1.8em;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95em;
    text-align: center;
    transition: all 250ms ease;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(8, 97, 163, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(8, 97, 163, 0.4);
}

.btn--accent {
    background-color: var(--accent-red);
    color: white;
}

.btn--accent:hover {
    transform: translateY(-2px);
}

.btn--light {
    background-color: white;
    color: #1c2536;
}

.btn--light:hover {
    transform: translateY(-2px);
}

.btn--outline-light {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn--outline:hover {
    background-color: rgba(8, 97, 163, 0.08);
}

.btn--outline-accent {
    background-color: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.btn--outline-accent:hover {
    background-color: rgba(209, 55, 63, 0.08);
}

.bar-accent {
    display: block;
    width: 4px;
    height: 1.1em;
    background-color: var(--accent-red);
    flex-shrink: 0;
}

/* NAV */
.nav{
    background-color: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
    padding: 0 2em;
    position: sticky;
    top: 0;
    z-index: 20;
    isolation: isolate;
    transform: translateZ(0);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.nav.scrolled {
    border-bottom-color: #ececf3;
    box-shadow: 0 6px 24px rgba(20, 30, 60, 0.07);
}
.nav__logo{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    font-size: 22px;
}

.nav__logo .logo__img{
    width: 52px;
    max-height: 100%;
    margin-right: 0.6em;
}
.nav__logo .logo__img img{
    display: block;
}

.nav__logo .logo__text{
    font-weight: 800;
}

.logo__text--cera{
    color: var(--accent-red);
}

.logo__text--mor{
    color: var(--primary-color);
}

.nav__links{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    font-weight: 500;
}
.nav__links a{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px 14px;
    transition: color 300ms;
    white-space: nowrap;
    color: #8a92a3;
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}
.nav__links a:hover, .nav__links a.active{
    color: var(--primary-color);
    font-weight: 700;
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a.active::after {
    transform: scaleX(1);
}
.nav__right {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-shrink: 0;
}
.nav__cta {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.6em 1.3em;
    font-size: 0.9em;
    color: white;
    background-color: var(--primary-color);
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}
.nav__cta:hover {
    color: white;
    transform: translateY(-2px);
}
/* Por defecto, el botón hamburguesa está oculto */
.hamburger {
    display: none !important;
    padding: 0;
    margin-top: 4px;
    z-index: 3;
}
.hamburger-inner, .hamburger-inner::after, .hamburger-inner::before{
    width: 35px;
    background-color: var(--primary-color) !important;
    width: 30px;
    height: 4px;
}
@media screen and (max-width: 1000px) {
    .nav{
        padding: 0 1.2em;
    }
    .logo__text{
        font-size: 16px;
    }
}

#whats-link{
    position: fixed;
    bottom: 3%;
    right: 1%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background-color: #25d366;
    border-radius: 10px;
}
#whats-link i{
    font-size: 3em;
    z-index: 201;
    color: white;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    height: 100%;
    height: 35px;
    transition: transform 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
#whats-link i:hover{
    animation: shake 0.2s ease-in-out 3.5;
}
#whats-link p {
    position: absolute;
    right: 125%;
    background-color: white;
    padding: 5px 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    font-size: .8em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease;
    pointer-events: none;
}

#whats-link:hover p,
#whats-link:focus-visible p {
    opacity: 1;
    visibility: visible;
}

#whats-link p::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    border-width: 15px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(30deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-30deg); }
    100% { transform: rotate(0deg); }
}

@media screen and (max-width: 600px) {
    #whats-link{
        padding: 8px 6px;
    }
    #whats-link i{
        font-size: 2.5em;
    }
    #whats-link p{
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        width: 180px;
        height: 50px;
        text-align: justify;
        white-space: wrap;
        line-height: 1.5em;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #3a4658 0%, #1c2536 100%);
    color: white;
    padding: 3em 2em 0;
}

.footer i {
    color: white;
}

.footer a {
    display: inline;
}

.footer-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2em;
    padding-bottom: 2em;
}

.footer-brand h3 {
    font-size: 1.5em;
    margin-bottom: 0.6em;
    color: white;
}

.footer-brand p {
    color: #c3c9d6;
    line-height: 1.6em;
    margin-bottom: 1.2em;
    max-width: 32em;
}

.footer-brand__social {
    display: flex;
    gap: 0.8em;
}

.footer-brand__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2em;
}

.footer-brand__social a:hover {
    background-color: var(--accent-red);
    color: white;
}

.footer-col h4 {
    font-size: 0.85em;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1em;
}

.footer-col ul li {
    margin-bottom: 0.8em;
}

.footer-col ul li a {
    color: #c3c9d6;
}

.footer-col ul li a:hover {
    color: var(--accent-red);
    transition: all 300ms;
}

.footer hr {
    width: 100%;
    height: 1px;
    border: 0;
    background-color: rgba(255, 255, 255, 0.12);
}

.footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
    padding: 1em 0;
}

.footer__copy {
    font-size: 14px;
    color: #9099ab;
}

.footer__country {
    font-size: 14px;
    color: #9099ab;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .nav__links {
        visibility: hidden;
        opacity: 0;
        transform: translateY(-20px);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        transition: transform 0.4s ease, opacity 0.4s ease, visibility 0s 0.4s;
    }

    .nav__links.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: transform 0.4s ease, opacity 0.4s ease, visibility 0s 0s;
        z-index: 4;
    }

    .hamburger {
        display: block !important;
    }

    /* En flujo normal junto al botón de Catálogo (antes quedaba fijo con
       position:absolute y se encimaba con ese botón, que no existía cuando
       se escribió esta regla). */
    .hamburger--stand {
        position: static;
    }

    .nav {
        gap: 0.6em;
        padding: 0 1em;
    }

    .nav__logo{
        width: auto;
        flex-shrink: 1;
        min-width: 0;
    }

    .nav__logo .logo__img {
        width: 34px;
        flex-shrink: 0;
    }

    .nav__logo .logo__text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav__right {
        gap: 0.5em;
    }

    .nav__cta {
        padding: 0.5em 0.8em;
        font-size: 0.8em;
        gap: 0.4em;
    }

    .global-title{
        font-size: 2em !important;
    }
    .footer-brand h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .footer-brand h3 {
        font-size: 1.2em;
    }
}

.global-title{
    width: 90%;
    margin: 0 auto;
    margin-top: 1em;
    text-align: center;
    font-size: 3em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.footer-nav__link:hover{
    color: var(--accent-red) !important;
}
