/* Global Reset & Base Styles */
:root {
    --color-black: #050508;
    /* Updated to match section backgrounds */
    --color-gold: #c9a55c;
    --color-cream: #f5f0e8;
    --color-blue: #1a1a3e;
    --bg-dark: #050508;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: var(--bg-dark);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s forwards;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 1.5s forwards;
    opacity: 0;
}

.fade-in-left {
    animation: slideInLeft 1s forwards;
    opacity: 0;
}

.fade-in-right {
    animation: slideInRight 1s forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--color-gold);
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
    color: var(--color-cream);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, rgba(5, 5, 8, 0.9), rgba(5, 5, 8, 0));
    backdrop-filter: blur(5px);
    transition: background 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background: #050508;
    /* Solid black to match body */
    padding: 1rem 0;
    border-bottom: 1px solid rgba(201, 165, 92, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    /* Ensure padding on container if not already set globally */
}

/* Logo positioning standard flow */
.logo {
    display: flex;
    align-items: center;
    /* remove absolute positioning to prevent overlap */
}

/* Logo image transition for potential resize effects */
.logo img {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Updated Nav Links Typography */
.nav-links a.nav-item {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: #a5854c;
    /* Darker gold/bronze for text */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a.nav-item:hover {
    color: var(--color-gold);
}

/* Gold Ingot Button Style for "AGENDAR" and "CAJA DE HERRAMIENTAS" */
.btn-nav-gold,
.btn-gold-filled {
    background-color: #c9a55c;
    background-image: linear-gradient(to right, #7a5c1f 0%, #ffe08a 50%, #7a5c1f 100%);
    background-size: 200% auto;
    color: #0a0a0f !important;
    /* Force black text */
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    transition: all 0.5s ease;
    text-shadow: none;
    /* No shadow on small button text */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: inline-block;
    /* Ensure it works on anchors */
    text-decoration: none;
    /* Ensure no underline */
}

.btn-nav-gold:hover,
.btn-gold-filled:hover {
    background-position: right center;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 165, 92, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Hero BG */
    background-color: #050508;
    /* Hero BG */
    background-color: #050508;
    background-image: linear-gradient(to bottom, rgba(5, 5, 8, 0.3) 0%, rgba(5, 5, 8, 0.6) 70%, #050508 95%, #050508 100%), url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Removed tint to prevent color mismatch at bottom */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    background: linear-gradient(to right, #c9a55c, #f5f0e8, #c9a55c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero .subtitle {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-style: italic;
    color: rgba(245, 240, 232, 0.8);
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-black);
    font-weight: 600;
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-body);
    /* Ensure typography match */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    /* Match the gold button weight */
    font-size: 0.85rem;
    /* Match size if needed */
    border-radius: 4px;
    /* Round corners to match gold button */
}

.btn-outline:hover {
    background: var(--color-cream);
    color: var(--color-black);
}

/* Quote Separator */
.quote-separator {
    background-color: #050508;
    padding: 6rem 0;
    text-align: center;
}

.quote-separator h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-weight: 400;
}

.quote-separator p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-cream);
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Section */
.section.services {
    background: linear-gradient(to bottom, #050508 0%, #050508 30%, #16162a 60%, #050508 100%);
    padding: 10rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: var(--font-accent);
    font-size: 4rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -1px;
}

.section-header p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a5854c;
    opacity: 0.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.service-card {
    background: #050508;
    border: 1px solid rgba(201, 165, 92, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
    border-radius: 4px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(201, 165, 92, 0.4);
    /* Golden halo effect */
    border-color: rgba(201, 165, 92, 0.5);
}

.card-image-wrapper {
    height: 500px;
    /* Taller for immersive look */
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.8;
}

.service-card:hover .card-image {
    transform: scale(1.05);
    opacity: 1;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darker overlay for text readability */
    transition: background 0.3s;
}

.service-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.2);
    /* Lighten on hover */
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    text-align: left;
    background: linear-gradient(to top, #050508 10%, rgba(5, 5, 8, 0.8) 50%, transparent 100%);
}

.card-content h3 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-weight: 400;
}

.card-content p {
    font-size: 0.95rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.link-gold {
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    display: inline-block;
    transition: all 0.3s;
    border-bottom: 1px solid var(--color-gold);
    padding-bottom: 2px;
}

.link-gold:hover {
    color: var(--color-gold);
    border-bottom-color: transparent;
}

/* About Section */
.about {
    background-color: #202027;
    padding: 8rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    /* Slightly larger max-width */
    border-radius: 2px;
    display: block;
    /* Removed artistic effects for clean look */
}

.about-text h2 {
    font-family: var(--font-accent);
    /* Cormorant Garamond */
    font-size: 3.5rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-weight: 400;
}

.about-text p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #a0a0a0;
}

.special-link-gold {
    display: inline-block;
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.special-link-gold:hover {
    color: #fff;
    letter-spacing: 3px;
}

/* Alma Cards Section */
.alma-cards {
    background: linear-gradient(to bottom, #050508 0%, #16162a 50%, #050508 100%);
    padding: 10rem 0;
    text-align: center;
}

.alma-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #a5854c;
    /* Slightly darker/more bronze gold for subtitle */
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 500;
}

.alma-title {
    font-family: var(--font-accent);
    font-size: 4.5rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-weight: 400;
    font-style: normal;
    /* Ensure it's not forced italic if not needed, though Cormorant looks good either way. Image looks normal/Roman. */
    letter-spacing: -1px;
    line-height: 1;
}

.alma-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #888;
    max-width: 650px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.6;
}

.btn-gold-filled {
    background-color: #c9a55c;
    /* Fallback */
    background-image: linear-gradient(to right, #7a5c1f 0%, #ffe08a 50%, #7a5c1f 100%);
    background-size: 200% auto;
    color: #0a0a0f;
    padding: 1rem 3rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border-radius: 4px;
    /* Slightly rounded */
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: inline-block;
    position: relative;
    /* Iridescent/Chromatic Aberration Text Effect */
    text-shadow: 1px 0px 0px rgba(255, 0, 0, 0.4), -1px 0px 0px rgba(0, 255, 255, 0.4);
    transition: all 0.5s ease;
}

.btn-gold-filled:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 165, 92, 0.4);
    color: #000;
}

/* Footer */
.footer {
    background: #202027;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #a0a0a0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* Custom column widths */
    gap: 4rem;
    margin-bottom: 4rem;
    text-align: left;
    /* Align text to left */
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #888;
}

.footer h3 {
    font-size: 1.1rem;
    color: #c9a55c;
    /* Gold color */
    margin-bottom: 1.5rem;
    text-transform: capitalize;
    font-family: var(--font-heading);
}

.footer-services ul {
    list-style: none;
    padding: 0;
}

.footer-services li {
    margin-bottom: 0.8rem;
}

.footer-services a {
    color: #a0a0a0;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-services a:hover {
    color: var(--color-gold);
}

.footer-connect .social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-connect .social-icons a {
    font-size: 1.2rem;
    color: #a0a0a0;
    transition: color 0.3s;
}

.footer-connect .social-icons a:hover {
    color: var(--color-gold);
}

.special-link {
    color: var(--color-gold);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: letter-spacing 0.3s;
}

.special-link:hover {
    letter-spacing: 1px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Tablet/Mobile Responsive */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image img {
        max-width: 100%;
        box-shadow: 10px 10px 0 var(--color-gold);
        margin-bottom: 2rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(5, 5, 8, 0.98);
        padding-top: 6rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        backdrop-filter: blur(10px);
        box-shadow: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 1.5rem 0;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a.nav-item {
        font-size: 1.2rem;
        display: block;
    }

    .btn-nav-gold {
        margin-top: 2rem;
    }

    /* Simplified mobile for now */
    .services-grid {
        padding: 0 1rem;
    }
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

/* Service Page Specifics */
.service-hero {
    height: 80vh;
    background-color: #050508;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 0;
}

.service-hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    background: linear-gradient(to right, #c9a55c, #f5f0e8, #c9a55c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

.service-hero .subtitle {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-style: italic;
    color: rgba(245, 240, 232, 0.8);
    margin-bottom: 3rem;
}

.service-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.concept-title {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
}

.exploration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.exploration-item {
    text-align: left;
    padding: 2rem;
    border: 1px solid rgba(201, 165, 92, 0.2);
    border-radius: 8px;
    background: rgba(22, 22, 42, 0.3);
    transition: transform 0.3s;
}

.exploration-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.exploration-item h4 {
    color: var(--color-gold);
    font-family: var(--font-accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}