/* --- Importamos una fuente moderna (Montserrat) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

/* --- Colores generales de tu marca --- */
:root {
    --color-fondo: #0a0a0a;
    --color-texto: #ffffff;
    --color-cian: #00d2ff;
    --color-gris: #2a2a2a;
}

/* --- Reseteo básico para que se vea igual en todos los navegadores --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* --- Desplazamiento suave y colchón exacto para el menú flotante --- */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 70px;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

/* --- BARRA DE NAVEGACIÓN --- */
header, .menu-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--color-gris);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--color-cian);
    letter-spacing: 2px;
}

.logo span {
    color: #ffffff;
}

nav ul, .enlaces-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a, .enlaces-menu li a {
    color: var(--color-texto);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.3s ease;
}

nav ul li a:hover, .enlaces-menu li a:hover, .enlaces-menu li a.activo {
    color: var(--color-cian);
}

/* --- SECCIÓN PRINCIPAL (PORTADA / HERO CON VÍDEO) --- */
.hero {
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1f1f1f 0%, var(--color-fondo) 100%);
}

.video-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.capa-oscura {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.75);
    z-index: 2;
}

.hero-contenido {
    max-width: 800px;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 55px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--color-cian);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.4); 
}

.hero p {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* --- DISEÑO DEL BOTÓN --- */
.btn-principal {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--color-cian);
    color: var(--color-fondo);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-principal:hover {
    background-color: #ffffff;
    color: var(--color-fondo);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.7);
    transform: translateY(-4px);
}

/* --- SECCIÓN DE SERVICIOS --- */
.servicios {
    padding: 80px 50px;
    text-align: center;
    background-color: #050505;
}

.servicios h2 {
    color: #ffffff;
    font-size: 38px;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.servicios h2 span {
    color: var(--color-cian);
}

/* --- ESTRUCTURA BENTO GRID (Estilo Mosaico) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.tarjeta-grande {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    min-height: 220px;
}

.tarjeta {
    background: #111111;
    padding: 40px;
    border-radius: 24px; 
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.tarjeta:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

.tarjeta h3 {
    color: var(--color-texto);
    font-size: 24px;
    margin-bottom: 15px;
}

.tarjeta p {
    color: #888888;
    font-size: 16px;
    line-height: 1.5;
}

/* =========================================
   SECCIÓN GALERÍA / CATÁLOGO (AUTOMÁTICA)
========================================= */
.seccion-galeria {
    padding: 80px 50px;
    background-color: var(--color-fondo);
    min-height: 100vh;
}

.titulo-seccion {
    text-align: center;
    color: #ffffff;
    font-size: 38px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.subtitulo-seccion {
    text-align: center;
    color: #cccccc;
    margin-bottom: 50px;
    font-size: 18px;
}

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

.tarjeta-pieza {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.tarjeta-pieza:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

.imagen-pieza {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: #0d1117;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.imagen-pieza img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.tarjeta-pieza:hover .imagen-pieza img {
    transform: scale(1.03);
}

.info-pieza {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.info-pieza h3 {
    color: var(--color-texto);
    font-size: 22px;
    margin-bottom: 15px;
}

.info-pieza h3 a:hover {
    color: var(--color-cian);
    transition: color 0.3s ease;
}

.material-etiqueta {
    display: inline-block;
    background-color: rgba(0, 210, 255, 0.1);
    color: var(--color-cian);
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.descripcion-pieza {
    color: #888888;
    line-height: 1.5;
    margin-bottom: 25px;
    font-size: 15px;
}

.btn-contacto-pieza {
    margin-top: auto; 
    display: block;
    text-align: center;
    background-color: transparent;
    color: var(--color-cian);
    border: 2px solid var(--color-cian);
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-contacto-pieza:hover {
    background-color: var(--color-cian);
    color: var(--color-fondo);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

/* ==========================================================
   CONTENEDOR Y DISEÑO DE LA VISTA DE DETALLE (ORDENADOR)
   ========================================================== */
.detalle-principal, .contenedor-detalle {
    max-width: 1350px;
    margin: 40px auto;
    padding: 0 50px;
}

.detalle-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.detalle-grid .imagen-pieza-contenedor, 
.seccion-galeria .detalle-grid > div:first-child > div:first-child {
    height: 450px !important; 
}

/* =========================================
   SECCIÓN Y FORMULARIO DE CONTACTO
========================================= */
.seccion-contacto {
    padding: 80px 50px;
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contenedor-contacto {
    max-width: 700px;
    margin: 0 auto;
}

.formulario-contacto {
    background: #111111;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grupo-formulario {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.grupo-formulario label {
    color: var(--color-texto);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.grupo-formulario input,
.grupo-formulario textarea {
    background-color: #0a0a0a;
    border: 1px solid var(--color-gris);
    color: var(--color-texto);
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.grupo-formulario input:focus,
.grupo-formulario textarea:focus {
    outline: none;
    border-color: var(--color-cian);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.grupo-formulario input[type="file"] {
    padding: 8px;
    background-color: #0a0a0a;
    border: 1px dashed var(--color-cian);
    border-radius: 8px;
    cursor: pointer;
    color: #888888;
    font-size: 13px;
}

.grupo-formulario input[type="file"]::file-selector-button {
    background-color: rgba(0, 210, 255, 0.15);
    color: var(--color-cian);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.grupo-formulario input[type="file"]::file-selector-button:hover {
    background-color: var(--color-cian);
    color: var(--color-fondo);
}

.ayuda-archivo {
    font-size: 12px;
    color: #777777;
    margin-top: 6px;
}

.btn-enviar {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

/* --- PIE DE PÁGINA (FOOTER) --- */
.footer {
    background-color: #030303;
    padding: 50px 50px 25px 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    margin-top: 45px;
}

.footer-contenido {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-cian);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-logo span {
    color: #ffffff;
}

.footer-contenido p {
    color: #777777;
    font-size: 15px;
    margin-bottom: 15px;
}

.footer-mensaje p {
    color: var(--color-cian);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.footer-sociales {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
}

.footer-sociales a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #111111;
    color: var(--color-texto); /* Asegura que el icono sea blanco/visible dentro del círculo */
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer-sociales a:hover {
    background-color: var(--color-cian);
    color: var(--color-fondo);
    border-color: var(--color-cian);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
    transform: translateY(-4px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-cian);
}

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

.footer-derechos p {
    color: #555555;
    font-size: 13px;
    margin: 0;
}


/* ==========================================================
   ADAPTACIÓN AUTOMÁTICA PARA MÓVILES (Pantallas menores a 768px)
   ========================================================== */
@media (max-width: 768px) {
    header, .menu-principal {
        padding: 12px 15px;
    }

    .logo {
        font-size: 16px;
        white-space: nowrap;
        letter-spacing: 1px;
    }

    nav ul, .enlaces-menu {
        gap: 10px;
    }

    nav ul li a, .enlaces-menu li a {
        font-size: 10px;
    }

    .hero {
        height: calc(100vh - 60px);
        padding: 20px 15px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 15px;
    }

    .servicios {
        padding: 50px 20px;
    }
    
    .seccion-galeria {
        padding: 50px 20px;
    }

    .servicios h2, .titulo-seccion {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .bento-grid, .grid-galeria {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tarjeta-grande {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }

    .tarjeta {
        padding: 25px 20px;
    }

    .tarjeta h3 {
        font-size: 20px;
    }

    .formulario-contacto {
        padding: 25px 20px;
    }

    .btn-enviar {
        font-size: 14px;
        padding: 14px 20px;
        letter-spacing: 0.5px;
    }

    .footer {
        padding: 40px 20px 20px 20px;
        margin-top: 35px;
    }

    .footer-sociales {
        gap: 12px;
    }

    .footer-sociales a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer-links {
        gap: 12px;
        flex-wrap: wrap;
    }

    .detalle-principal, .contenedor-detalle {
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 20px auto;
    }

    .detalle-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .detalle-grid > div:first-child > div:first-child {
        height: 300px !important;
    }
}