:root {
            --primary-color: #0d6efd;
            --secondary-color: #212529;
            --bg-light: #f8f9fa;
            --text-color: #495057;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            color: var(--text-color);
            line-height: 1.6;
        }

        .fondo-principal-capa {
            position: absolute;
            inset: 0;
            z-index: 0;
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            opacity: 0;
            pointer-events: none;
            transition: opacity 1s ease;
        }

        /* Navegación */
        nav {
            background-color: var(--secondary-color);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        nav .logo {
            color: #fff;
            font-size: 1.5rem;
            font-weight: bold;
            text-decoration: none;
            letter-spacing: 1px;
        }

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

        nav ul li a {
            color: #fff;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }

        nav ul li a:hover {
            color: var(--primary-color);
        }

        /* Secciones Generales */
        section {
            padding: 5rem 2rem;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        h2 {
            font-size: 2.5rem;
            color: var(--secondary-color);
            margin-bottom: 2rem;
            text-align: center;
            border-bottom: 3px solid var(--primary-color);
            padding-bottom: 0.5rem;
        }

        /* Inicio / Hero */
        #inicio {
            background-color: rgba(0, 0, 0, 0.2);
            color: #fff;
            text-align: center;
            margin-top: 60px; /* offset para el nav fijo */
            overflow: hidden;
        }

        #inicio > :not(.fondo-principal-capa) {
            position: relative;
            z-index: 1;
        }

        #inicio h1 {
            font-size: clamp(2.2rem, 6vw, 4rem);
            line-height: 1.1;
            max-width: 1100px;
            overflow-wrap: anywhere;
            margin-bottom: 1rem;
        }

        #inicio p {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            max-width: 800px;
        }

        .btn {
            display: inline-block;
            padding: 1rem 2rem;
            background-color: var(--primary-color);
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            transition: background 0.3s;
            border: none;
            cursor: pointer;
        }

        .btn:hover {
            background-color: #0b5ed7;
        }

        /* Sobre Nosotros */
        #sobre-nosotros {
            background-color: rgba(255, 255, 255, 0.9);
            text-align: center;
            max-width: 1000px;
            margin: 0 auto;
        }

        #sobre-nosotros p {
            font-size: 30px;
            font-weight: 700;
            line-height: 1.4;
            text-align: center;
            width: 100%;
            margin-bottom: 1rem;
        }

        /* Nuestros Trabajos */
        #trabajos {
            background-color: rgba(248, 249, 250, 0.9);
            width: 100%;
        }

        .galeria {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            max-width: 1200px;
            width: 100%;
        }

        .tarjeta-trabajo {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }

        .tarjeta-trabajo:hover {
            transform: translateY(-5px);
        }

        .tarjeta-trabajo img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            cursor: zoom-in;
        }

        .tarjeta-trabajo .info {
            padding: 1.5rem;
        }

        .tarjeta-trabajo h3 {
            color: var(--secondary-color);
            margin-bottom: 0.5rem;
        }

        .visor-imagen {
            position: fixed;
            inset: 0;
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4rem 5rem;
            background: rgba(0, 0, 0, 0.94);
        }

        .visor-imagen[hidden] {
            display: none;
        }

        .visor-imagen img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .visor-control {
            position: absolute;
            display: grid;
            place-items: center;
            width: 3rem;
            height: 3rem;
            border: 0;
            border-radius: 50%;
            color: #fff;
            background: rgba(255, 255, 255, 0.18);
            font-size: 2rem;
            line-height: 1;
            cursor: pointer;
        }

        .visor-control:hover,
        .visor-control:focus-visible {
            background: rgba(255, 255, 255, 0.35);
        }

        .visor-cerrar {
            top: 1rem;
            right: 1rem;
            font-size: 2.2rem;
        }

        .visor-anterior {
            left: 1rem;
        }

        .visor-siguiente {
            right: 1rem;
        }

        /* Contacto */
        #contacto {
            background-color: rgba(255, 255, 255, 0.92);
            width: 100%;
        }

        .contacto-container {
            display: flex;
            flex-wrap: wrap;
            gap: 4rem;
            max-width: 1200px;
            width: 100%;
        }

        .info-contacto, .formulario {
            flex: 1;
            min-width: 300px;
        }

        .info-contacto p {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .formulario form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .formulario input, .formulario textarea {
            width: 100%;
            padding: 1rem;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 1rem;
        }

        .formulario textarea {
            height: 150px;
            resize: vertical;
        }

        /* Ubicación */
        #ubicacion {
            background-color: rgba(248, 249, 250, 0.9);
            width: 100%;
        }

        .mapa-container {
            width: 100%;
            max-width: 1200px;
            height: 450px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        iframe {
            width: 100%;
            height: 100%;
            border: 0;
        }

        /* Footer */
        footer {
            position: relative;
            z-index: 1;
            background-color: var(--secondary-color);
            color: #fff;
            text-align: center;
            padding: 2rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            nav {
                flex-direction: column;
                gap: 1rem;
            }
            #inicio h1 {
                font-size: 2.5rem;
            }
            .contacto-container {
                flex-direction: column;
            }
        }
