html {
    scroll-behavior: smooth;
}

:root {
    /* Color Palette */
    --color-blanca: #F8F7F3;
    --color-menta: #97ABA5;
    --color-rosa: #EACBCA;
    --color-arena: #CEB8AD;
    --color-negro: #122212;
    --color-oro: #D0B574;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

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

body {
    background-color: var(--color-blanca);
    color: var(--color-negro);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(248, 247, 243, 0.9);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logo-symbol {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-oro);
    font-size: 1.8rem;
    margin-right: 0.2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.main-nav a {
    position: relative;
    padding-bottom: 5px;
    font-weight: 500;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-menta);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.main-nav a:hover {
    color: var(--color-negro);
    /* Ensure text stays dark/sharp */
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Menu Text Bounce Effect */
@keyframes textJump {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

.main-nav a:hover {
    color: var(--color-negro);
    display: inline-block;
    /* Required for transform to work */
    animation: textJump 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    /* Hero Banner Background */
    background-image: linear-gradient(rgba(248, 247, 243, 0.85), rgba(248, 247, 243, 0.85)), url('assets/hero-banner.png');
    background-size: cover;
    background-position: center 0px;
    /* Start at 0 for JS parallax */
    /* attachment fixed removed to avoid conflict with JS parallax */
}

.subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-negro);
    /* Darkened for better contrast on image */
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    /* Entrance Animation Only */
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards 0.2s;
}

/* Shine keyframe removed as it's no longer used */

.hero-section h1 {
    font-size: 5rem;
    /* Larger base for laptops */
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--color-negro);
    transition: font-size 0.3s ease;
    /* Smooth resizing */
}

/* Large Monitors / Desktops */
@media (min-width: 1440px) {
    .hero-section h1 {
        font-size: 6.5rem;
        /* Massive impact on big screens */
    }

    .subtitle {
        font-size: 1.1rem;
    }
}

.accent-text {
    font-style: italic;
    color: var(--color-menta);
}

/* Hero Visuals */
.hero-visuals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    /* Optional: Hide shapes if they clutter the image, or keep them for extra depth */
    opacity: 0.4;
}

/* ... existing floating shapes code ... */

/* Centered Titles */
h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2.5rem;
    color: var(--color-menta);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--color-rosa);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-menta);
    bottom: 10%;
    right: 5%;
    animation-delay: 5s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* Text Entrance Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content .subtitle {
    opacity: 0;
    /* start hidden */
    animation: fadeUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    animation-delay: 0.2s;
}

.hero-content h1 {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    animation-delay: 0.4s;
}

.hero-description {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    animation-delay: 0.6s;
}

/* Scroll Animations */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

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

/* Enhanced Service Card */
.service-card {
    padding: var(--spacing-md);
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-menta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

/* Portfolio Section */
.portfolio-section {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(to bottom, var(--color-blanca), #fff);
}

.portfolio-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 3rem;
    font-style: italic;
    color: var(--color-negro);
}

/* Footer */
footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: var(--spacing-lg);
    background-color: #faf9f6;
}

footer h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--color-arena);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-email {
    font-size: 1.2rem;
    color: var(--color-negro);
    border-bottom: 1px solid var(--color-menta);
    padding-bottom: 2px;
}

.footer-email:hover {
    color: var(--color-menta);
}

.footer-credits {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.8rem;
    color: var(--color-negro);
    opacity: 0.6;
}

.made-by {
    margin-top: 0.5rem;
    font-style: italic;
    font-family: var(--font-heading);
}

.amp {
    font-style: italic;
    color: var(--color-oro);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gallery-item {
    background-color: var(--color-arena);
    aspect-ratio: 4/5;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.gallery-item:nth-child(even) {
    transform: translateY(40px);
}

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

/* Contact Form Section */
.contact-section {
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: #fff;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-menta);
}

.elegant-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-arena);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-arena);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--color-blanca);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-menta);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(151, 171, 165, 0.1);
}

.submit-btn {
    display: inline-block;
    background-color: var(--color-menta);
    color: #fff;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: var(--spacing-sm);
}

.submit-btn:hover {
    background-color: var(--color-negro);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Vertical Features (Quienes Somos) */
.vertical-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

.v-feature {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    /* Softer shadow start */
    transition: all 0.4s ease;
    border-left: 5px solid transparent;
    /* Prepare for border hover */
    position: relative;
    overflow: hidden;
}

/* Specific Accent Colors */
.v-feature:nth-child(1) {
    border-left-color: var(--color-menta);
}

.v-feature:nth-child(2) {
    border-left-color: var(--color-oro);
}

.v-feature:nth-child(3) {
    border-left-color: var(--color-rosa);
}

/* Hover Effects */
.v-feature:hover {
    transform: translateX(10px) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.v-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    /* Larger and more editorial */
    font-style: italic;
    font-weight: 700;
    margin-right: 2rem;
    opacity: 0.2;
    /* Subtle watermark feel */
    transition: opacity 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.v-feature:nth-child(1) .v-number {
    color: var(--color-menta);
}

.v-feature:nth-child(2) .v-number {
    color: var(--color-oro);
}

.v-feature:nth-child(3) .v-number {
    color: var(--color-rosa);
}

.v-feature:hover .v-number {
    opacity: 1;
    /* Pop on hover */
}

/* Vertical Features (Quienes Somos) bottom spacing */
.vertical-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
    /* Ensure the last card doesn't hug the bottom */
    margin-bottom: 3rem;
}

.v-text h3 {
    color: var(--color-negro);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.v-text p {
    color: #555;
    font-size: 1.05rem;
}

/* Services List Separate Section */
.services-list-section {
    padding: 6rem 0;
    /* Increase top padding drastically to separate */
    /* Warm Cream / Ivory tone - Elegant and not grey */
    background-color: #faf9f5;
    border-top: 1px solid rgba(208, 181, 116, 0.1);
    /* Subtle Gold border */
    border-bottom: 1px solid rgba(208, 181, 116, 0.1);
}

/* refined services grid (horizontal grid restored) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: var(--spacing-md);
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ... existing service-card stuff/pseudo-elements ... */

/* Testimonials Section (High-End) */
.testimonials-section {
    padding: var(--spacing-lg) 0;
    background-color: #F2F0E9;
    /* Warm grey/beige for contrast against white contact section */
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.testimonial-card {
    background: #fff;
    padding: 3rem 2rem 2rem 2rem;
    /* Top padding for quote icon */
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Specific Accent Borders/Colors via nth-child */
.testimonial-card:nth-child(1) {
    border-bottom: 3px solid var(--color-menta);
}

.testimonial-card:nth-child(2) {
    border-bottom: 3px solid var(--color-oro);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

/* Giant Quote Icon */
.testimonial-card::before {
    content: '“';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-arena);
    line-height: 1;
    opacity: 0.3;
}

.testimonial-card p {
    font-family: var(--font-heading);
    /* Serif for the quote body */
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-negro);
    font-weight: 700;
}

/* HIGH-END PROCESS SECTION */
.process-section {
    padding: var(--spacing-lg) 0;
    background-color: rgba(151, 171, 165, 0.1);
    /* Soft Mint tint for contrast */
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 4rem auto 0;
    /* Add top margin for line space */
    position: relative;
    padding: 0 2rem;
}

/* Connector Line */
.process-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    /* Aligns with circle center */
    left: 10%;
    width: 80%;
    height: 1px;
    background: var(--color-arena);
    z-index: 0;
    opacity: 0.5;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    /* Above line */
    transition: transform 0.4s ease;
}

.step:hover {
    transform: translateY(-10px);
}

.step-icon {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-negro);
    width: 100px;
    height: 100px;
    line-height: 95px;
    /* Vertically center text */
    border: 1px solid var(--color-oro);
    background-color: #fff;
    /* Cover the line */
    border-radius: 50%;
    margin: 0 auto 2rem auto;
    display: block;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 1);
    /* Fake padding around circle to break line visually */
    transition: all 0.4s ease;
}

.step:hover .step-icon {
    background-color: var(--color-menta);
    color: #fff;
    border-color: var(--color-menta);
    box-shadow: 0 10px 20px rgba(151, 171, 165, 0.3);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Mobile Adjustments for Process */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }

    .process-steps::before {
        display: none;
        /* Hide horizontal line on mobile */
    }

    .step-icon {
        box-shadow: none;
        width: 80px;
        height: 80px;
        line-height: 80px;
        margin-bottom: 1rem;
    }
}

/* Mobile Menu & Responsiveness */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-negro);
}

/* Tablet / Small Laptop Breakpoint */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 4rem;
        /* Step down from 5rem */
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem 1.5rem;
    }

    .nav-toggle {
        display: block;
        z-index: 2000;
        position: relative;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        padding-top: 5rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
        display: block;
        /* ensure it's block to hold layout */
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
        /* Reduced slightly to prevent overflow */
        word-wrap: break-word;
        /* Ensure long words break */
        padding: 0 1rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
        /* Consistent gap */
    }

    /* Reset the stagger effect on mobile so spacing is even */
    .gallery-item:nth-child(even) {
        transform: none;
    }

    .process-steps {
        align-items: center;
        /* Center the flex items column */
    }

    .step {
        /* Remove min-width constraints that might force left align if container is small */
        width: 100%;
        max-width: 300px;
        /* Constrain width for nice centering */
        padding: 1rem;
    }

    .vertical-features {
        padding: 0 1rem;
    }

    .v-feature {
        flex-direction: column;
        text-align: center;
    }

    .v-number {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    /* Mobile Polish & Centering */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        width: 100%;
        /* Ensure container respects parent width */
        overflow-x: hidden;
        /* Prevent horizontal overflow */
    }

    .about-content,
    .hero-content,
    .service-card,
    .v-feature,
    .contact-section h2,
    .contact-cta,
    .process-steps {
        text-align: center !important;
    }

    .logo {
        font-size: 1.2rem;
        /* Slightly smaller logo on mobile to prevent wrapping */
    }

    section {
        padding: 3rem 0;
        /* consistent vertical spacing */
    }
}