/*
Theme Name: Ambrosia Premium
Theme URI: https://bros.es
Author: Ambrosia Inmobiliaria
Author URI: https://bros.es
Description: Tema exclusivo para broker inmobiliario off-market en Madrid. Diseño editorial, minimalista y premium.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ambrosia
*/

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0a;
    --color-bg-alt: #111111;
    --color-text: #f5f5f0;
    --color-text-muted: #888888;
    --color-accent: #c9a962;
    --color-accent-light: #e0c987;
    --color-border: #2a2a2a;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
}

.text-accent {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-text-muted);
}

/* === LAYOUT === */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* === HEADER / HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(201, 169, 98, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 0.5s forwards;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 0.8s forwards;
}

.hero-title span {
    display: block;
    font-size: 0.4em;
    font-family: var(--font-body);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 1.1s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s var(--transition-smooth);
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 1.4s forwards;
}

.hero-cta:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.hero-cta svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--transition-smooth);
}

.hero-cta:hover svg {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s var(--transition-smooth) 2s forwards;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s infinite;
}

/* === NAVIGATION === */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s var(--transition-smooth);
    background: transparent;
}

.main-nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--color-border);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.nav-logo span {
    color: var(--color-text);
    font-weight: 300;
}

.nav-contact {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.nav-contact:hover {
    color: var(--color-accent);
}

/* === SECTIONS === */
section {
    padding: 8rem 0;
    position: relative;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 2rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
    max-width: 700px;
}

/* === PHILOSOPHY SECTION === */
.philosophy {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.philosophy-text p {
    margin-bottom: 1.5rem;
}

.philosophy-text strong {
    color: var(--color-text);
    font-weight: 400;
}

.philosophy-visual {
    position: relative;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.philosophy-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            var(--color-border) 49px,
            var(--color-border) 50px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 49px,
            var(--color-border) 49px,
            var(--color-border) 50px
        );
    opacity: 0.3;
}

.philosophy-visual-content {
    position: absolute;
    inset: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.philosophy-number {
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
}

.philosophy-word {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* === BROKER SECTION === */
.broker-section {
    background: var(--color-bg);
}

.broker-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.broker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.broker-card {
    padding: 3rem 2rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.broker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition-smooth);
}

.broker-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.broker-card:hover::before {
    transform: scaleX(1);
}

.broker-card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.broker-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.broker-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === EXCLUSIVE SECTION === */
.exclusive {
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.exclusive::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.exclusive-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.exclusive-quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 2rem;
    font-style: italic;
}

.exclusive-quote::before {
    content: '"';
    color: var(--color-accent);
    font-size: 4rem;
    line-height: 0;
    vertical-align: -2rem;
    margin-right: 0.5rem;
}

.exclusive-text {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* === CONTACT SECTION === */
.contact-section {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.contact-cta {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: var(--color-accent);
    color: var(--color-bg);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.4s var(--transition-smooth);
    margin-bottom: 3rem;
}

.contact-cta:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(201, 169, 98, 0.2);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.contact-item-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.contact-item-value {
    font-size: 1.1rem;
    color: var(--color-text);
    transition: color 0.3s;
}

.contact-item-value:hover {
    color: var(--color-accent);
}

/* === FOOTER === */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition-smooth);
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

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

    .main-nav {
        padding: 1rem 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* === CUSTOM CURSOR (opcional, desktop) === */
@media (pointer: fine) {
    body {
        cursor: default;
    }

    a, button {
        cursor: pointer;
    }
}
