body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #003366;
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

header nav {
    display: flex;
    align-items: center;
}

header nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #ff8000;
}

header .cta {
    background-color: #ff8000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 20px;
    transition: background-color 0.3s ease;
}

header .cta:hover {
    background-color: #e67e22;
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    margin-top: 60px; /* Adjusted for fixed header */
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease, background-position 1s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    max-width: 80%;
    transition: transform 0.3s ease;
}

.carousel-caption h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 18px;
    margin-bottom: 20px;
}

.cta-carousel {
    background-color: #ff8000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-carousel:hover {
    transform: scale(1.05);
    background-color: #e67e22;
}

/* Servicios Section Styles */
#servicios {
    padding: 40px 0;
    background-color: #fff;
    text-align: center;
}

#servicios h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.servicios {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.servicio {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.333% - 20px);
    min-width: 280px;
}

.servicio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.servicio:hover img {
    transform: scale(1.05);
}

.servicio h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    padding: 0 20px;
}

.servicio p {
    padding: 0 20px 20px;
    font-size: 16px;
    color: #666;
}

/* Footer Styles */
footer {
    background-color: #003366;
    color: white;
    padding: 20px 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.footer-section {
    flex: 1 1 200px;
    text-align: left;
    margin: 10px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-section p,
.footer-section a {
    font-size: 16px;
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form label {
    font-size: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form button {
    padding: 10px;
    background-color: #ff8000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #e67e22;
}

footer p {
    margin-top: 20px;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-carousel {
        height: 60vh;
    }

    .cta {
        display: none;
    }

    header nav ul {
        display: none;
    }

    header nav {
        flex-direction: column;
        align-items: flex-end;
    }

    header .logo {
        margin-bottom: 10px;
    }
}

.not-found {
    text-align: center;
    padding: 80px 20px;
    background-color: #f4f4f4;
}

.not-found h1 {
    font-size: 96px;
    margin-bottom: 20px;
    color: #003366;
}

.not-found p {
    font-size: 24px;
    margin-bottom: 40px;
    color: #666;
}

.not-found .cta {
    background-color: #ff8000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.not-found .cta:hover {
    background-color: #e67e22;
}






















/* Servicios Página */
#servicios {
    padding: 40px 20px;
    background-color: #f4f4f4;
}

#servicios h1 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #003366;
}

.service-category {
    margin-bottom: 40px;
}

.service-category h2 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 20px;
}

.service-category p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.servicios {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.servicio {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.33% - 20px); /* Ajusta el tamaño para que las tarjetas sean más pequeñas */
    min-width: 250px;
    text-align: center;
    position: relative;
}

.servicio img {
    width: 100%;
    height: 150px; /* Ajusta la altura de la imagen */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.servicio:hover img {
    transform: scale(1.05);
}

.servicio h3 {
    font-size: 20px;
    margin: 15px 0 10px;
}

.servicio p {
    padding: 0 20px 20px;
    font-size: 16px;
    color: #666;
}

.servicio ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.servicio ul li {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

/* Footer (mantenido para coherencia visual) */
footer {
    background-color: #003366;
    color: white;
    padding: 20px 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.footer-section {
    flex: 1 1 200px;
    text-align: left;
    margin: 10px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-section p,
.footer-section a {
    font-size: 16px;
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

footer p {
    margin-top: 20px;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .servicio {
        width: 100%;
    }
}








/* Página de Contacto */
#contacto {
    padding: 40px 20px;
    background-color: #f4f4f4;
}

#contacto h1 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    color: #003366;
}

#contacto p {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Asegura que el padding no haga que el formulario se desborde */
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Asegura que el padding no haga que el campo se desborde */
}

.form-group textarea {
    resize: vertical;
}

button {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #002244;
}

/* Footer (mantenido para coherencia visual) */
footer {
    background-color: #003366;
    color: white;
    padding: 20px 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.footer-section {
    flex: 1 1 200px;
    text-align: left;
    margin: 10px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-section p,
.footer-section a {
    font-size: 16px;
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

footer p {
    margin-top: 20px;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .contact-info, .footer-links, .social-media {
        text-align: center;
    }
    
    #contact-form {
        width: 100%;
    }
}
