/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f9f9f9;
}

header {
    background-color: #001f3f;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

.hero {
    background: url('assets/hero.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.servicios {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.card {
    background: #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    border-radius: 8px;
}

.card h3 {
    margin: 1rem 0 0.5rem;
    color: #003049;
}

.nosotros, .contacto {
    padding: 4rem 2rem;
    background-color: #e8f0ff;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

form input, form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

form button {
    background-color: #003049;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #001f3f;
}

footer {
    background-color: #001f3f;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}
.hero {
    position: relative;
    background: url('assets/fondo-hero.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
    overflow: hidden;
    min-height: 500px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Oscurece el fondo para que el texto se lea */
    z-index: 1;
}

.hero-title {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#palabraClave {
    font-weight: bold;
    color: #FFD700; /* Dorado brillante */
    transition: opacity 0.5s ease-in-out;
}