@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --accent: #ffffff;
    --text-main: #ffffff;
    --text-dim: #606060;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Light Theme Utility */
.light-theme {
    background-color: #f9f6f2 !important;
    color: #1a1a1a !important;
}

.light-theme .service-title,
.light-theme h1,
.light-theme h2,
.light-theme h3 {
    color: #1a1a1a !important;
}

.light-theme .lorem {
    color: #666666 !important;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
}

html {
    scroll-behavior: smooth;
}

/* Nav Bar Refinement */
nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 28px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.nav-logo img {
    height: 50px;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
}

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

.nav-socials {
    display: none;
    /* Moved to hero footer */
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 10%;
    overflow: hidden;
    color: #fff;
    /* Smooth transition to next section: long gradient to black */
    background: linear-gradient(to bottom, transparent 40%, #0a0a0a);
}

#hero .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    /* Increased size to allow movement */
    height: 110vh;
    /* Increased size to allow movement */
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: -1;
    transform: translate(-5%, -5%);
    /* Center after scale */
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#hero .content {
    max-width: 750px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: absolute;
    left: 5%;
    bottom: 120px;
}

#hero .service-title {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-family: 'Inter', sans-serif;

    /* Reveal Animation */
    opacity: 0;
    transform: translateY(100px);
    clip-path: inset(0 0 100% 0);
    animation: proReveal 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.2s;
}

#hero .lorem {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    max-width: 500px;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.6;

    /* Reveal Animation */
    opacity: 0;
    transform: translateY(50px);
    clip-path: inset(0 0 100% 0);
    animation: proReveal 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes proReveal {
    0% {
        opacity: 0;
        transform: translateY(100px);
        clip-path: inset(0 0 100% 0);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }
}

.hero-footer {
    position: absolute;
    bottom: 40px;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.9rem;
}

.hero-socials {
    display: flex;
    gap: 20px;
}

.hero-socials a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.hero-socials a:hover {
    color: #96702A;
}

.hero-contact {
    display: flex;
    gap: 30px;
    text-align: right;
}

.hero-contact a {
    color: white;
    text-decoration: none;
}

/* Services Grid */
.transition-phrase {
    padding: 8rem 10%;
    background: #121212;
    /* Charcoal black */
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

/* Card scroll-reveal default: hidden */
/* Card reveal handled by .reveal.active in animations section below */
.service-card {
    padding: 50px 40px;
    background: var(--bg-card);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.4s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Stagger delays for each card */
/* Stagger delays removed - individual scroll reveal preferred */

.service-card:hover {
    background: #1a1a1a;
}

/* Number label top-right */
.service-card .card-number {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.15);
    font-family: 'Inter', sans-serif;
}

.service-card i {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 40px;
    display: block;
    opacity: 0.7;
}

.footer-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

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

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1;
    letter-spacing: -1px;
}

.service-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #ffffff;
}

.service-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dim);
    font-style: normal;
    line-height: 1.6;
}

/* Service Blocks */
#servicios {
    padding: 8rem 10%;
    background: #f9f6f2;
    /* Light creamy background */
    color: #1a1a1a;
}

/* Container Utility */
.container-wide {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 50px;
}

.section-header {
    text-align: left;
    margin-bottom: 5rem;
    width: 100%;
    padding: 0;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.section-header p {
    color: #666666;
    max-width: 600px;
    margin: 0;
    font-size: 1.1rem;
    padding-left: 0;
}

.dual-blocks {
    display: flex;
    gap: 8rem;
    /* Increased spacing for wide cards */
    justify-content: center;
    max-width: 1320px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.block {
    flex: 1;
    text-align: center;
    max-width: 580px;
    /* Much wider cards as requested */
    min-height: 700px;
    background: #ffffff;
    padding: 0;
    border-radius: 48px;
    /* Even more rounded and pro */
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.03);
    /* Softer, deeper shadow */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.block:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.block-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    width: 100%;
}

.block .btn-premium {
    margin-top: auto;
}

.block-image {
    width: 100%;
    height: 400px;
    margin-bottom: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

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

.block h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.btn-premium {
    display: inline-block;
    padding: 1rem 3rem;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    margin-top: auto;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-premium:hover {
    background: #333333;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Disclaimer Refinement */
.disclaimer {
    padding: 2rem 10% 3rem;
    text-align: center;
    background: transparent;
}

.disclaimer {
    margin-top: 4rem;
    text-align: center;
    background: transparent;
    padding: 2rem;
    border-top: 1px solid rgba(204, 158, 6, 0.2);
    border-bottom: 1px solid rgba(204, 158, 6, 0.2);
}

.disclaimer p {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #cc9e06;
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

#hero .subtitle {
    font-size: 1.6rem;
    font-weight: 200;
    max-width: 600px;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(40px);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#hero .subtitle.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Highlight Phrase Section */
.highlight-phrase {
    padding: 4rem 10%;
    background: #ffffff;
    /* Pure white */
    text-align: center;
}

.highlight-phrase h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #1a1a1a;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.2;
    font-style: italic;
    text-align: center;
}

.transition-phrase {
    padding: 8rem 10%;
    background: #000000;
    text-align: center;
}

.transition-phrase h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.05;
    font-style: normal;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Footer & Map Refinement */
footer {
    padding: 6rem 10%;
    background: #f9f6f2;
    color: #1a1a1a;
}

.footer-grid {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo-side {
    flex: 0 0 180px;
}

.footer-logo-side img {
    width: 100%;
    height: auto;
}

.footer-info {
    flex: 1;
    text-align: left;
    max-width: 400px;
}

.map-column {
    flex: 1.5;
    max-width: 500px;
}

.map-container {
    height: 300px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-socials a {
    color: #1a1a1a;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.footer-socials a i {
    color: inherit;
}

.footer-socials a:hover {
    color: #96702A !important;
    opacity: 1;
    transform: translateY(-3px);
}

/* CTA Section & Animated Button */
.cta-section {
    padding: 4rem 10%;
    background: #ffffff;
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    background: #96702A;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-button:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 15px 35px rgba(150, 112, 42, 0.3);
    background: #b38a3a;
}

.cta-button i {
    font-size: 1.8rem;
}

@keyframes shine {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 158, 6, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(204, 158, 6, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(204, 158, 6, 0);
    }
}

@media (max-width: 768px) {
    .cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* Floating Back Button */
.back-nav {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 1000;
    background: transparent;
    border: none;
    box-shadow: none;
}

.back-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #1a1a1a;
    text-decoration: none;
    transition: var(--transition);
}

.back-nav a i {
    font-size: 1.4rem;
}

.back-nav a span {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Scroll Reveal Animations */
/* Modern Scroll Animation for Cards */
.block {
    opacity: 0;
    transform: scale(0.9) translateY(60px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.reveal {
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    /* Slower reveal for a more premium feel */
}

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

/* Specific dramatic reveal for icon cards */
.service-card.reveal {
    transform: translateY(100px) scale(0.85);
    /* Comes from further down and smaller */
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    /* Snappier but still smooth */
}

.service-card.reveal.active {
    transform: translateY(0) scale(1);
}

footer h3 {
    color: #1a1a1a;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

footer .lorem {
    color: #444;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.map-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.hero-overlay {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dual-blocks {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 2.5rem 2rem;
        border-radius: 20px;
        top: 15px;
    }

    .back-nav {
        position: absolute !important;
        top: 20px !important;
        left: 20px !important;
        flex-direction: row !important;
        padding: 0 !important;
        width: auto !important;
        --display-logo: none;
    }

    .nav-links {
        margin: 1.5rem 0;
        gap: 20px;
    }

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

    .dual-blocks {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        padding-bottom: 3rem;
    }

    .container-wide {
        padding: 0 15px;
    }

    .block {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        border-radius: 32px;
    }

    .block-content {
        padding: 2.5rem 1.5rem;
    }

    .block-image {
        height: 280px;
    }

    .disclaimer {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }

    .disclaimer p {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
        line-height: 1.6;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}