/* Estilos CSS modernos y profesionales para A.C.G. Servicios */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a2a44 0%, #2c4373 100%);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin: 0 auto;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header .logo-link {
    color: #ffffff; /* Blanco, como el h1 original */
    text-decoration: none; /* Sin subrayado */
    transition: color 0.3s;
}

header .logo-link:hover {
    color: #e0e0e0; /* Ligeramente más claro al pasar el ratón */
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navegación (Centrada) */
nav {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
}

nav a {
    display: inline-block;
    margin: 0 1.5rem;
    text-decoration: none;
    color: #1a2a44;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #007bff;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    color: #1a2a44;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.hero button {
    background: #007bff;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.hero button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Servicios, Portafolio y Nosotros */
.services {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #1a2a44;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #f9fbfc; /* Fondo suave para todas las tarjetas */
    border: none;
    border-left: 4px solid #007bff; /* Azul a la izquierda */
    border-bottom: 4px solid #007bff; /* Azul abajo */
    border-right: 4px solid #f28c38; /* Naranja a la derecha */
    border-top: 4px solid #f28c38; /* Naranja arriba */
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.service-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #1a2a44;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: #555;
    font-size: 1rem;
}

.service-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Formulario de Contacto */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-form h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #1a2a44;
    margin-bottom: 1.5rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    background: #007bff;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    align-self: center;
}

.contact-form button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Estilo para mensajes del formulario */
#form-message {
    max-width: 100%;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer */
footer {
    background: #1a2a44;
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Responsividad */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    nav {
        padding: 0.5rem;
    }
    nav a {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 1.5rem;
    }
    #form-message {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}