/* style.css - Paleta Industrial */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Arial', sans-serif; 
}

body { 
    color: #333; 
    line-height: 1.6; 
}

/* =========================================
   HEADER Y LOGOTIPO INTEGRADO (Barra delgada, Logo Grande)
   ========================================= */
.header { 
    background: #ffffff; 
    color: #333; 
    padding: 25px 20px; /* Reducimos el padding para una barra más estilizada y compacta */
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative; /* Permite que el logo sobresalga sin alterar el alto del header */
}

/* Logotipo grande pero sin estirar la barra */
.logo-img {
    height: 120px; /* Tamaño grande y protagónico */
    width: auto;  
    object-fit: contain;
    display: block;
    background: transparent;
    position: absolute; /* Extrae la imagen del flujo normal de la barra */
    top: 50%;
    transform: translateY(-50%); /* Lo centra verticalmente desbordando hacia arriba y abajo con elegancia */
}

/* Espaciador invisible para que el texto del menú no se encime con el logo flotante */
.logo-spacer {
    width: 140px; /* Ajusta este valor si tu logo es más ancho */
}

.header nav {
    display: flex;
    align-items: center;
}

.header a { 
    color: #15325b; 
    text-decoration: none; 
    margin-left: 30px; 
    font-weight: 600; 
    transition: color 0.2s ease;
}

.header a:hover {
    color: #e67e22;
}

/* Hero Section */
.hero { 
    background: linear-gradient(rgba(21, 50, 91, 0.85), rgba(21, 50, 91, 0.95)), 
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white; 
    padding: 150px 20px; 
    text-align: center; 
}
.hero h1 { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
}
.btn-primary {
    display: inline-block;
    background-color: #FFCC00; 
    color: #15325b; 
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    text-align: center;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #E6B800; 
    transform: translateY(-2px); 
}


/* Servicios */
.services { 
    padding: 60px 20px; 
    text-align: center; 
    background: #f4f4f4; 
}
.services h2 {
    margin-bottom: 40px;
    color: #2c3e50;
}
.services-grid { 
    display: flex; 
    gap: 30px; 
    justify-content: center; 
    flex-wrap: wrap; 
}
.service-card { 
    background: white; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    width: 320px; 
    border-top: 4px solid #15325b; 
}
.service-card h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

/* Contacto y Footer */
.contact { 
    padding: 60px 20px; 
    text-align: center; 
}
.contact-info p {
    margin: 10px 0;
}

footer { 
    background: #1a1a1a; 
    color: #999; 
    text-align: center; 
    padding: 20px; 
    font-size: 0.9rem;
}

/* =========================================
   ESTILOS DEL FORMULARIO DE CONTACTO
   ========================================= */

.contact-form {
    max-width: 700px; 
    margin: 40px auto 0; 
    display: flex;
    flex-direction: column;
    gap: 20px; 
    text-align: left; 
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row input {
    flex: 1; 
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fcfcfc;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #15325b; 
    background-color: #ffffff;
}

.contact-form .btn-primary {
    width: 100%;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

/* =========================================
   RESPONSIVE (PARA CELULARES)
   ========================================= */
@media (max-width: 768px) {
    .header {
        padding: 8px 20px;
    }
    .logo-img {
        height: 80px; 
    }
    .logo-spacer {
        width: 95px;
    }
    .header a {
        margin-left: 15px;
        font-size: 0.95rem;
    }
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

.rf-digital-badge {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-family: sans-serif;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.rf-digital-badge:hover {
    opacity: 0.9;
    color: #ffffff;
}

.rf-digital-badge strong {
    color: #38bdf8;
}