/* --- CONFIGURACIÓN --- */
:root {
    --color-oscuro: #0a0a0a;
    --color-claro: #fff;
    --color-gris: #1a1a1a;
    --fuente-principal: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--fuente-principal);
    line-height: 1.6;
    color: #eee;
    background-color: var(--color-oscuro);
    overflow-x: hidden;
}

.contenedor { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- HÉROE --- */
.heroe {
    position: relative;
    height: 100vh;
    color: var(--color-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('img/fondo.jpg') no-repeat center center/cover fixed;
}

.heroe .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(10,10,10,1) 100%);
    z-index: 1;
}

.contenido-heroe { position: relative; z-index: 2; width: 100%; }

.foto-perfil {
    width: 350px; height: 350px;
    border-radius: 15%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    opacity: 0;
    animation: entrarIzquierda 1.2s ease-out forwards;
}

.heroe h1 { font-size: 3.5rem; margin-bottom: 10px; }
.subtitulo { font-size: 1.5rem; font-weight: 300; opacity: 0.8; margin-bottom: 30px; }

/* --- REDES --- */
.contenedor-redes { display: flex; justify-content: center; gap: 25px; }
.red-icono { width: 55px; height: 55px; transition: 0.3s; }
.red-icono img { width: 100%; height: 100%; object-fit: contain; }
.red-icono:hover { transform: translateY(-8px) scale(1.2); filter: drop-shadow(0 0 8px #fff); }

/* --- ANIMACIONES DE SCROLL --- */
.revelar { opacity: 0; transition: all 0.8s ease-out; }
.desde-izq { transform: translateX(-50px); }
.desde-der { transform: translateX(50px); }
.desde-aba { transform: translateY(50px); }
.revelar.activo { opacity: 1; transform: translate(0,0); }

/* --- SECCIONES --- */
.seccion-clara { padding: 80px 0; background: #0a0a0a; }
.fila { display: flex; gap: 50px; align-items: center; }
.columna-texto { flex: 2; }
.columna-info { flex: 1; background: var(--color-gris); padding: 30px; border-radius: 15px; border: 1px solid #333; }

/* --- GALERÍA --- */
.mi-set-fotos { padding: 80px 0; background: #0f0f0f; }
.titulo-galeria { text-align: center; margin-bottom: 50px; font-size: 2.2rem; }
.grilla-fotos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.foto-item { height: 350px; border-radius: 10px; overflow: hidden; }
.foto-item img, .video-grid { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.foto-item:hover img { transform: scale(1.05); }

/* --- SERVICIOS --- */
.seccion-oscura { padding: 80px 0; background: #0a0a0a; text-align: center; }
.grilla-servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.servicio-item { background: #151515; padding: 30px; border-radius: 15px; cursor: pointer; transition: 0.3s; border: 1px solid #222; }
.servicio-item:hover { border-color: #fff; transform: translateY(-5px); }
.servicio-item .icono { font-size: 2.5rem; display: block; margin-bottom: 15px; }

/* BOTÓN */
.boton-contacto {
    display: inline-block; padding: 15px 35px; background: var(--color-claro); color: #000;
    font-weight: 700; border-radius: 50px; margin-top: 30px; border: none; cursor: pointer; transition: 0.3s;
}
.boton-contacto:hover { transform: scale(1.05); background: #f0f0f0; }

/* --- MODAL --- */
.modal-fondo {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.9);
    align-items: center; justify-content: center; backdrop-filter: blur(8px);
}
.modal-contenido {
    background: #111; color: #fff; padding: 40px; border-radius: 20px;
    width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto; position: relative;
}
.media-item { 
    width: 100%; 
    max-height: 60vh; 
    object-fit: contain; 
    border-radius: 10px; 
    margin-bottom: 15px;
    display: block;
}
.galeria-servicios { display: flex; flex-direction: column; align-items: center; }

.dato-caja { background: #1a1a1a; padding: 15px; border-radius: 10px; margin-bottom: 15px; text-align: left; }
.btn-copy { background: #fff; color: #000; border: none; padding: 5px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.msg-exito { display: none; color: #0f0; margin-top: 10px; }

@keyframes entrarIzquierda {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .fila { flex-direction: column; text-align: center; }
    .grilla-servicios { grid-template-columns: 1fr; }
    .foto-perfil { width: 250px; height: 250px; }
}
