/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    margin: 0 0 10px;
    color: #0056b3;
}

p {
    margin: 0 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
header {
    background: #0056b3;
    color: white;
    padding: 20px 10%;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

header nav {
    margin-top: 10px;
}

header nav a {
    margin-right: 15px;
    color: white;
    font-size: 1rem;
}

header nav a:hover {
    color: #ffc107;
}

/* Footer Styles */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    text-align: center;
    background: url('../images/hero.jpg') no-repeat center center/cover;
    color: white;
    padding: 80px 10%;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Main Content Styles */
main {
    padding: 20px 10%;
}

/* Section Styles */
section {
    margin-bottom: 30px;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Services Section */
.services div {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
}

.services img {
    border-radius: 8px;
}

.services h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0056b3;
}

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

/* Contact Form */
form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

form button {
    background: #0056b3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

form button:hover {
    background: #003d82;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header nav {
        text-align: center;
    }

    header nav a {
        display: block;
        margin: 5px 0;
    }

    .hero {
        padding: 40px 5%;
    }

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

    .services div {
        text-align: center;
    }
}
/* Archivo: assets/css/style.css */

/* Centrado horizontal */
img {
    display: block; /* Evita los márgenes automáticos del inline-block */
    margin: 0 auto; /* Centra horizontalmente */
    max-width: 60%; /* Se adapta al ancho del contenedor */
    height: auto; /* Mantiene las proporciones */
}

/* Imágenes en pantallas más grandes */
@media (min-width: 768px) {
    img {
        max-width: 80%; /* Reduce el tamaño máximo en pantallas más grandes */
    }
}
/* Hero Image */
.hero img {
    width: 100%; /* Ocupa todo el ancho del contenedor */
    max-height: 400px; /* Limita la altura en laptops */
    object-fit: cover; /* Mantiene el recorte proporcionado */
}

/* Imágenes en las secciones de servicios */
.featured-services img, .services img {
    width: 100%; /* Se adapta al contenedor */
    max-width: 300px; /* Limita el ancho en pantallas grandes */
    height: auto; /* Mantiene las proporciones */
    margin-bottom: 20px;
}
@media (min-width: 1200px) {
    img {
        max-width: 60%; /* Reduce aún más el tamaño en pantallas muy grandes */
    }
    .hero img {
        max-height: 500px; /* Permite una altura mayor en pantallas grandes */
    }
}
