/* Base y Tipografía */
body {
    font-family: 'Roboto', sans-serif; /* Usamos Roboto para el cuerpo */
    line-height: 1.7;
    color: #444;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Fondo más claro */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif; /* Montserrat para títulos */
    color: #212529;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.8rem; }

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Hero Section */
.hero {
    
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* Degradado futurista azul noche */
    color: white;
    text-align: center;
    padding: 120px 20px;
    
    

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
    color: white;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Secciones Generales */
section {
    padding: 60px 0;
}

#presentacion {
    background-color: #fff;
    text-align: center;
}

.imagen-destacada {
    margin-top: 40px;
    text-align: center;
}

.imagen-destacada img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Servicios */
#servicios {
    background-color: #f8f9fa;
}

.servicio-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

.servicio-item:last-child {
    margin-bottom: 0;
}

.servicio-item.reverse {
    flex-direction: row-reverse; /* Invierte el orden para alternar diseño */
}

.servicio-texto, .servicio-imagen {
    flex: 1;
    min-width: 300px; /* Ancho mínimo para que no se aprieten demasiado */
}

.servicio-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.servicio-texto ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.servicio-texto li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="%23007bff" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.05rem;
}


/* Contacto */
#contacto {
    background-color: #e9ecef;
    text-align: center;
}

#contacto h2 {
    margin-bottom: 30px;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    background-color: #28a745; /* Botón de éxito para el envío */
    color: white;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #218838;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    .servicio-item {
        flex-direction: column;
        text-align: center;
    }
    .servicio-item.reverse {
        flex-direction: column; /* También en reversa para móviles */
    }
    .servicio-texto, .servicio-imagen {
        width: 100%;
    }
    .servicio-imagen {
        order: -1; /* Pone la imagen primero en móvil si no está en reverse */
    }
    .servicio-item.reverse .servicio-imagen {
        order: 0; /* Mantiene la imagen después del texto en reverse para móvil */
    }
}