:root {
    --primary-color: #ae8625;
    --secondary-color: #0b0b0b;
    --accent-color: #f1f1f1;
    --gray-color: #333333;
    --text-color: #cccccc;
    --font-family: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass-background: rgba(11, 11, 11, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden; /* El body es nuestro único contenedor de scroll real */
    width: 100%;
}

h1,
h2,
h3,
h4 {
    color: #ffffff;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.py-large {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #8a6a1d;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

#main-header.scrolled {
    background-color: var(--glass-background);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
}

.logo-text span {
    font-weight: 300;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 400;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: #ffffff;
    transition: var(--transition);
}

.hero-section {
    height: 100vh;
    width: 100%;
    background: url('images/hero.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 11, 11, 0.8), rgba(11, 11, 11, 0.2));
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--primary-color);
    font-weight: 300;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background-color: #1a1a1a;
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateX(10px);
    background-color: #222222;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Cartel de tiempos (Precotización / Ejecución) */
.quote-banner {
    position: relative;
    margin-bottom: 80px;
    padding: 75px 50px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(174, 134, 37, 0.12), transparent 60%),
        linear-gradient(135deg, #1c1c1c 0%, #0d0d0d 100%);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.quote-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.quote-banner__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.quote-banner__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 50px;
    align-items: center;
    max-width: 950px;
    margin: 0 auto;
}

.quote-banner__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.quote-banner__action {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-banner__time {
    display: inline-block;
    padding: 9px 24px;
    border: 1px solid rgba(174, 134, 37, 0.45);
    border-radius: 50px;
    font-size: 1.2rem;
    color: var(--text-color);
    background-color: rgba(174, 134, 37, 0.06);
}

.quote-banner__time strong {
    color: var(--primary-color);
    font-weight: 700;
}

.quote-banner__item p {
    font-size: 1.05rem;
    color: var(--text-color);
    max-width: 340px;
    margin: 0;
}

.quote-banner__divider {
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
}

@media (max-width: 768px) {
    .quote-banner {
        padding: 50px 25px;
    }

    .quote-banner__eyebrow {
        margin-bottom: 35px;
    }

    .quote-banner__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .quote-banner__action {
        font-size: 2.2rem;
    }

    .quote-banner__divider {
        width: 60%;
        height: 1px;
        justify-self: center;
        background: linear-gradient(to right, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
    }
}

/* Campo anti-spam */
.captcha-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.captcha-label span {
    color: var(--primary-color);
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/10;
    background-color: #1a1a1a;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #ffffff;
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.bg-darker {
    background-color: #050505;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-details {
    margin-top: 40px;
}

.contact-details li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-details strong {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid var(--gray-color);
    padding: 15px;
    color: #ffffff;
    font-family: inherit;
    border-radius: 4px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(174, 134, 37, 0.1);
}

.w-full {
    width: 100%;
}

.main-footer {
    padding: 80px 0 0;
    background-color: var(--secondary-color);
    border-top: 1px solid var(--gray-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid var(--gray-color);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-lightbox:hover {
    color: var(--primary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--primary-color);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    z-index: 100;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {

    .section-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1100;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100vh;
        background-color: var(--secondary-color);
        transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        gap: 40px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        text-align: center;
        margin-bottom: 30px;
    }

    .about-text .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-visual {
        align-items: center;
    }

    .feature-card {
        width: 100%;
        max-width: 400px;
        text-align: center;
        border-left: none;
        border-bottom: 4px solid var(--primary-color);
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 50px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--glass-border);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content.glass {
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(15px);
}

.modal-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #555;
    transition: var(--transition);
}