
:root {
    --primary-color: #0f1419;
    --secondary-color: #1a2332;
    --accent-color: #2d3e50;
    --text-dark: #0f1419;
    --text-light: #ffffff;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --whatsapp-green: #25D366;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}


.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--text-light);
}

.construction-animation {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
}

.hammer-container {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: 50% 100%;
    animation: jackhammerStrike 1.4s ease-in-out infinite;
}

.jackhammer-svg {
    width: 90px;
    height: 170px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.impact-zone {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.rock {
    animation: stoneShake 1.4s ease-in-out infinite;
}

.stone-svg {
    width: 110px;
    height: 75px;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
}

.sparks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}

.spark {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px #fbbf24;
}

.spark:nth-child(1) {
    animation: sparkFly1 1.2s ease-out infinite;
}

.spark:nth-child(2) {
    animation: sparkFly2 1.2s ease-out infinite;
}

.spark:nth-child(3) {
    animation: sparkFly3 1.2s ease-out infinite;
}

.spark:nth-child(4) {
    animation: sparkFly4 1.2s ease-out infinite;
}

.loader-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.loader-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: loadingDots 1.5s ease-in-out infinite;
}


@keyframes jackhammerStrike {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    35% {
        transform: translateX(-50%) translateY(-10px);
    }
    45% {
        transform: translateX(-50%) translateY(-10px);
    }
    50% {
        transform: translateX(-50%) translateY(18px);
    }
    53% {
        transform: translateX(-50%) translateY(18px);
    }
    56% {
        transform: translateX(-50%) translateY(16px);
    }
    59% {
        transform: translateX(-50%) translateY(18px);
    }
    62% {
        transform: translateX(-50%) translateY(16px);
    }
    70% {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes stoneShake {
    0%, 48%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(0.95) rotate(1deg);
    }
    53% {
        transform: scale(0.93) rotate(-1deg);
    }
    56% {
        transform: scale(0.95) rotate(1deg);
    }
    59% {
        transform: scale(0.94) rotate(-1deg);
    }
    62% {
        transform: scale(0.96) rotate(0.5deg);
    }
    70% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes sparkFly1 {
    0%, 48% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    70% {
        opacity: 0;
        transform: translate(-30px, -25px) scale(0.5);
    }
    100% {
        opacity: 0;
    }
}

@keyframes sparkFly2 {
    0%, 48% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    70% {
        opacity: 0;
        transform: translate(30px, -25px) scale(0.5);
    }
    100% {
        opacity: 0;
    }
}

@keyframes sparkFly3 {
    0%, 48% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    70% {
        opacity: 0;
        transform: translate(-35px, -15px) scale(0.5);
    }
    100% {
        opacity: 0;
    }
}

@keyframes sparkFly4 {
    0%, 48% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    70% {
        opacity: 0;
        transform: translate(35px, -15px) scale(0.5);
    }
    100% {
        opacity: 0;
    }
}

@keyframes loadingDots {
    0%, 20% {
        content: 'Cargando';
    }
    40% {
        content: 'Cargando.';
    }
    60% {
        content: 'Cargando..';
    }
    80%, 100% {
        content: 'Cargando...';
    }
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -9px;
}

.hamburger::after {
    top: 9px;
}


.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image:
        linear-gradient(rgba(15, 20, 25, 0.85), rgba(26, 35, 50, 0.85)),
        url('hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 20, 25, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
}


.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
    text-align: center;
}

.btn-primary {
    background: var(--text-light);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-service {
    background: var(--primary-color);
    color: var(--text-light);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-service:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-service .fa-whatsapp {
    color: var(--whatsapp-green);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}


.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-title.center {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 60px;
}


.about {
    padding: 100px 0;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(15, 20, 25, 0.02), transparent);
    transform: translateX(-100%);
}

.about.parallax-active::before {
    animation: shine 3s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

.about-text {
    padding-right: 20px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.about-image {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.about-image.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
}


.services {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}

.services::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(15, 20, 25, 0.03));
    pointer-events: none;
}

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

.service-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.service-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.2), transparent 70%);
    border-radius: 0 0 12px 0;
}

.service-icon i {
    font-size: 32px;
    color: var(--text-light);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}


.gallery {
    padding: 100px 0;
    background: var(--bg-white);
    background-image:
        linear-gradient(rgba(249, 250, 251, 0.95), rgba(249, 250, 251, 0.95)),
        url('proyectos-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    aspect-ratio: 3/2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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


.contact {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}

.contact .section-title {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact .section-title.fade-in-down {
    opacity: 1;
    transform: translateY(0);
}

.contact-content {
    max-width: 800px;
    margin: 60px auto 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info .contact-item {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-info .contact-item:nth-child(1) {
    transition-delay: 0.1s;
}

.contact-info .contact-item:nth-child(2) {
    transition-delay: 0.2s;
}

.contact-info .contact-item:nth-child(3) {
    transition-delay: 0.3s;
}

.contact-info .contact-item.pop-in {
    opacity: 1;
    transform: scale(1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-link {
    text-decoration: none;
    cursor: pointer;
}

.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-item i {
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}


.contact-link:hover i {
    transform: scale(1.1);
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-gray);
    font-size: 1.05rem;
}

.contact-cta {
    text-align: center;
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-cta p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-map {
    width: 100%;
    margin: 50px 0;
}

.contact-map h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.map-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0 30px;
}

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

.footer-brand {
    text-align: center;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin: 0 auto 15px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.footer-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.footer-info p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-info p:last-child {
    margin-top: 15px;
}

.footer-info p a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-info p a:hover {
    opacity: 1;
    text-decoration: underline;
}

.nav-menu-header {
    display: none;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px 20px 40px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 15px 0 20px;
        border-bottom: 1px solid rgba(15, 20, 25, 0.1);
        margin-bottom: 10px;
    }

    .nav-menu-logo {
        height: 50px;
        width: auto;
    }

    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

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

    .about-text {
        padding-right: 0;
    }

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

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

    .map-container iframe {
        height: 350px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .hero {
        background-attachment: scroll;
    }

    .gallery {
        background-attachment: scroll;
    }

    .contact-cta {
        padding: 40px 20px;
    }

    .contact-cta p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 70px;
    }

    .nav-brand .logo {
        height: 40px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .btn-lg {
        padding: 16px 32px;
        font-size: 16px;
    }
}

