/* --- Estilos Generales --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

.container {
    width: 85%;
    margin: auto;
    overflow: hidden;
}

h1, h2, h3 {
    color: #0a1128; /* Azul oscuro del logo */
}

/* --- Header y Navegación --- */
header {
    background: #fff;
    color: #333;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 65px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 25px;
}

header nav a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #e8491d; /* Un color de acento */
}

/* --- Carrusel de Imágenes --- */
#hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
    color: #fff;
}

.carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.btn {
    background: #e8491d;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: #c33c1a;
    transform: translateY(-2px);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.prev { left: 15px; }
.next { right: 15px; }

/* --- Secciones de Contenido --- */
section {
    padding: 60px 0;
    text-align: center;
}

section:nth-of-type(3) { /* Sección de contacto */
    background-color: #fff;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e8491d;
    margin: 8px auto 0;
}

/* --- Servicios --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: center;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-item i {
    color: #e8491d;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* --- Contacto --- */
.container-contact {
    width: 85%;
    margin: auto;
    overflow: hidden;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    text-align: left;
}

.contact-info, .mapa {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-info i {
    color: #e8491d;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.mapa iframe {
    border-radius: 8px;
}

/* --- Footer --- */
footer {
    background: #0a1128;
    color: #fff;
    padding: 25px 0;
    text-align: center;
}

/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav {
        margin-top: 15px;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .contact-content {
        flex-direction: column;
    }

    #clientes {
    text-align: center;
    padding: 40px 20px;
}



}