/* ==================================================
   Cancun Plaza Condo Mexico
   style.css v2 - Light Beach Resort Style
   Misma maqueta, nueva estética
================================================== */

:root {
--primary: #00BFFF;
--primary-dark: #0099CC;
    --accent: #D8B66A;
    --dark: #102A33;
    --text: #24343A;
    --muted: #617178;
    --soft: #F7FBFC;
    --sand: #F8F4EA;
    --white: #FFFFFF;
    --border: rgba(0, 124, 137, .14);
    --shadow: 0 24px 60px rgba(12, 66, 76, .14);
    --shadow-soft: 0 14px 34px rgba(12, 66, 76, .10);
    --radius: 22px;
    --radius-sm: 14px;
    --transition: .32s ease;
    --container: min(1180px, 92vw);
}

/* Reset */

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

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    font: inherit;
}

/* Base */

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

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.15;
    font-weight: 800;
    color: var(--dark);
}

h1 {
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    letter-spacing: -.04em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -.03em;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--muted);
    margin: 16px 0;
}

.lead {
    font-size: 1.15rem;
    color: #44575E;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.rounded {
    border-radius: var(--radius);
}

.shadow {
    box-shadow: var(--shadow);
}

/* Buttons */

.btn-book,
.btn-primary,
.btn-secondary,
.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 25px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .02em;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-book,
.btn-primary,
.card-button {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 166, 180, .28);
}

.btn-book:hover,
.btn-primary:hover,
.card-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 124, 137, .32);
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: #fff;
    color: var(--primary-dark);
}

/* Header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 84px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    z-index: 1000;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    transition: var(--transition);
}

.header.scrolled {
    height: 76px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 34px rgba(0, 60, 70, .12);
    border-bottom: 1px solid rgba(0, 124, 137, .10);
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    width: auto;
    height: auto;
    max-width: 118px;
    max-height: 58px;
    object-fit: contain;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex: 1 1 auto;
}

.menu a {
    color: #fff;
    font-size: .94rem;
    font-weight: 700;
    opacity: .96;
    transition: var(--transition);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}

.header.scrolled .menu a {
    color: var(--dark);
    text-shadow: none;
}

.menu a:hover {
    color: var(--accent);
    opacity: 1;
}

.header.scrolled .menu a:hover {
    color: var(--primary);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.language-switch a {
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    opacity: .82;
    transition: .3s;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}

.language-switch span {
    color: rgba(255, 255, 255, .55);
}

.header.scrolled .language-switch a {
    color: var(--dark);
    text-shadow: none;
}

.header.scrolled .language-switch span {
    color: rgba(16, 42, 51, .35);
}

.language-switch a:hover,
.language-switch a.active {
    color: var(--accent);
    opacity: 1;
}

.header.scrolled .language-switch a:hover,
.header.scrolled .language-switch a.active {
    color: var(--primary);
}

.header .btn-book {
    flex: 0 0 auto;
    padding: 11px 22px;
    font-size: .9rem;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex: 0 0 auto;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    margin: 6px auto;
    background: #fff;
    border-radius: 20px;
    transition: var(--transition);
}

.header.scrolled .menu-toggle span {
    background: var(--dark);
}

/* Hero */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: center / cover no-repeat;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        rgba(0, 0, 0, .02),
        rgba(0, 0, 0, .16)
    );
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.4s ease, transform 6s ease;
    z-index: -2;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.overlay {
    width: min(930px, 92vw);
    padding: 120px 0 60px;
    text-align: center;
    color: #fff;
}

.overlay h1 {
    color: #fff;
    text-shadow: 0 10px 34px rgba(0, 0, 0, .26);
}

.overlay p {
    max-width: 720px;
    margin: 24px auto 32px;
    color: rgba(255, 255, 255, .96);
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-shadow: 0 6px 22px rgba(0, 0, 0, .26);
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* Sections */

.welcome-section,
.apartments-section,
.reviews-section {
    background: #fff;
}

.welcome-grid,
#welcome .container {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
}

.welcome-text {
    max-width: 620px;
}

.welcome-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.why-section,
.gallery-section,
.location-section {
    background: var(--soft);
}

/* Feature cards */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    min-height: 210px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.reviews-section .feature-card p:nth-of-type(1) {
    color: var(--accent);
    letter-spacing: .12em;
    font-weight: 800;
}

/* Apartments */

.apartment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 44px;
}

.apartment-card {
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.apartment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.apartment-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.apartment-content {
    padding: 30px;
}

.apartment-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 18px;
}

.apartment-info span {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--soft);
    color: #436068;
    font-size: .86rem;
    font-weight: 700;
}

.card-button {
    margin-top: 6px;
}

/* Gallery */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 34px;
}

.gallery img {
    width: 100%;
    height: 285px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 124, 137, .08);
    transition: var(--transition);
}

.gallery img:hover {
    transform: scale(1.025);
    filter: brightness(1.06);
    box-shadow: var(--shadow);
}

/* Map and CTA */

.map-card {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: #fff;
}

.map-card iframe {
    display: block;
}

.final-cta {
    position: relative;
    background:
        linear-gradient(rgba(0, 70, 86, .38), rgba(0, 50, 64, .52)),
        url("../images/sunset-ocean.jpg") center / cover no-repeat;
    color: #fff;
}

.final-cta h2 {
    color: #fff;
}

.final-cta p {
    color: rgba(255, 255, 255, .90);
}

.final-cta .section-label {
    color: var(--accent);
}

/* Footer */

footer {
    background: #102A33;
    color: #fff;
    padding: 76px 5vw 32px;
}

.footer-grid {
    width: var(--container);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    gap: 52px;
}

footer h3 {
    color: #fff;
    margin-bottom: 14px;
}

footer p {
    color: rgba(255, 255, 255, .74);
}

footer a {
    display: block;
    margin: 10px 0;
    color: rgba(255, 255, 255, .78);
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent);
}

.copyright {
    width: var(--container);
    margin: 46px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .58);
    text-align: center;
    font-size: .9rem;
}

/* Floating buttons */

.whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp:hover {
    transform: translateY(-4px) scale(1.04);
}

.back-top {
    position: fixed;
    left: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: var(--transition);
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

/* Reveal */

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .75s ease, transform .75s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet */

@media (max-width: 1100px) {
    .menu {
        gap: 18px;
    }

    .menu a {
        font-size: .88rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile header */

@media (max-width: 900px) {
    .header {
        height: 74px;
        padding: 0 16px;
        gap: 10px;
        flex-direction: row;
    }

    .header.scrolled {
        height: 74px;
    }

    .logo img {
        max-width: 86px;
        max-height: 50px;
    }

    .menu-toggle {
        display: block;
        order: 4;
    }

    .language-switch {
        order: 2;
        margin-left: auto;
        margin-right: 4px;
    }

    .header .btn-book {
        order: 3;
        margin-left: 0;
        margin-right: 6px;
        width: auto;
        min-height: 40px;
        padding: 9px 15px;
        font-size: .78rem;
    }

    .menu {
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        background: rgba(255, 255, 255, .98);
        border-top: 1px solid rgba(0, 124, 137, .12);
        padding: 16px 20px 22px;
        box-shadow: 0 18px 36px rgba(0, 60, 70, .14);
    }

    .menu.mobile-open {
        display: flex;
    }

    .menu a {
        width: 100%;
        padding: 14px 0;
        text-align: center;
        border-bottom: 1px solid rgba(0, 124, 137, .10);
        color: var(--dark);
        text-shadow: none;
        font-size: 1rem;
    }

    .menu a:last-child {
        border-bottom: none;
    }

    .welcome-grid,
    #welcome .container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .welcome-image {
        order: -1;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

/* Small mobile */

@media (max-width: 600px) {
    .section {
        padding: 74px 0;
    }

    .container {
        width: 90vw;
    }

    h1 {
        font-size: 2.45rem;
    }

    h2 {
        font-size: 2rem;
    }

    .overlay {
        padding-top: 95px;
    }

    .overlay p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .header .btn-book {
        width: auto;
        padding: 8px 12px;
        font-size: .72rem;
    }

    .logo img {
        max-width: 74px;
        max-height: 44px;
    }

    .language-switch a {
        font-size: .76rem;
    }

    .feature-grid,
    .gallery {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
        padding: 24px;
    }

    .apartment-card img {
        height: 260px;
    }

    .apartment-content {
        padding: 24px;
    }

    .gallery img {
        height: 250px;
    }

    .map-card iframe {
        height: 360px;
    }

    footer {
        padding-top: 58px;
    }

    .whatsapp {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }

    .back-top {
        left: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
}

/* Extra small */

@media (max-width: 390px) {
    .header .btn-book {
        padding: 7px 9px;
        font-size: .68rem;
    }

    .logo img {
        max-width: 66px;
    }

    .language-switch {
        gap: 5px;
    }

    .menu-toggle {
        width: 36px;
    }

    .menu-toggle span {
        width: 23px;
    }
}
