/* ─── FONTS (autoalojadas, variables) ─── */
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/playfair-display-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/playfair-display-italic-latin.woff2") format("woff2");
}

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

:root {
    --sand: #f5ede0;
    --earth: #c8a97a;
    --water: #2a6b8a;
    --deep: #0f2d3d;
    --foam: #eef6fb;
    --text: #1a1a1a;
    --muted: #5f6672;
    --white: #ffffff;
    --accent: #d4752a;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

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

:focus-visible {
    outline: 2px solid var(--earth);
    outline-offset: 3px;
}

/* ─── NAV ─── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}
#mainNav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    transition:
        background 0.3s,
        box-shadow 0.3s,
        padding 0.3s;
}
#mainNav.scrolled {
    background: rgba(164, 164, 164, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}
.nav-logo {
    display: flex;
    align-items: center;
}
.nav-logo img {
    height: 80px;
    width: auto;
    transition:
        opacity 0.3s,
        height 0.3s;
}
#mainNav.scrolled .nav-logo img {
    height: 60px;
}
.nav-logo img:hover {
    opacity: 0.85;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s;
}
#mainNav.scrolled .nav-links a {
    color: var(--deep);
}
.nav-links a:hover {
    color: var(--earth);
}
.nav-cta,
#mainNav.scrolled .nav-cta {
    background: var(--earth);
    color: var(--deep) !important;
    padding: 0.5rem 1.4rem;
    border-radius: 2px;
}

/* Botón hamburguesa (solo móvil/tablet) */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition:
        transform 0.25s,
        opacity 0.25s;
}
#mainNav.scrolled .nav-toggle span {
    background: var(--deep);
}
#mainNav.open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#mainNav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
#mainNav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── HERO ─── */
#inicio {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 1.5rem 4rem;
}
/* Slider de portada: fundido + zoom suave */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}
.hero-bg.is-active {
    opacity: 1;
    animation: heroZoom 7s ease-out both;
}
@keyframes heroZoom {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1);
    }
}
.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
}
.hero-dots button {
    width: 32px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}
.hero-dots button::before {
    content: "";
    display: block;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.3s;
}
.hero-dots button[aria-current="true"]::before {
    background: var(--earth);
}
#inicio::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(15, 45, 61, 0.6) 0%,
        rgba(15, 45, 61, 0.3) 55%,
        rgba(15, 45, 61, 0.75) 100%
    );
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 45, 61, 0.45);
    border: 1px solid rgba(200, 169, 122, 0.6);
    color: #e8c98a;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 2px;
    margin-bottom: 1.8rem;
    backdrop-filter: blur(4px);
}
.hero-badge::before {
    content: "●";
    font-size: 0.5rem;
}
h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    color: var(--white);
    line-height: 1.1;
    max-width: 900px;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
h1 em {
    font-style: italic;
    color: #e8c98a;
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-primary {
    display: inline-block;
    background: var(--earth);
    color: var(--deep);
    padding: 0.9rem 2.4rem;
    border: none;
    border-radius: 2px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.2s,
        transform 0.15s;
}
.btn-primary:hover {
    background: #b88a5a;
    transform: translateY(-1px);
}
.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: var(--white);
    padding: 0.9rem 2.4rem;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ─── SECTIONS ─── */
section {
    padding: 5rem 1.5rem;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}
.container-narrow {
    max-width: 780px;
}
.container-wide {
    max-width: 1280px;
}
.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7a5c2e;
    margin-bottom: 0.8rem;
}
h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--deep);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.lead {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 620px;
}

/* ─── ABOUT ─── */
#nosotros {
    background: var(--sand);
}
.about-grid {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    gap: 3rem 4rem;
    align-items: center;
}
.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}
.about-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.about-features {
    grid-column: 1 / -1;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(15, 45, 61, 0.1);
}
.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text);
}
.about-features li::before {
    content: "→";
    color: var(--earth);
    font-size: 0.85rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* ─── AMENITIES ─── */
#comodidades {
    background: var(--deep);
}
#comodidades h2 {
    color: var(--white);
}
#comodidades .section-label,
#reservar .section-label,
#pesca .section-label {
    color: var(--earth);
}
#comodidades .lead {
    color: rgba(255, 255, 255, 0.7);
}
.amenities-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}
.amenity-card {
    background: var(--deep);
    padding: 2rem 1.5rem;
    transition: background 0.2s;
}
.amenity-card:hover {
    background: #1b3a49;
}
.amenity-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}
.amenity-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.3rem;
}
.amenity-card p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.5;
}

.interior-gallery {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.interior-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px;
}
.interior-gallery figcaption {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ─── LOCATION ─── */
#ubicacion {
    background: var(--foam);
}
.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}
.poi-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
}
.poi-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    font-size: 0.9rem;
}
.poi-item .name {
    color: var(--deep);
    font-weight: 500;
}
.poi-item .dist {
    background: var(--water);
    color: var(--white);
    font-size: 0.72rem;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.btn-map {
    margin-top: 2rem;
}
.map-embed {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
}
.map-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-gallery {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
.location-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px;
}
.location-gallery figcaption {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ─── QUÉ HACER EN ESQUINA ─── */
#esquina {
    background: var(--white);
}
.esquina-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.esquina-card {
    border: 1px solid rgba(15, 45, 61, 0.1);
    border-radius: 4px;
    padding: 2rem 1.5rem;
    background: var(--foam);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.esquina-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 45, 61, 0.08);
}
.esquina-card .icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}
.esquina-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    color: var(--deep);
    margin-bottom: 0.5rem;
}
.esquina-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ─── PESCA ─── */
#pesca {
    background:
        linear-gradient(135deg, rgba(15, 45, 61, 0.92) 0%, rgba(42, 107, 138, 0.88) 100%),
        url("../img/portada/playa-costanera-esquina-corrientes-960.webp") center/cover;
    color: var(--white);
}
#pesca h2 {
    color: var(--white);
}
#pesca .lead {
    color: rgba(255, 255, 255, 0.8);
}
.pesca-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.pesca-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.05);
}
.pesca-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}
.pesca-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}
.pesca-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ─── FAQ ─── */
#preguntas {
    background: var(--sand);
}
.faq-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
}
.faq-item {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.faq-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.faq-q {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--deep);
    cursor: pointer;
}
.faq-q::-webkit-details-marker {
    display: none;
}
.faq-q::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--earth);
    transition: transform 0.25s;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item[open] .faq-q::after {
    transform: rotate(45deg);
}
.faq-a {
    padding-bottom: 1.2rem;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 720px;
}

/* ─── RESERVAR ─── */
#reservar {
    background: var(--deep);
}
#reservar h2 {
    color: var(--white);
}
#reservar .lead {
    color: rgba(255, 255, 255, 0.7);
}
.reservar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(200, 169, 122, 0.2);
    border: 1px solid rgba(200, 169, 122, 0.4);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-item h3 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--earth);
    margin-bottom: 0.3rem;
}
.contact-item p,
.contact-item a,
.contact-item address {
    font-size: 0.95rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.contact-item a:hover {
    color: var(--earth);
}
.form-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2.5rem;
}
.form-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1.8rem;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    padding: 0.75rem 1rem;
    color: var(--white);
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    color-scheme: dark;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--earth);
}
.form-group select option {
    background: var(--deep);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.btn-submit {
    width: 100%;
    background: var(--earth);
    color: var(--deep);
    border: none;
    border-radius: 2px;
    padding: 1rem 2rem;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}
.btn-submit:hover {
    background: #b88a5a;
}

/* ─── FOOTER ─── */
footer {
    background: #071922;
    padding: 3rem 1.5rem 6rem;
    text-align: center;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.footer-logo {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    color: var(--white);
}
.footer-nap {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}
.footer-nap a,
.footer-copy a {
    color: inherit;
}
.footer-links {
    display: flex;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--earth);
}
.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ─── WHATSAPP FLOAT ─── */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 200;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1180px) {
    #mainNav {
        padding: 0.8rem 1.5rem;
    }
    .nav-logo img {
        height: 60px;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1.5rem;
        background: var(--deep);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }
    #mainNav.open .nav-links {
        display: flex;
    }
    #mainNav.open {
        background: var(--deep);
    }
    #mainNav.open .nav-toggle span {
        background: var(--white);
    }
    .nav-links a,
    #mainNav.scrolled .nav-links a {
        display: block;
        padding: 0.9rem 0;
        color: var(--white);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-links .nav-cta {
        margin-top: 1rem;
        text-align: center;
        border-bottom: none;
    }
}

@media (max-width: 900px) {
    .esquina-grid,
    .about-features,
    .interior-gallery {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-grid,
    .location-grid,
    .reservar-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .pesca-grid,
    .esquina-grid,
    .about-features {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-card {
        padding: 1.5rem;
    }
    section {
        padding: 3.5rem 1.2rem;
    }
    .whatsapp-btn {
        bottom: 1.2rem;
        right: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
