:root {
    --dark: #07111d;
    --dark-soft: #101c29;
    --red: #e3212b;
    --red-dark: #a80f18;
    --gold: #e7d89b;
    --gold-soft: #f3eccb;
    --white: #ffffff;
    --gray: #b7bec7;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
}


/* HEADER */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(7, 17, 29, .96);
    border-bottom: 1px solid rgba(231, 216, 155, .25);

    backdrop-filter: blur(12px);
}

.header-container {
    width: min(1180px, 92%);
    min-height: 92px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;

    text-decoration: none;
}

.brand-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-small {
    color: var(--gold);
    font-size: .72rem;
    letter-spacing: 4px;
}

.brand-name {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--red);
    font-size: 1.75rem;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--gold-soft);
    text-decoration: none;
    font-size: .9rem;

    transition: .25s;
}

.main-nav a:hover {
    color: var(--red);
}


/* HERO */

.hero {
    min-height: 720px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    background:
        radial-gradient(circle at 20% 40%,
            rgba(227, 33, 43, .18),
            transparent 32%),
        linear-gradient(120deg,
            #090f18,
            #07111d 65%,
            #101c29);
}

.hero::before {
    content: "";

    position: absolute;

    left: -180px;
    top: -100px;

    width: 480px;
    height: 950px;

    background:
        linear-gradient(
            135deg,
            transparent 20%,
            rgba(227,33,43,.9) 21%,
            rgba(120,0,10,.55) 50%,
            transparent 51%
        );

    transform: rotate(-8deg);
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(1180px, 90%);
    margin: auto;

    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;

    gap: 80px;
}

.hero-logo {
    display: flex;
    justify-content: center;
}

.hero-logo img {
    width: min(330px, 80%);
    filter: drop-shadow(0 20px 35px rgba(0,0,0,.45));
}

.eyebrow,
.section-label {
    color: var(--gold);

    font-size: .78rem;
    font-weight: 700;

    letter-spacing: 5px;
}

.hero h1 {
    margin-top: 8px;

    font-family: Georgia, 'Times New Roman', serif;

    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 500;

    color: var(--red);

    line-height: .95;
}

.hero h2 {
    margin-top: 22px;

    font-family: Georgia, 'Times New Roman', serif;

    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;

    color: var(--gold-soft);
}

.profession {
    margin-top: 5px;

    color: var(--gold);
    font-size: 1.2rem;
}

.hero-description {
    max-width: 650px;

    margin-top: 25px;

    color: var(--gray);
    font-size: 1.05rem;
}

.hero-route {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;

    margin: 30px 0;

    color: var(--gold-soft);

    font-size: .82rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.star {
    color: var(--red);
}

.btn-primary {
    display: inline-block;

    padding: 14px 32px;

    color: var(--white);
    text-decoration: none;

    border: 1px solid var(--red);
    background: var(--red);

    transition: .3s;
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold);
}


/* GENERALES */

.section-container {
    width: min(1100px, 90%);
    margin: auto;
}

.section {
    padding: 110px 0;
    background: #f5f2e8;
    color: #111a24;
}

.section h2,
.services h2,
.bioceanico h2,
.contact h2 {
    margin-top: 10px;

    font-family: Georgia, 'Times New Roman', serif;

    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 400;
}

.section-intro {
    max-width: 780px;

    margin-top: 25px;

    color: #4b535b;

    font-size: 1.15rem;
}


/* SERVICIOS */

.services {
    padding: 110px 0;

    background: var(--dark);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-top: 55px;
}

.service-card {
    min-height: 250px;

    padding: 35px;

    border: 1px solid rgba(231,216,155,.2);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.05),
            rgba(255,255,255,.015)
        );

    transition: .3s;
}

.service-card:hover {
    transform: translateY(-7px);

    border-color: var(--red);
}

.card-star {
    color: var(--red);
    font-size: 2rem;
}

.service-card h3 {
    margin: 18px 0 12px;

    color: var(--gold-soft);

    font-family: Georgia, serif;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--gray);
}


/* CORREDOR */

.bioceanico {
    padding: 120px 0;

    text-align: center;

    background:
        linear-gradient(
            rgba(120,0,10,.92),
            rgba(60,0,5,.96)
        );
}

.bioceanico-content {
    max-width: 900px;
}

.countries {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 25px;

    margin: 35px 0;

    color: var(--gold-soft);

    font-size: 1.3rem;
    letter-spacing: 2px;
}

.countries span {
    color: var(--gold);
}

.bioceanico p {
    max-width: 750px;
    margin: auto;

    color: #f0e8da;

    font-size: 1.05rem;
}

/* =========================================
   CONTACTO + GOOGLE MAPS
========================================= */
.contact {
    padding: 110px 0 130px;

    background: #f5f2e8;
    color: #111a24;
}
.contact-grid {
    width: 100%;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 45px;

    margin-top: 45px;
    align-items: stretch;
}

/* CAJA DATOS */

.contact-grid .contact-box {
    width: 100%;
    margin-top: 0;
}

.contact-box {
    border-top: 1px solid #cbc2a1;
}

.contact-box > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;

    padding: 20px 0;

    border-bottom: 1px solid #d8d0b6;
}

.contact-box span {
    color: #7b6d43;

    font-size: .8rem;
    font-weight: bold;

    text-transform: uppercase;
    letter-spacing: 2px;
}

/* CAJA MAPA */
.map-box {
    width: 100%;
    height: 100%;
    min-height: 390px;

    overflow: hidden;

    border: 1px solid #d8d0b6;
    border-radius: 4px;

    background: var(--dark);

    box-shadow: 0 12px 30px rgba(7, 17, 29, .12);
}

.map-box iframe {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 390px;

    border: 0;
}




/* FOOTER */

.main-footer {
    padding: 50px 0;

    background: #040a10;

    border-top: 3px solid var(--red);
}

.footer-container {
    width: min(1100px, 90%);
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;

    gap: 15px;
}

.footer-brand img {
    width: 55px;
}

.footer-brand div {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    color: var(--red);
    font-family: Georgia, serif;
    font-size: 1.4rem;
}

.footer-brand span,
.footer-copy {
    color: var(--gray);
    font-size: .8rem;
}

.footer-route {
    color: var(--gold);

    font-size: .75rem;
    letter-spacing: 2px;
}


/* RESPONSIVE */

/* RESPONSIVE */

@media (max-width: 768px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-box > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .map-box,
    .map-box iframe {
        min-height: 350px;
    }
}


@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 90px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;

        text-align: center;
    }

    .hero-logo img {
        width: 180px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-route {
        justify-content: center;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {

    .brand-small {
        font-size: .55rem;
    }

    .brand-name {
        font-size: 1.35rem;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .hero h1 {
        font-size: 3.6rem;
    }

    .contact-box > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* =========================================
   GALERÍA
========================================= */

.gallery-section {
    padding: 110px 0 120px;
    background: var(--dark);
    color: var(--white);
}

.gallery-section h2 {
    margin-top: 10px;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 400;

    color: var(--gold-soft);
}

.gallery-intro {
    margin-top: 15px;
    color: var(--gray);
}


/* CINTA */

.gallery-wrapper {
    position: relative;
    margin-top: 50px;

    display: flex;
    align-items: center;
    gap: 18px;
}

.gallery-viewport {
    width: 100%;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 20px;

    transition: transform .45s ease;
}


/* IMAGEN */

.gallery-item {
    flex: 0 0 calc((100% - 40px) / 3);

    height: 280px;

    padding: 0;
    border: 1px solid rgba(231, 216, 155, .25);

    background: #000;

    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    transition: transform .4s ease,
                opacity .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: .85;
}


/* FLECHAS */

.gallery-arrow {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    border: 1px solid var(--gold);

    background: transparent;
    color: var(--gold);

    font-size: 1.6rem;

    cursor: pointer;

    transition: .25s;
}

.gallery-arrow:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
}


/* =========================================
   LIGHTBOX
========================================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;

    z-index: 5000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 40px 90px;

    background: rgba(3, 8, 14, .96);
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 85vh;

    object-fit: contain;

    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}


/* CERRAR */

.lightbox-close {
    position: absolute;

    top: 25px;
    right: 35px;

    width: 50px;
    height: 50px;

    border: none;
    background: transparent;

    color: var(--gold-soft);

    font-size: 3rem;
    line-height: 1;

    cursor: pointer;
}


/* FLECHAS DEL VISOR */

.lightbox-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 55px;
    height: 55px;

    border: 1px solid var(--gold);

    background: rgba(7,17,29,.75);
    color: var(--gold);

    font-size: 1.8rem;

    cursor: pointer;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-arrow:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}


/* =========================================
   GALERÍA RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .gallery-item {
        flex: 0 0 calc((100% - 20px) / 2);
    }

}


@media (max-width: 600px) {

    .gallery-section {
        padding: 80px 0;
    }

    .gallery-wrapper {
        gap: 8px;
    }

    .gallery-item {
        flex: 0 0 100%;
        height: 260px;
    }

    .gallery-arrow {
        flex: 0 0 38px;

        width: 38px;
        height: 45px;
    }

    .gallery-lightbox {
        padding: 70px 15px;
    }

    .gallery-lightbox img {
        max-width: 100%;
        max-height: 75vh;
    }

    .lightbox-arrow {
        width: 42px;
        height: 50px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

}
.footer-copy a {
    color: var(--gold);
    text-decoration: none;
    transition: color .25s ease;
}

.footer-copy a:hover {
    color: var(--red);
}

/* CRÉDITO PALPALÁ DIGITAL */

.footer-credit {
    margin-top: 22px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;
}

.footer-credit span {
    color: var(--gray);

    font-size: .62rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    opacity: .7;
}

.footer-credit img {
    display: block;

    width: 68px;
    height: auto;

    opacity: .75;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.footer-credit a:hover img {
    opacity: 1;
    transform: scale(1.05);
}

