:root {
    --primary-gold: #C5A059;
    --primary-gold-dark: #8E7341;
    --light-gold: #F1E4C1;
    --gold-gradient: linear-gradient(135deg, #F1E4C1 0%, #C5A059 45%, #8E7341 100%);
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-medium: 0.4s ease;
}

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

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Cinzel', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-image: linear-gradient(45deg,
            #25D366,
            #075E54,
            #25D366,
            #075E54);
    background-size: 400% 200%;
    background-position: 0% 0%;
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-position .8s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
}

.btn-primary:hover {
    background-position: 100% 0%;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    color: #fff;
}

.btn-primary.small {
    padding: 8px 16px;
    font-size: 0.75rem;
}

.btn-primary.large {
    padding: 16px 36px;
    font-size: 0.95rem;
}

.btn-secondary {
    display: inline-block;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 5px;
    transition: var(--transition-medium);
}

.btn-secondary:hover {
    color: #fff;
    border-color: #fff;
    padding-right: 10px;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-medium);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    justify-self: start;
}

.desktop-nav {
    justify-self: center;
}

.header-cta {
    justify-self: end;
}

.logo img {
    height: 70px;
    transition: var(--transition-medium);
}

header.scrolled .logo img {
    height: 45px;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.desktop-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.80rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-medium);
}

.desktop-nav a:not(.btn-primary):hover {
    color: var(--primary-gold);
}

/* --- Hero Section --- */
.hero {
    height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('../assets/foto%20de%20capa.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(10, 25, 30, 0.7) 0%, rgba(10, 10, 10, 0.95) 100%);
    z-index: 1;
    display: none;
    /* Hidden on desktop by default */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 100%;
    margin: 0;
    padding-left: 300px;
    text-align: left;
}

.hero-image-mobile {
    display: none;
}


.hero h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
    max-width: 800px;
}

.hero h1 span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero p.hero-subheadline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: 0;
    margin-right: 0;
    letter-spacing: 1px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-cta .cta-mini-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.scroll-indicator p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    opacity: 0.6;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
}

.mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background-color: var(--primary-gold);
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, 10px);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* --- Services Section --- */
.services {
    padding: 120px 0;
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

@media (min-width: 1300px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: var(--bg-card);
    padding: 35px 45px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-gold);
    transition: var(--transition-medium);
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-details {
    text-align: left;
    width: 100%;
}

.service-card p {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 12px;
    line-height: 1.4;
    position: relative;
    padding-left: 15px;
}

.service-card p::before {
    content: '•';
    color: var(--primary-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-card p strong {
    color: var(--primary-gold);
    font-weight: 400;
}

/* --- About Section --- */
.about {
    padding: 120px 0;
    background-color: #050505;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-content {
    flex: 1.5;
}

.about-content h2 {
    font-size: 3rem;
    line-height: 1.1;
}

.about-content h2 span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.about-content p {
    margin: 30px 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 300;
}

.about-image {
    flex: 1.5;
    position: relative;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.image-frame img {
    width: 100%;
    display: block;
    transition: var(--transition-slow);
}



/* --- Differentials --- */
.differentials {
    padding: 100px 0;
    background: linear-gradient(180deg, #292929 0%, #0a0a0a 100%);
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.diff-card {
    background-color: var(--bg-card);
    padding: 50px 30px;
    text-align: center;
    border-top: 2px solid var(--primary-gold);
    transition: var(--transition-slow);
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.diff-number {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: block;
    opacity: 0.9;
}

.diff-card h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.diff-card p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- FAQ --- */
.faq {
    padding: 120px 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    margin-bottom: 20px;
    padding: 25px 35px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
    border-radius: 8px;
    cursor: pointer;
}

.faq-item:hover {
    border-color: var(--primary-gold);
    transform: translateX(10px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-icon {
    font-size: 1.2rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding-top: 20px;
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--primary-gold);
    background-color: rgba(201, 162, 39, 0.05);
}

.faq-item.active .faq-icon {
    background-color: var(--primary-gold);
    color: #000;
    transform: rotate(135deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* --- CTA Final --- */
.cta-final {
    padding: 120px 0;
    text-align: center;
    background: url('../assets/hero-bg-civil-v2.png');
    background-size: cover;
    background-attachment: scroll;
    position: relative;
}

.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.cta-box {
    position: relative;
    z-index: 10;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-white);
}

/* --- Footer --- */
footer {
    padding: 80px 0 30px;
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 25px;
}

.footer-info p {
    font-size: 0.9rem;
    color: var(--text-white);
}

.footer-grid h3 {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-grid p {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.footer-grid i {
    color: var(--primary-gold);
    width: 25px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #ffffff;
    margin: 0;
}

.footer-dev {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    color: #ffffff;
}

.footer-dev img {
    height: 18px;
    filter: brightness(0.8);
    transition: var(--transition-medium);
}

.footer-dev img:hover {
    filter: brightness(1);
}

@media (max-width: 768px) {
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Floating WhatsApp --- */
.whatsapp-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.whatsapp-float {
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-medium);
    position: relative;
    z-index: 10;
}

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

.whatsapp-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    overflow: hidden;
    color: #333;
}

.whatsapp-wrapper:hover .whatsapp-popup,
.whatsapp-popup.scroll-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-header {
    background-color: #f0f2f5;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.popup-avatar {
    width: 45px;
    height: 45px;
    background-color: #000;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.popup-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #333;
    margin: 0;
}

.popup-info p {
    font-size: 0.75rem;
    color: #25d366;
    margin: 5px 0 0;
    font-weight: 600;
}

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #25d366;
    border-radius: 50%;
    margin-right: 5px;
}

.popup-body {
    padding: 20px;
    background-color: #fff;
}

.popup-body p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.popup-body strong {
    display: block;
    font-size: 0.9rem;
    color: #333;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero h1 span {
        font-size: 2.5rem;
    }

    .about-grid {
        flex-direction: column;
        gap: 50px;
    }

    .differentials-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header {
        display: none;
    }

    .header-container {
        display: none;
    }

    .logo {
        display: none;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .btn-primary .fab.fa-whatsapp {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hero-overlay {
        display: block;
    }

    .hero {
        padding-top: 0;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-image: none;
        /* Let the dedicated img handle it */
        background-color: #0a0a0a;
    }

    .hero-image-mobile {
        display: block;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        position: relative;
        z-index: 5;
        margin-top: 0;
    }

    .hero-image-mobile img {
        width: 100%;
        height: auto;
        display: block;
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    }

    .hero-content {
        padding-left: 0;
        padding: 0 20px 60px;
        text-align: center;
        margin-top: -350px;
        position: relative;
        z-index: 10;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 20px;
        text-align: center;
        max-width: 100%;
    }

    .hero h1 span {
        font-size: 1.6rem;
    }

    .hero p.hero-subheadline {
        font-size: 0.9rem;
        padding: 0;
        margin-bottom: 30px;
        text-align: center;
        max-width: 100%;
    }

    .hero-cta {
        align-items: center;
    }


    .scroll-indicator {
        display: none;
    }

    .services {
        padding: 80px 0;
    }

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

    .service-card {
        padding: 30px;
    }

    .about-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 50px;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .about-content h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .about-content p {
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .faq {
        padding: 80px 0;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 1rem;
        text-align: center;
    }

    .faq-question {
        justify-content: center;
        gap: 15px;
    }

    .faq-answer p {
        text-align: center;
    }

    .cta-final {
        padding: 80px 0;
    }

    .cta-final .btn-primary.large {
        white-space: normal;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.75rem;
        max-width: 100%;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    .section-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 2rem;
        text-align: center;
    }

    .footer-grid {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-info,
    .footer-contact,
    .footer-address {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn-primary.large {
        padding: 18px 30px;
        font-size: 0.95rem;
    }

    .whatsapp-popup {
        display: none;
    }

    .desktop-nav {
        display: none;
    }

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

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

    .mobile-menu-toggle .bar {
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--primary-gold);
        transition: 0.3s;
    }

    .mobile-menu-toggle .bar:nth-child(1) {
        top: 0;
    }

    .mobile-menu-toggle .bar:nth-child(2) {
        top: 9px;
    }

    .mobile-menu-toggle .bar:nth-child(3) {
        top: 18px;
    }
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.close-menu {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 2rem;
    color: var(--primary-gold);
    cursor: pointer;
}

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

.mobile-nav li {
    margin: 30px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
}

.mobile-menu-overlay.active .mobile-nav li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav a {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.hero h1 br {
    display: none;
}

.about-content h2 br {
    display: none;
}

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

.mobile-nav .btn-primary {
    font-size: 1rem;
    padding: 15px 30px;
}

/* --- Utilities --- */
.section-footer-cta {
    margin-top: 50px;
    display: flex;
}

.section-footer-cta.center {
    justify-content: center;
}

.cta-reinforcement {
    text-align: center;
    max-width: 700px;
    margin-bottom: 30px;
}

.cta-reinforcement p {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}