/* --- VARIABLES GLOBALES --- */
:root {
    --bg-color: #050505;       /* Negro profundo */
    --card-bg: #0c0c0c;        /* Gris casi negro para tarjetas */
    --accent: #ffffff;         /* Blanco puro para detalles */
    --text-main: #ffffff;      /* Texto principal */
    --text-dim: #888888;       /* Texto secundario/desactivado */
    --border: rgba(255, 255, 255, 0.08); /* Bordes sutiles */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- NAVEGACIÓN --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(5, 5, 5, 0.7);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.logo span {
    color: var(--text-dim);
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.5;
    transition: var(--transition);
}

.nav-links a:hover, 
.nav-links a.active {
    opacity: 1;
}

/* --- LAYOUTS COMUNES --- */
.container-pro {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.page-header {
    padding: 180px 8% 80px;
    text-align: left;
}

.page-header h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
}

/* --- HERO (INICIO) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #111 0%, #050505 100%);
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: -4px;
    line-height: 0.9;
    margin-bottom: 30px;
}

/* --- BOTONES --- */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #ccc;
    transform: translateY(-3px);
}

/* --- BLOG (CARTELERA) --- */
.blog-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 100px;
}

.blog-item {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.blog-item:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

/* --- SERVICIOS --- */
.service-item-pro {
    display: grid;
    grid-template-columns: 80px 1fr;
    padding: 50px 0;
    border-top: 1px solid var(--border);
    transition: var(--transition);
}

.service-item-pro:hover {
    padding-left: 20px;
}

.service-number {
    font-weight: 700;
    opacity: 0.2;
}

.service-info h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

/* --- CONTACTO (REEMPLAZO) --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
    padding-bottom: 100px;
}

.pro-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Estilo unificado para Inputs, Textarea y Select */
.pro-form input, 
.pro-form textarea, 
.pro-form select {
    background: #111111; /* Fondo oscuro */
    border: 1px solid var(--border);
    padding: 20px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

/* Estilo específico para el menú desplegable */
.pro-form select {
    appearance: none;
    cursor: pointer;
    /* Flecha minimalista blanca */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 15px;
    padding-right: 50px;
}

/* Color de las opciones cuando el menú está abierto */
.pro-form select option {
    background: #0a0a0a;
    color: #ffffff;
}

.pro-form input:focus, 
.pro-form textarea:focus,
.pro-form select:focus {
    border-color: var(--accent);
}

.direct-contact h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.wa-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
    display: inline-block;
    margin-top: 30px;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #fff;
    color: #000;
    padding: 12px 25px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

/* --- FOOTER --- */
footer {
    padding: 60px 8%;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* --- RESPONSIVE & MOBILE MENU --- */

/* Estilos del botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Mostrar en móviles */
        z-index: 1001;
    }

    /* Transformar nav-links en menú lateral/overlay */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Escondido a la derecha */
        width: 80%;
        height: 100vh;
        background: var(--bg-color);
        padding: 100px 40px;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0; /* Mostrar al hacer click */
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Ajustes de Layout */
    .contact-wrapper, 
    .about-grid, 
    .service-item-pro { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }

    .hero-content h1 { font-size: 3rem; }
    .page-header { padding-top: 140px; }
    .page-header h1 { font-size: 2.8rem; }
    
    .service-item-pro {
        grid-template-columns: 40px 1fr; /* Número más pequeño en móvil */
    }

    /* Animación hamburguesa a "X" */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}