/* ========================================
   ALBERGUE LA ESPIRAL — ESTILOS
   Color palette: Emerald + Cream + Warm Gold
   Typography: Cormorant Garamond + Inter
======================================== */

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

:root {
    --emerald-deep:    #064e3b;
    --emerald:         #065f46;
    --emerald-mid:     #047857;
    --emerald-light:   #059669;
    --cream:           #faf6f0;
    --cream-warm:      #f5efe6;
    --cream-dark:      #e8dfd3;
    --gold:            #b8860b;
    --gold-light:      #d4a574;
    --text-dark:       #1a1a1a;
    --text-mid:        #3d3d3d;
    --text-light:      #6b6b6b;
    --white:           #ffffff;
    --serif:           'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius:          8px;
    --radius-lg:       16px;
    --shadow-sm:       0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:       0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg:       0 10px 40px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.06);
    --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

/* ── Typography ── */
.serif-italic {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
}

.label {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-mid);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--emerald-deep);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--emerald);
    color: var(--white);
    border-color: var(--emerald);
}

.btn-primary:hover {
    background: var(--emerald-deep);
    border-color: var(--emerald-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--emerald-deep);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.nav-inner {
    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(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
}

.nav.scrolled .nav-logo {
    color: var(--emerald-deep);
}

.nav-logo-icon {
    color: var(--gold-light);
}

.nav.scrolled .nav-logo-icon {
    color: var(--emerald-mid);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-light);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--white);
}

.nav.scrolled .nav-links a {
    color: var(--text-mid);
}

.nav.scrolled .nav-links a:hover {
    color: var(--emerald-deep);
}

.nav.scrolled .nav-links a::after {
    background: var(--emerald-mid);
}

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

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav.scrolled .nav-toggle-bar {
    background: var(--emerald-deep);
}

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

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

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(6, 95, 70, 0.85) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(4, 120, 87, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(184, 134, 11, 0.3) 0%, transparent 50%),
        linear-gradient(160deg, #022c22 0%, #064e3b 30%, #047857 60%, #b8860b 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('https://picsum.photos/seed/fisterra-hero/1920/1080') center/cover no-repeat;
    opacity: 0.2;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 24px;
    max-width: 720px;
}

.hero-eyebrow {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    flex-wrap: wrap;
}

.hero-meta a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.hero-meta a:hover {
    color: var(--white);
}

.hero-meta-divider {
    opacity: 0.4;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Sections ── */
.section {
    padding: 100px 0;
}

/* ── Sobre ── */
.sobre {
    background: var(--cream);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.sobre-text p {
    color: var(--text-mid);
    margin-bottom: 20px;
    font-size: 1.02rem;
}

.sobre-text p:last-child {
    margin-bottom: 0;
}

.sobre-text em {
    font-family: var(--serif);
    font-style: italic;
    color: var(--emerald);
}

.sobre-visual {
    position: relative;
}

.sobre-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.sobre-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sobre-img-float {
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}

.sobre-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Servicios ── */
.servicios {
    background: var(--cream-warm);
}

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

.servicio-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.servicio-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 20px;
}

.servicio-card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-deep);
    margin-bottom: 10px;
}

.servicio-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ── Entorno ── */
.entorno {
    background: var(--cream);
}

.entorno-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.entorno-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.entorno-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.entorno-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: var(--white);
}

.entorno-caption h4 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.entorno-caption p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.entorno-item--large {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 420px;
}

.entorno-item:not(.entorno-item--large) {
    min-height: 200px;
}

/* ── Quote ── */
.quote-section {
    background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 50%, var(--emerald-mid) 100%);
    padding: 80px 0;
    text-align: center;
}

.quote-section blockquote {
    max-width: 760px;
    margin: 0 auto;
}

.quote-section svg {
    color: var(--gold-light);
    margin-bottom: 24px;
}

.quote-section p {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-style: italic;
    font-weight: 400;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 20px;
}

.quote-section cite {
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
}

/* ── Contacto ── */
.contacto {
    background: var(--cream-warm);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contacto-datos {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contacto-dato {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contacto-dato-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contacto-dato strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--emerald-deep);
    margin-bottom: 4px;
}

.contacto-dato p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.contacto-dato a {
    color: var(--emerald-mid);
    transition: var(--transition);
}

.contacto-dato a:hover {
    color: var(--emerald-deep);
    text-decoration: underline;
}

/* Form */
.contacto-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contacto-form h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--emerald-deep);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream);
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-mid);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1);
}

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

.form-notice {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 16px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin: 0 auto 20px;
    color: var(--emerald-mid);
}

.form-success h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--emerald-deep);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ── Map ── */
.map-section {
    height: 360px;
    filter: saturate(0.6) contrast(1.05);
    transition: filter 0.5s ease;
}

.map-section:hover {
    filter: saturate(0.9) contrast(1.05);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Footer ── */
.footer {
    background: var(--emerald-deep);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

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

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

.footer-logo-icon {
    color: var(--gold-light);
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

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

.footer-contact a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    opacity: 0.6;
}

/* ── Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
    .sobre-grid {
        gap: 48px;
    }

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

    .entorno-item--large {
        grid-column: span 8;
    }

    .entorno-item:not(.entorno-item--large) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        color: var(--text-mid) !important;
        font-size: 1rem;
    }

    .nav-links a:hover {
        color: var(--emerald-deep) !important;
    }

    .nav-links a::after {
        background: var(--emerald-mid) !important;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

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

    .sobre-img-float {
        right: 0;
        bottom: -24px;
    }

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

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

    .entorno-item--large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 280px;
    }

    .entorno-item:not(.entorno-item--large) {
        grid-column: span 1;
        min-height: 180px;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contacto-form-wrap {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

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

    .entorno-item--large,
    .entorno-item:not(.entorno-item--large) {
        grid-column: span 1;
        min-height: 220px;
    }
}
