/* ==================================================
   THE REMEMBERING — CARNAC
   Main Stylesheet
   ================================================== */

:root {
    /* Backgrounds */
    --bg-dark: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-light: #F5F0E8;
    --bg-warm: #F5F0E8;
    
    /* Accent */
    --gold: #c9a66b;
    --gold-hover: #d8b982;
    --gold-dark: #a8884e;
    
    /* Neutrals */
    --stone: #8a8a8a;
    --stone-light: #b0b0b0;
    --white: #ffffff;
    --text-dark: #1c1c1c;
    --text-light: #e0e0e0;
    
    /* Layout */
    --container-width: 1200px;
    --container-padding: 20px;
    
    /* Animation */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Shadows */
    --shadow: 0 15px 40px rgba(0,0,0,0.08);
    --shadow-dark: 0 20px 50px rgba(0,0,0,0.2);
    --shadow-gold: 0 10px 30px rgba(201,166,107,0.2);
}

/* =========================
   RESET
   ========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* =========================
   TYPOGRAPHY
   ========================= */

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

/* =========================
   CONTAINER
   ========================= */

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =========================
   SECTIONS
   ========================= */

section {
    padding: 100px 0;
}

section:nth-child(even) {
    background-color: var(--bg-warm);
}

section:nth-child(odd) {
    background-color: var(--bg-warm);
}

/* =========================
   BUTTONS
   ========================= */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* PRIMARY BUTTON */
.btn-primary {
    background: var(--gold);
    color: var(--bg-dark);
    border: none;
}

.btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* SECONDARY BUTTON */
.btn-secondary {
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* Button shine effect */
.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transform: skewX(-20deg);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 120%;
}

/* =========================
   HERO SECTION
   ========================= */

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../assets/images/hero/carnac-hero.jpg') center top / auto 140% no-repeat;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Overlay marrón-negro cálido para que el dorado resalte sobre las piedras */
    background: linear-gradient(135deg, rgba(28,18,10,0.78) 0%, rgba(18,12,7,0.58) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 90%;
    padding: 40px 0;
}

.hero-subtitle {
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-content h1 {
    margin-bottom: 20px;
    text-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.hero-content h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    margin-bottom: 30px;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255,255,255,0.9);
}

.hero-availability {
    color: var(--gold);
    margin-bottom: 40px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

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

/* =========================
   SECTION HEADERS
   ========================= */

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

.section-heading p {
    color: var(--stone);
    font-size: 1.2rem;
}

/* =========================
   OPENING SECTION
   ========================= */

#opening {
    text-align: center;
}

#opening h2 {
    max-width: 900px;
    margin: 0 auto 30px;
}

.opening-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 40px;
}

.opening-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.opening-closing {
    margin-top: 30px;
    font-size: 1.2rem;
    text-align: center;
}

/* =========================
   LOCATION SECTION
   ========================= */

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}

.location-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.location-image:hover img {
    transform: scale(1.05);
}

.location-text p:first-of-type {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-dark);
}

/* =========================
   VILLA SECTION
   ========================= */

#villa {
    /* Fondo oscuro cálido con textura de piedra suave */
    background: linear-gradient(160deg, #1f1813 0%, #2c241c 55%, #221b14 100%);
    color: var(--text-light);
}

#villa h2 {
    text-align: center;
    color: var(--white);
}

.villa-subtitle {
    text-align: center;
    color: var(--stone-light);
    margin-bottom: 40px;
}

.villa-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 50px 0;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-dark);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

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

.villa-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature {
    padding: 12px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,166,107,0.25);
    color: var(--text-light);
    border-radius: 50px;
    text-align: center;
    font-size: 0.95rem;
    transition: var(--transition);
}

.feature:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* =========================
   EXPERIENCE SECTION
   ========================= */

.experience-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

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

/* Tarjeta a todo el ancho (texto largo expandido a la derecha) */
.experience-card-wide {
    grid-column: 1 / -1;
}

.experience-card {
    background: var(--bg-secondary);
    color: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: default;
}

/* Ritmo visual: alterna carbón profundo y piedra cálida más clara */
.experience-card:nth-child(even) {
    background: #2e2620;
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dark);
    filter: brightness(1.12);
}

.experience-card h3 {
    color: var(--gold);
    margin-bottom: 15px;
}

.experience-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

/* =========================
   TEAM SECTION
   ========================= */

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

/* 3 tarjetas por fila; las que sobran (2) quedan centradas */
.team-card {
    flex: 0 1 calc((100% - 80px) / 3);
}

.team-card {
    scroll-margin-top: 90px; /* Para que el navbar fijo no tape la tarjeta al hacer scroll */
    background: var(--white);
    border-radius: 20px;
    overflow: visible;  /* Cambia de 'hidden' a 'visible' */
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: auto;  /* Asegura altura automática */
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.team-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 20%;
}

.team-content {
    padding: 25px;
    flex: 1;
}

.team-title {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.bio-preview {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* =========================
   INCLUDED SECTION
   ========================= */

.included-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.included-column {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.included-column h3 {
    color: var(--gold);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    display: inline-block;
}

.included-column ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

.included-column ul li:last-child {
    border-bottom: none;
}

/* =========================
   AUDIENCE SECTION
   ========================= */

.audience-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.audience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.for-you, .not-for-you {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.for-you h3 {
    color: var(--gold);
    margin-bottom: 20px;
}

.not-for-you h3 {
    color: var(--stone);
    margin-bottom: 20px;
}

.audience-content ul li {
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* =========================
   INVESTMENT SECTION
   ========================= */

.investment-card {
    background: var(--white);
    padding: 60px 40px;
    text-align: center;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
    transition: var(--transition);
}

.investment-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-dark);
}

.price {
    font-size: 4rem;
    color: var(--gold);
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
}

.price-detail {
    font-size: 1rem;
    color: var(--stone);
}

.deposit-info {
    margin: 20px 0;
    font-size: 0.95rem;
}

.places-note {
    color: var(--gold);
    font-weight: 600;
    margin: 20px 0;
    letter-spacing: 1px;
}

.investment-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* =========================
   TRAVEL SECTION
   ========================= */

.travel-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.travel-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.travel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.travel-card h3 {
    color: var(--gold);
    margin-bottom: 15px;
}

.travel-note {
    text-align: center;
    color: var(--stone);
    font-size: 0.9rem;
    margin-top: 30px;
}

/* =========================
   FINAL CTA SECTION
   ========================= */

#final-cta {
    position: relative;
    text-align: center;
    color: var(--white);
    background: url('../assets/images/location/carnac-stones.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

#final-cta .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

#final-cta .container {
    position: relative;
    z-index: 2;
}

#final-cta h2, 
#final-cta h3 {
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

#final-cta h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0 30px;
}

.contact-info {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.contact-info a {
    color: var(--gold);
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--gold-hover);
}

/* =========================
   FOOTER
   ========================= */

#footer {
    position: relative;
    background: url('../assets/images/location/carnac-stones.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 80px 0 30px;
    overflow: hidden;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    text-align: left;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--gold);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--gold-hover);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    margin-bottom: 0;
}

.footer-credits {
    margin-top: 8px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
}

/* =========================
   NAVBAR STICKY STYLES
   ========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 5%;
    background: transparent;
}

header.scrolled {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 5%;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
}

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

nav a {
    color: var(--white);
    margin: 0 18px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

nav a:hover,
nav a.active {
    color: var(--gold);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}