:root {
    --primario: #ff4d4d;
    --oscuro: #121212;
    --gris-panel: #1e1e1e;
    --texto: #e0e0e0;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--oscuro);
    color: var(--texto);
    overflow-x: hidden;
}

/* Navbar Moderna */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 2px solid var(--primario);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primario);
    text-transform: uppercase;
}

nav ul { display: flex; list-style: none; margin: 0; }
nav ul li a {
    color: var(--texto);
    text-decoration: none;
    margin-left: 25px;
    transition: 0.3s;
    font-size: 0.9rem;
}

nav ul li a:hover { color: var(--primario); }

/* Contenedores */
.container {
    padding: 80px 10%;
    transform: translateY(30px);
}

h2 {
    font-size: 2.5rem;
    border-left: 5px solid var(--primario);
    padding-left: 15px;
    margin-bottom: 40px;
}

/* Tarjetas de Servicios y Galería */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--gris-panel);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    transition: 0.4s;
}

.card:hover {
    border-color: var(--primario);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.2);
}

/* Formulario Pro */
input, textarea {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #444;
    padding: 15px;
    color: white;
    margin-bottom: 15px;
    border-radius: 5px;
}

button {
    background: var(--primario);
    color: white;
    border: none;
    padding: 15px 40px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-cuadro {
    background-color: #d32f2f; /* Rojo */
    color: white;
    padding: 20px;
    margin: 10px;
    display: inline-block; /* Esto hace que se vean como cuadros */
    width: 250px;
    border-radius: 8px;
    text-align: center;
}

nav a {
    color: white; /* Color blanco para los links */
    text-decoration: none; /* Quita el subrayado */
    margin: 0 15px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #d32f2f; /* Cambia a rojo al pasar el mouse */
}