/* ============================================
   Refugio de Pineta — Premium Dark Luxury
   Color Palette: Plum + Amber/Gold
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --plum-900: #1a0a1e;
    --plum-800: #2d1233;
    --plum-700: #3d1a45;
    --plum-600: #5c2d6b;
    --plum-500: #7b3f8e;
    --plum-400: #9b59b6;
    --plum-300: #c39bd3;
    --plum-200: #e8d5f5;
    --plum-100: #f5eefb;
    
    --amber-600: #b8860b;
    --amber-500: #c8a45a;
    --amber-400: #d4af6e;
    --amber-300: #e8c97a;
    --amber-200: #f0db9a;
    --amber-100: #faf0d0;
    
    --dark-bg: #0d0612;
    --dark-surface: #1a0a1e;
    --dark-card: #2d1233;
    --dark-border: rgba(200, 164, 90, 0.15);
    
    --text-primary: #f5eefb;
    --text-secondary: rgba(245, 238, 251, 0.7);
    --text-muted: rgba(245, 238, 251, 0.45);
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', sans-serif;
    
    --gold-gradient: linear-gradient(135deg, #b8860b 0%, #c8a45a 50%, #e8c97a 100%);
    --plum-gradient: linear-gradient(135deg, #1a0a1e 0%, #2d1233 50%, #3d1a45 100%);
    
    --shadow-gold: 0 4px 30px rgba(200, 164, 90, 0.15);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

.text-gold {
    color: var(--amber-500);
}

.text-plum-light {
    color: var(--plum-300);
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--amber-500);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.9;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn--gold {
    background: var(--gold-gradient);
    color: var(--plum-900);
    box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(200, 164, 90, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(200, 164, 90, 0.4);
}

.btn--outline:hover {
    border-color: var(--amber-500);
    color: var(--amber-500);
    background: rgba(200, 164, 90, 0.05);
}

.btn--full {
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 6, 18, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-logo:hover .logo-text {
    color: var(--amber-500);
}

.logo-text {
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber-500);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--amber-500);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--accent {
    color: var(--amber-500);
}

.nav-link--accent::after {
    background: var(--amber-500);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 10, 30, 0.4) 0%,
        rgba(45, 18, 51, 0.6) 40%,
        rgba(26, 10, 30, 0.85) 80%,
        rgba(13, 6, 18, 1) 100%
    );
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(13, 6, 18, 0.3) 70%,
        rgba(13, 6, 18, 0.8) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero-title .text-gold {
    color: var(--amber-500);
}

.hero-title .text-plum-light {
    color: var(--plum-300);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 1s ease 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeUp 1s ease 1.2s forwards;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: rgba(200, 164, 90, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line-fill {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--amber-500);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* --- Features Bar --- */
.features-bar {
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
    padding: 48px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 164, 90, 0.05);
}

.feature-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Sections --- */
.section {
    padding: 120px 0;
}

.section--dark {
    background: var(--dark-bg);
}

.section--plum {
    background: var(--plum-gradient);
}

.section--plum-light {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--plum-900) 100%);
}

.section-header {
    margin-bottom: 72px;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--amber-500);
    border-radius: 8px;
    opacity: 0.3;
    z-index: 0;
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--plum-800);
    border: 1px solid var(--amber-500);
    border-radius: 8px;
    padding: 20px 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--amber-500);
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.about-content {
    padding: 20px 0;
}

.about-features {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* --- Rooms --- */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.room-card {
    background: rgba(45, 18, 51, 0.5);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 164, 90, 0.3);
    box-shadow: var(--shadow-gold);
}

.room-card--featured {
    border-color: rgba(200, 164, 90, 0.3);
    position: relative;
}

.room-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gold-gradient);
    color: var(--plum-900);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 2;
}

.room-image {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.room-content {
    padding: 28px;
}

.room-name {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.room-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.room-amenities {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.room-amenities li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-amenities li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--amber-500);
    border-radius: 50%;
    flex-shrink: 0;
}

.rooms-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.link-gold {
    color: var(--amber-500);
    border-bottom: 1px solid rgba(200, 164, 90, 0.3);
    transition: var(--transition);
}

.link-gold:hover {
    border-color: var(--amber-500);
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item--large {
    grid-column: span 7;
    grid-row: span 1;
}

.gallery-item--tall {
    grid-column: span 5;
    grid-row: span 2;
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 6, 18, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.3rem;
    color: var(--amber-500);
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Quote --- */
.quote-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.quote-bg {
    position: absolute;
    inset: 0;
}

.quote-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 10, 30, 0.92) 0%,
        rgba(45, 18, 51, 0.88) 100%
    );
}

.quote-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon {
    margin-bottom: 32px;
}

.quote-content blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.quote-attr {
    font-size: 0.85rem;
    color: var(--amber-500);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 164, 90, 0.05);
}

.contact-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-item a {
    color: var(--amber-500);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--amber-400);
}

/* --- Form --- */
.contact-form-wrapper {
    background: rgba(45, 18, 51, 0.5);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: rgba(13, 6, 18, 0.6);
    border: 1px solid var(--dark-border);
    border-radius: 4px;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    gap: 16px;
}

.form-success svg {
    color: var(--amber-500);
}

.form-success p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Map --- */
.map-section {
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
}

.map-container {
    height: 400px;
    filter: saturate(0.3) brightness(0.7) contrast(1.2);
    transition: filter 0.4s ease;
}

.map-container:hover {
    filter: saturate(0.5) brightness(0.8) contrast(1.1);
}

/* --- Footer --- */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--dark-border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-500);
    margin-bottom: 20px;
}

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

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--amber-500);
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .gallery-item--large {
        grid-column: span 2;
    }
    
    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 280px;
    }
    
    .contact-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(13, 6, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--dark-border);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image {
        height: 400px;
    }
    
    .about-badge {
        right: 10px;
        bottom: -20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item--large {
        grid-column: span 1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
    }
    
    .features-bar {
        padding: 32px 0;
    }
}
