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

:root {
    --dune: #2f2c2b;
    --cameo: #d4b59f;
    --russett: #7e6258;
    --kabul: #5b4542;
    --bali-hai: #90a0b7;
    --manatee: #838ba5;
    --shuttle-gray: #545e70;
    --gun-powder: #414657;
    --nevada: #5a7078;
    --river-bed: #47565a;
    
    --primary-color: var(--dune);
    --secondary-color: var(--cameo);
    --accent-color: var(--russett);
    --text-color: var(--gun-powder);
    --light-text: var(--manatee);
    --light-bg: #f7f5f3;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--dune) 0%, var(--gun-powder) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    font-weight: 400;
}

b {
    color: var(--secondary-color);
}

a {
    color: var(--secondary-color);
    transition: color 0.5s ease;
}

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

/* Header */
.header {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(47, 44, 43, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 5%;
    width: 100vw;
    height: 80px;
}

.logo {
    width: 60px;
    height: auto;
    position: absolute;
    left: 5%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 5%;
    z-index: 1001;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(47, 44, 43, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 2rem 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 1rem 0;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 0 5%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(212,175,55,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(212,175,55,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(212,175,55,0.1)"/><circle cx="70" cy="80" r="2.5" fill="rgba(212,175,55,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(360deg); }
}

.hero-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 3rem;
    z-index: 2;
    position: relative;
}

.hero-text {
    flex: 1;
    max-width: 60%;
}

.hero-image {
    flex: 0 0 35%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    scale: 1.2;
}

.hero-image img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(10px 20px rgba(0, 0, 0, 0.3));
    animation: infiniteBlur 4s ease-in-out infinite alternate;
    transition: filter 0.3s ease;
}

/* Efecto de degradado blur en el bottom */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask: linear-gradient(to bottom, black 70%, transparent 100%);
}

@keyframes subtleBottomBlur {
    0% {
        backdrop-filter: blur(0px);
        opacity: 0.8;
    }
    100% {
        backdrop-filter: blur(1px);
        opacity: 1;
    }
}

.hero-quote {
    font-family: 'Meie Script', serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-style: normal;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp 1s ease 0.5s forwards;
    color: var(--secondary-color);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp 1s ease 1s forwards;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideUp 1s ease 1.5s forwards;
    box-shadow: 0 4px 20px rgba(212, 181, 159, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 181, 159, 0.4);
    background: var(--russett);
    color: var(--white);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--secondary-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    justify-items: center;
}

.top-row-grid {
    grid-column: span 2;
}

.bottom-left-row-grid {
    grid-column: 2 / span 2;
}

.bottom-right-row-grid {
    grid-column: 4 / span 2;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(47, 44, 43, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 181, 159, 0.2);
    width: 100%;
    max-width: 320px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(47, 44, 43, 0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text);
}

/* About Section */
.about {
    background: var(--light-bg);
}

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

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

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

.about-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(47, 44, 43, 0.08);
    border: 1px solid rgba(212, 181, 159, 0.2);
    transition: all 0.3s ease;
}

.about-stats .stat-card:nth-child(1):hover {
    transform: translate(-15px, -15px);
}

.about-stats .stat-card:nth-child(2):hover {
    transform: translate(15px, -15px);
}

.about-stats .stat-card:nth-child(3):hover {
    transform: translate(-15px, 15px);
}

.about-stats .stat-card:nth-child(4):hover {
    transform: translate(15px, 15px);
}

.about-stats .stat-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    background: var(--light-bg);
    z-index: 1;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.95rem;
    color: var(--light-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.result-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 5px 20px rgba(47, 44, 43, 0.08);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(47, 44, 43, 0.15);
}

.results-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
}

.result-item h3 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.result-item p {
    color: var(--light-text);
    line-height: 1.6;
    text-align: center;
}

.sectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.sector-tag {
    background: rgba(212, 181, 159, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--secondary-color);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.sector-tag:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Quote section */
blockquote {
    font-style: italic;
    font-size: 1.1rem; 
    border-left: 3px solid var(--secondary-color); 
    color: var(--secondary-color);
    padding-left: 1rem; 
    margin-top: 2rem; 
    background-color: var(--primary-color); 
    border-radius: 10px 10px 0px 0px;
    padding: 20px;
    width: fit-content;
    max-width: 90%;

    small {
        color: var(--light-text);
    }
}

/* Contact Section */
.contact {
    background: var(--primary-color);
    color: var(--white);
}

.contact-title {
    text-align: left;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    letter-spacing: -0.5px;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0%;
    width: 80px;
    height: 2px;
    background: var(--secondary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    font-size: 1.1rem;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1.2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item strong {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(212, 175, 55, 0.3);
    z-index: 1001;
}

.scroll-progress {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* Highlight effect */
.highlightOnScroll {
    position: relative;
    display: inline-block;
    color: inherit;
}

.highlightOnScroll::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;
    background-color: var(--secondary-color);
    width: 0%;
    transition: width 0.2s ease-out;
}

.highlight-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--secondary-color);
    z-index: -1;
    transition: width 0.2s ease-out;
    border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo {
        width: 50px;
    }

    .nav {
        height: 70px;
    }

    .hero {
        min-height: 100vh;
        padding: 0 3%;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        max-width: 100%;
    }

    .hero-text {
        max-width: 100%;
        order: 2;
    }

    .hero-image {
        order: 1;
        flex: 0 0 auto;
        height: 40vh;
        min-height: 300px;
    }

    .hero-quote {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 3rem 3%;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-stats .stat-card:hover {
        transform: translateY(-8px);
    }

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

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sectors {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .contact {
        padding: 3rem 3%;
    }

    .contact-info h3 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 35vh;
        min-height: 250px;
    }

    .hero-quote {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .result-item {
        padding: 1.5rem;
    }

    .service-card {
        margin-bottom: 20px;
    }

    .services-grid {
        display: block;
    }

    .top-row-grid {
        grid-column: none;
    }

    .bottom-left-row-grid {
        grid-column: none;
    }

    .bottom-right-row-grid {
        grid-column: none;
    }

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

    .section.contact {
        flex-direction: column;
        align-items: center;

        #contacto {
            margin-bottom: 5em;
        }
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-info h3 {
        text-align: center;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }

    .hero-text {
        max-width: 55%;
    }

    .hero-image {
        flex: 0 0 40%;
    }

    .top-row-grid {
        grid-column: none;
    }

    .bottom-left-row-grid {
        grid-column: none;
    }

    .bottom-right-row-grid {
        grid-column: none;
    }

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