/* Estructura básica */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2 {
    color: #0077b6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

/* Menú de navegación fijo */
header {
    background-color: #0077b6;
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

header h1 {
    display: inline-block;
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    float: right;
}

nav ul li {
    display: inline;
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #005f8b;
    border-radius: 5px;
}

/* Sección Hero menos alta */
.hero {
    background: url('imagen-hero.jpg') no-repeat center center/cover;
    color: white;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
}

.hero p {
    font-size: 1.2rem;
}

.btn {
    padding: 10px 20px;
    background-color: #0099cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #0077b6;
    transform: scale(1.05);
}

/* Estructura más horizontal en dos columnas */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: center;
}

/* Servicios con tarjetas más anchas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.service-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-item img {
    width: 50px;
    margin-bottom: 10px;
}

/* Testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #0077b6;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer .social-links {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

footer .social-links li {
    display: inline-block;
    margin: 0 10px;
}

footer .social-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer .social-links li a:hover {
    color: #00c0ff;
}

/* Estilo del Formulario de Contacto */
form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form .form-group {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #006699;
}

form input, form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

form input:focus, form textarea:focus {
    border-color: #006699;
    outline: none;
}

form textarea {
    resize: vertical;
    height: 150px;
}

form button {
    background-color: #006699;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
}

form button:hover {
    background-color: #005f8b;
    transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}
