/* ===========================
   VARIABLES Y RESET GLOBAL
   =========================== */

:root {
    --dark-bg: #1a1a1a;
    --dark-accent: #0d0d0d;
    --gold: #c9a961;
    --gold-light: #e8d5b7;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #3a3a3a;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
}

/* ===========================
   UTILIDADES
   =========================== */

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

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

.section-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: bold;
    margin-bottom: 20px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    margin: 0 auto;
}

/* ===========================
   ANIMACIONES
   =========================== */

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

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,169,97,0.3); }
    50%       { box-shadow: 0 0 0 10px rgba(201,169,97,0); }
}

@keyframes chevronBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in-up         { animation: fadeInUp  0.8s ease forwards; }
.fade-in-down       { animation: fadeInDown 0.8s ease forwards; }
.fade-in-on-scroll  { opacity: 0; animation: fadeInUp 0.6s ease forwards; }

.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-8px); }

/* ===========================
   HEADER / NAVEGACIÓN
   =========================== */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background-color: var(--dark-bg);
    border-bottom: 2px solid var(--gold);
    z-index: 1000;
    animation: fadeInDown 0.6s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

/* Logo como imagen */
.logo {
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.logo:hover { transform: scale(1.03); }

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* Navegación Desktop */
.nav { display: flex; gap: 30px; }

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

.nav-link:hover { color: var(--gold); }

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

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

/* Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px; height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}

/* Foto de fondo */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay oscuro sobre la foto */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26,26,26,0.82) 0%,
        rgba(13,13,13,0.75) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

/* Logo grande en el hero */
.hero-logo-img {
    height: 140px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 30px;
    display: block;
    animation: float 3s ease infinite;
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 20px;
    animation-delay: 0.4s;
}

.hero-description {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.8;
    animation-delay: 0.5s;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    animation-delay: 0.6s;
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
}

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

.chevron {
    width: 32px; height: 32px;
    color: var(--gold);
    animation: chevronBounce 2s infinite;
}

/* ===========================
   BOTONES
   =========================== */

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--dark-bg);
}

.btn-gold:hover {
    background-color: var(--gold-light);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(201,169,97,0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--dark-bg);
    transform: scale(1.05);
}

/* ===========================
   STATS SECTION
   =========================== */

.stats {
    background-color: var(--dark-accent);
    padding: 80px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card { text-align: center; }

.stat-number {
    font-size: clamp(32px, 8vw, 56px);
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
}

/* ===========================
   ABOUT — POR QUÉ MULTIART
   =========================== */

.about-section {
    background-color: var(--dark-bg);
    padding: 100px 20px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    padding: 40px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background-color: var(--dark-accent);
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    border-color: var(--gold-light);
    box-shadow: 0 10px 40px rgba(201,169,97,0.2);
}

.why-icon-wrap {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    background-color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.why-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--white);
}

.why-card p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.6;
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services-section {
    background-color: var(--dark-accent);
    padding: 100px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 30px;
    border-left: 4px solid var(--gold);
    background-color: var(--dark-bg);
    border-radius: 4px;
    transition: var(--transition);
}

.service-card:hover {
    border-left-color: var(--gold-light);
    box-shadow: 0 8px 25px rgba(201,169,97,0.15);
}

.service-icon-wrap {
    width: 56px; height: 56px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--gold);
    background-color: var(--dark-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}

.service-category {
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.service-card p:last-child {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.6;
}

/* ===========================
   PROJECTS SECTION
   =========================== */

.projects-section {
    background-color: var(--dark-bg);
    padding: 100px 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.project-card:hover { transform: scale(1.03); }

.project-image {
    width: 100%; height: 250px;
    background-color: var(--dark-accent);
    overflow: hidden;
}

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

.project-card:hover .project-image img { transform: scale(1.05); }

.project-info {
    padding: 25px;
    border: 2px solid var(--gold);
    border-top: none;
    background-color: var(--dark-accent);
}

.project-category {
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
}

.project-description {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.project-count {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

/* ===========================
   MODAL
   =========================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active { display: flex; }

.modal-content {
    background-color: var(--dark-accent);
    border: 2px solid var(--gold);
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.4s ease;
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.modal-body { padding: 40px; }

.modal-category {
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

#modalTitle {
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: bold;
}

.modal-gallery {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-image {
    flex: 1;
    height: 400px;
    background-color: var(--dark-bg);
    border: 2px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: opacity 0.15s ease;
}

.gallery-prev,
.gallery-next {
    background: none;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 28px;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: var(--gold);
    color: var(--dark-bg);
    transform: scale(1.1);
}

.gallery-prev:disabled,
.gallery-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gallery-counter {
    text-align: center;
    color: var(--gold);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 70px; height: 70px;
    border: 2px solid var(--gray-medium);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--gold);
    transform: scale(1.05);
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-section {
    background-color: var(--dark-accent);
    padding: 100px 20px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-box {
    padding: 30px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background-color: var(--dark-bg);
    transition: var(--transition);
}

.contact-box:hover {
    box-shadow: 0 10px 30px rgba(201,169,97,0.2);
    transform: translateY(-5px);
}

.contact-box h3 {
    color: var(--gold);
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
}

/* Items clickeables */
.contact-link {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    transition: var(--transition);
    border-radius: 4px;
    padding: 4px 0;
}

.contact-link:hover {
    color: var(--gold);
}

/* Iconos de imagen en contacto */
.contact-icon-img {
    width: 26px; height: 26px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Pin de ubicación (emoji) */
.contact-icon-pin {
    font-size: 20px;
    min-width: 26px;
}

/* Icono SVG de redes sociales */
.social-icon {
    width: 22px; height: 22px;
    flex-shrink: 0;
    color: var(--gold);
}

/* WhatsApp */
.whatsapp-link { color: #25D366 !important; }
.whatsapp-link:hover { color: #1ebe5d !important; }

.whatsapp-icon {
    width: 22px; height: 22px;
    flex-shrink: 0;
    color: #25D366;
}

/* ===========================
   CONTACT FORM
   =========================== */

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background-color: var(--dark-bg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    background-color: rgba(201,169,97,0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-light);
    background-color: rgba(201,169,97,0.15);
    box-shadow: 0 0 10px rgba(201,169,97,0.2);
}

.contact-form button {
    width: 100%;
    margin-top: 10px;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background-color: var(--dark-accent);
    border-top: 2px solid var(--gold);
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
}

.footer-grid h3 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-grid p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover { color: var(--gold); }

.social-links { display: flex; gap: 15px; }

.social-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.social-link:hover { color: var(--gold); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-medium);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        flex-direction: column;
        top: 70px; left: 0; right: 0;
        background-color: var(--dark-accent);
        border-bottom: 2px solid var(--gold);
        padding: 20px;
        gap: 0;
    }

    .nav.active { display: flex; }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-medium);
    }

    .nav-link::after { display: none; }

    .menu-toggle { display: flex; }

    .hero {
        padding-top: 80px;
        min-height: 90vh;
    }

    .hero-logo-img { height: 90px; }

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

    .btn { padding: 10px 20px; font-size: 14px; }
    .section-title { font-size: 32px; }

    .modal-content { max-width: 95vw; }
    .modal-body { padding: 25px; }
    .modal-image { height: 300px; }
    .modal-gallery { gap: 10px; }

    .gallery-prev,
    .gallery-next { width: 40px; height: 40px; font-size: 20px; }

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

@media (max-width: 480px) {
    .logo-img { height: 40px; }
    .hero-logo-img { height: 72px; }
    .hero-subtitle { font-size: 16px; }
    .hero-description { font-size: 14px; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 28px; }
    .stat-label { font-size: 12px; }

    .modal-image { height: 200px; }
    .thumbnail { width: 60px; height: 60px; }

    .why-icon-wrap { width: 60px; height: 60px; }
    .service-icon-wrap { width: 48px; height: 48px; }
}

/* ===========================
   SCROLL ANIMATIONS — DELAYS
   =========================== */

.fade-in-on-scroll:nth-child(1) { animation-delay: 0.1s; }
.fade-in-on-scroll:nth-child(2) { animation-delay: 0.2s; }
.fade-in-on-scroll:nth-child(3) { animation-delay: 0.3s; }
.fade-in-on-scroll:nth-child(4) { animation-delay: 0.4s; }
.fade-in-on-scroll:nth-child(5) { animation-delay: 0.5s; }
.fade-in-on-scroll:nth-child(6) { animation-delay: 0.6s; }

/* ===========================
   GLOBALES
   =========================== */

input:focus { outline: none !important; }

a { color: var(--gold); }

@supports (scroll-behavior: smooth) {
    html { scroll-behavior: smooth; }
}