* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #0a2e5c;
    font-weight: 700;
}

p {
    margin-bottom: 15px;
    color: #555;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Custom Navbar */
.custom-navbar {
    background-color: #0a2e5c;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.logo-img {
    height: 85px;
    width: auto;
    border-radius: 5px;
    padding: 2px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #f39c12;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #f39c12 !important;
}

/* Home Section */
.home {
    background: 
        linear-gradient(rgba(10, 46, 92, 0.7), rgba(10, 46, 92, 0.7)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"><rect width="1920" height="1080" fill="%230a2e5c"/><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%231a4d8f;stop-opacity:1" /><stop offset="100%" style="stop-color:%230a2e5c;stop-opacity:1" /></linearGradient></defs><rect width="1920" height="1080" fill="url(%23grad1)"/><g opacity="0.2"><rect x="0" y="0" width="1920" height="1080" fill="none" stroke="%23f39c12" stroke-width="2" stroke-dasharray="20,20"/><rect x="100" y="100" width="1720" height="880" rx="20" ry="20" fill="none" stroke="%23f39c12" stroke-width="2" stroke-dasharray="20,20"/><rect x="200" y="200" width="1520" height="680" rx="30" ry="30" fill="none" stroke="%23f39c12" stroke-width="2" stroke-dasharray="20,20"/></g><g opacity="0.1"><circle cx="300" cy="300" r="250" fill="%23f39c12"/><circle cx="1620" cy="780" r="200" fill="%23f39c12"/></g><g opacity="0.05"><rect x="0" y="0" width="960" height="540" fill="%23f39c12"/><rect x="960" y="540" width="960" height="540" fill="%23f39c12"/></g></svg>') 
        center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 150px 20px 80px;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(243, 156, 18, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(243, 156, 18, 0.08) 0%, transparent 50%);
}

.home-content {
    position: relative;
    z-index: 1;
}

.home-text-wrapper {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.home-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.home-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-primary {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    border: none;
    display: inline-block;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(243, 156, 18, 0.5);
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.cta-secondary {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid white;
    display: inline-block;
}

.cta-secondary:hover {
    background: white;
    color: #0a2e5c;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.home-features {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 1.3rem;
    color: #f39c12;
}

/* About Section */
.about {
    background-color: #ffffff;
    padding: 80px 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #f39c12;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image img {
    display: block;
}

.values {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: space-around;
}

.value-box {
    text-align: center;
    padding: 25px 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.value-box i {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #0a2e5c, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-box h3 {
    color: #0a2e5c;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.value-box p {
    color: #666;
    font-size: 0.95rem;
}

/* Mission & Vision Section */
.mission-vision {
    background-color: #f0f4f8;
}

.mission-vision.reduced-padding {
    padding-top: 40px;
    padding-bottom: 80px;
}

.mission-vision h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #0a2e5c;
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.mission-vision h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #f39c12;
}

.mission-vision-content {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.mission, .vision {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.mission:hover, .vision:hover {
    transform: translateY(-5px);
}

.mission h3, .vision h3 {
    color: #0a2e5c;
    margin-bottom: 20px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mission h3 i, .vision h3 i {
    color: #f39c12;
}

.mission p, .vision p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* Safety Section */
.safety {
    background-color: #ffffff;
}

.safety.reduced-padding {
    padding-top: 40px;
    padding-bottom: 80px;
}

.safety h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #0a2e5c;
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.safety h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #f39c12;
}

.safety-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.safety-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* Services Section */
.services {
    background-color: #0a2e5c;
    color: white;
    padding: 80px 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #f39c12;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.service-card i {
    font-size: 2.8rem;
    color: #f39c12;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: white;
}

.service-card p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    background-color: #f0f4f8;
    padding: 60px 0 80px 0;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #0a2e5c;
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #f39c12;
}

/* Carousel */
.fixed-carousel {
    margin-top: 0;
    margin-bottom: 0;
    max-height: 400px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.fixed-carousel .carousel-inner,
.fixed-carousel .carousel-item {
    height: 400px;
}

.carousel-image {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/*buton*/
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none; /* eliminamos el SVG por defecto */
    width: 2rem;
    height: 2rem;
}

.carousel-control-prev-icon {
    border: solid #0a2e5c;
    border-width: 0 0.3em 0.3em 0;
    display: inline-block;
    padding: 0.3em;
    transform: rotate(135deg);
}

.carousel-control-next-icon {
    border: solid #0a2e5c;
    border-width: 0 0.3em 0.3em 0;
    display: inline-block;
    padding: 0.3em;
    transform: rotate(-45deg);
}

/* Contact Section */
.contact {
    background-color: #ffffff;
    padding: 80px 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #f39c12;
}

.contact-content {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.contact-info {
    flex: 1;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info h3 {
    color: #0a2e5c;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 25px;
    color: #555;
}

.contact-details .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.contact-details i {
    font-size: 1.5rem;
    color: #f39c12;
    margin-right: 15px;
    min-width: 24px;
    margin-top: 3px;
}

.map-container {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Footer */
.footer {
    background-color: #0a2e5c;
    color: white;
    text-align: center;
    padding: 30px 0 20px;
    font-size: 0.9rem;
}

.footer p:first-of-type {
    color: white !important;
}

.footer p:last-child {
    margin-top: 10px;
    font-style: italic;
    color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Ajuste del home en móviles */
    .home {
        padding: 100px 20px 60px;
        min-height: 90vh;
    }

    .home-title {
        font-size: 2.2rem;
    }

    .home-subtitle {
        font-size: 1.1rem;
    }

    .home-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-primary,
    .cta-secondary {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }

    .home-features {
        gap: 15px;
    }

    .feature-item {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .feature-item i {
        font-size: 1.1rem;
    }

    /* Ajuste del carousel en móviles */
    .fixed-carousel,
    .fixed-carousel .carousel-inner,
    .fixed-carousel .carousel-item {
        height: 300px;
        max-height: 300px;
        margin-top: 0;
    }

    .about-content,
    .mission-vision-content,
    .contact-content {
        flex-direction: column;
    }

    .values {
        flex-direction: column;
        align-items: center;
    }

    .value-box {
        max-width: 350px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 55px;
    }
}