/* VARIABLES PROFESIONALES */
:root {
    --primario: #FF8C00;      /* Naranja industrial vibrante */
    --oscuro: #121212;        /* Negro profundo */
    --gris-oscuro: #1f1f1f;   /* Gris para tarjetas */
    --gris-claro: #f4f4f4;    /* Fondo suave */
    --blanco: #ffffff;
    --transicion: all 0.3s ease;
}

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--blanco);
    color: var(--oscuro);
    line-height: 1.6;
}

/* NAVEGACIÓN PROFESIONAL */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.logo span {
    color: var(--primario);
}

.nav-links {
    display: none; /* Se oculta en móviles para usar menú hamburguesa si lo deseas, o se adapta */
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transicion);
}

.nav-links a:hover {
    color: var(--primario);
}

/* HERO SECTION ADAPTATIVO */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), 
                url('https://unsplash.com');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.3rem);
    color: var(--gris-claro);
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta {
    padding: 18px 40px;
    background: var(--primario);
    color: var(--oscuro);
    text-decoration: none;
    font-weight: 800;
    border-radius: 5px;
    display: inline-block;
    transition: var(--transicion);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* SERVICIOS / COTIZACIÓN */
.services {
    padding: 100px 5%;
    background: var(--gris-claro);
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.services h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primario);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 50px 30px;
    border-radius: 15px;
    transition: var(--transicion);
    border: 1px solid #eee;
}

.card:hover {
    border-color: var(--primario);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.card i {
    font-size: 3rem;
    color: var(--primario);
    margin-bottom: 20px;
}

/* GALERÍA PROFESIONAL (Grid Adaptativo) */
.gallery {
    padding: 80px 5%;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 350px;
    gap: 15px;
}

.foto-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease;
}

.overlay span {
    color: var(--primario);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.foto-item:hover img {
    transform: scale(1.1);
}

.foto-item:hover .overlay {
    bottom: 0;
}

/* WHATSAPP FLOTANTE ANIMADO */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white !important;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 3000;
    transition: var(--transicion);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* FOOTER */
footer {
    background: var(--oscuro);
    color: white;
    padding: 80px 5% 40px;
    text-align: center;
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primario);
}

.socials {
    margin: 30px 0;
}

.socials a {
    color: white;
    font-size: 1.8rem;
    margin: 0 15px;
    transition: var(--transicion);
}

.socials a:hover {
    color: var(--primario);
}

/* RESPONSIVIDAD (Media Queries) */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .grid-galeria {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Efecto Pinterest: algunas fotos ocupan más espacio */
    .foto-item:nth-child(2), .foto-item:nth-child(5) {
        grid-row: span 2;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}
