body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0d0d0d;
    color: white;
}

/* NAV */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #121212;
    border-bottom: 2px solid #d4af37;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: #d4af37;
    font-weight: bold;
    font-size: 18px;
}

nav a {
    color: white;
    margin-left: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #d4af37;
}

/* HERO */
.hero {
    background: url('domotica.jpg') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: auto;
}

.hero h2 {
    font-size: 28px;
    color: #d4af37;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #d4af37;
    color: black;
    border-radius: 6px;
    font-weight: bold;
    /* Estilos mejorados para los botones */
    margin: 5px;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

/* SERVICIOS */
.servicios {
    padding: 60px 20px;
}

.servicios h2 {
    text-align: center;
    color: #d4af37;
    margin-bottom: 30px;
}

.grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: #1b1b1b;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #d4af37;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px #d4af37;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

/* COTIZADOR */
.cotizador {
    padding: 60px 20px;
    text-align: center;
}

/* Centra el formulario */
#quoteForm {
    max-width: 600px;
    margin: 0 auto; 
}

textarea, select, input {
    width: 100%; 
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #d4af37;
    background: #222;
    color: white;
    margin-bottom: 15px;
    box-sizing: border-box; /* Evita que el padding aumente el ancho total */
}

#resultado {
    margin-top: 25px;
    padding: 20px;
    background: #1c1c1c;
    border: 1px solid #d4af37;
    border-radius: 10px;
    max-width: 600px; /* Limita y centra el contenedor de resultado */
    margin: 25px auto 0 auto;
}

/* Estilo para el precio final */
#precio {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin: 10px 0;
}

/* CONTACTO */
.contacto {
    padding: 60px 20px;
    text-align: center;
    background: #121212;
}


/* FOOTER */
.footer {
    background: #111;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #d4af37;
    font-size: 14px;
}
