/* Variables para colores institucionales */
:root {
    --color-black: #000000;
    --color-blue: #007bff; /* Un tono de azul representativo */
    --color-orange: #FFA500; /* Un tono de naranja representativo */
    --color-light-gray: #f4f4f4;
    --color-dark-gray: #333;
    --color-dark-blue-menu: #004d99; /* Darker blue for menu background */
    --color-light-blue-accent: #e0f2ff; /* Lighter blue for service card accents */
    --color-gray: #a3a3a3;
}

/* Estilos Generales y Minimalistas */
html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--color-dark-gray);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1px;
    position: relative;
}

/* Header */
header {
    background-color: var(--color-gray);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo {
    line-height: 0;
}

.logo img {
    width: 150px;
    height: 60px; /* Adjust as needed */
    vertical-align: middle;
}

/* Menu Toggle Button (Hamburger) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1001;
}

/* Navigation (Desktop) */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--color-light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    font-size:20px;
    text-shadow: 1px 1px 1px #000000;
}

nav ul li a i {
    margin-right: 8px;
}

nav ul li a:hover {
    color: var(--color-blue);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Increased height for hero-slider */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: brightness(0.6);
}

.slider-image.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px; /* Reduced padding */
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    color: var(--color-dark-gray);
    max-width: 700px; /* Made smaller */
}

.hero-content h1 {
    font-size: 2.7em; /* Adjusted font size for smaller container */
    margin-top: 0px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 1px 1px 4px #000000;
}


/* Secciones Generales */
.section {
    padding: 60px 20px;
    background-color: var(--color-light-gray);
    margin-bottom: 20px;
    opacity: 0; /* Hidden by default for scroll animation */
    transform: translateY(50px); /* Start slightly below */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Animation */
}

.section.active {
    opacity: 1; /* Show when active */
    transform: translateY(0); /* Move to original position */
}

.section:nth-of-type(even) {
    background-color: #fff;
}

h2 {
    font-size: 2.5em;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--color-orange);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

h3 {
    font-size: 1.8em;
    color: var(--color-blue);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Removed default ul/li styling from generic sections to apply custom per usage */
/* section ul {
    list-style: none;
    padding: 0;
}

section ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

section ul li::before {
    content: '•';
    color: var(--color-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
} */


/* Nuestra Empresa - Card Styling */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    color: var(--color-blue);
    margin: 20px 20px 10px;
    font-size: 1.6em;
}

.card p, .card ul {
    padding: 0 20px 20px;
    margin-top: 0;
    flex-grow: 1;
}
/* Removed redundant styling for ul/li here, handled by specific classes */

/* Specific styling for the full-width description card */
.full-width-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 30px;
    max-width: 100%;
    padding: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.full-width-card .card-content-left {
    flex: 1;
    padding: 30px;
}

.full-width-card .card-content-left p {
    text-align: justify;
}

.full-width-card .card-image-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-width-card .card-image-right img {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
    border-radius: 0 8px 8px 0;
}

/* Grid for the remaining three cards */
.company-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.company-cards-grid .card p {
    text-align: justify;
}

/* Valores List with Icons */
.values-list {
    list-style: none; /* Remove default bullets */
    padding: 0;
}

.values-list li {
    align-items: flex-start; /* Align icon to the top of text */
    margin-bottom: 15px;
    padding-left: 0; /* Remove previous padding */
}

.values-list li i {
    font-size: 1.5em; /* Size of the icon */
    color: var(--color-orange); /* Icon color */
    margin-right: 15px; /* Space between icon and text */
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 30px; /* Fixed width for consistent alignment */
    text-align: justify;
}

.values-list li strong {
    color: #000; /* Highlight value name */
}


/* Servicios Section - Card Styling */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-top: 5px solid var(--color-orange);
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: var(--color-light-blue-accent);
}

.service-card i {
    font-size: 3em;
    color: var(--color-blue);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-card:hover i {
    color: var(--color-orange);
}

.service-card h3 {
    font-size: 1.8em;
    color: var(--color-black);
    margin-top: 0;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1em;
    color: var(--color-dark-gray);
}


/* Galería de Infraestructura */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* Indicate clickability */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.02); /* Slightly less aggressive scale for lightbox effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Lightbox Modal */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    animation: fadeIn 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 90%;
    object-fit: contain; /* Ensure image fits within modal */
    animation: zoomIn 0.3s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Animations for Lightbox */
@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes zoomIn {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}


/* Contactanos Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Info on left, form on right */
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    color: var(--color-dark-gray);
}

.contact-info ul li i {
    font-size: 1.5em;
    color: var(--color-blue);
    margin-right: 15px;
    flex-shrink: 0;
    width: 30px; /* Fixed width for consistent icon alignment */
    text-align: center;
}

.contact-info ul li a {
    color: var(--color-dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info ul li a:hover {
    color: var(--color-blue);
}

.contact-form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.contact-form h3 {
    color: var(--color-black);
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-dark-gray);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: Arial, sans-serif;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.btn-submit {
    background-color: var(--color-orange);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block; /* Make it a block element to center with margin auto */
    margin: 0 auto;
}

.btn-submit:hover {
    background-color: #e69500; /* Darker orange on hover */
}

.google-map {
    margin-top: 60px;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.google-map h3 {
    color: var(--color-black);
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2em;
}

.google-map iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* Footer */
footer {
    background-color: var(--color-black);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Responsiveness (Media Queries) */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        background-color: var(--color-dark-blue-menu);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        padding-top: 80px;
        box-sizing: border-box;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        z-index: 999;
    }

    nav.active {
        display: block;
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }

    nav ul li {
        margin: 15px 0;
    }

    nav ul li a {
        padding: 10px 20px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero-section {
        height: 50vh; /* Adjust hero height for mobile, slightly taller */
    }

    .hero-content {
        padding: 20px;
        max-width: 90%; /* Adjust width for better mobile fit */
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.5em;
    }

    /* Nuestra Empresa - Full-width card for mobile */
    .full-width-card {
        flex-direction: column; /* Stack image and content vertically on mobile */
    }

    .full-width-card .card-content-left {
        order: 2; /* Content below image on mobile */
        padding: 20px;
    }

    .full-width-card .card-image-right {
        order: 1; /* Image above content on mobile */
    }

    .full-width-card .card-image-right img {
        border-radius: 8px 8px 0 0; /* Round top corners on mobile */
        min-height: 250px; /* Adjust min height for mobile */
    }

    .company-cards-grid {
        grid-template-columns: 1fr; /* Stack other cards vertically on mobile */
    }

    .service-cards-grid {
        grid-template-columns: 1fr; /* Stack service cards vertically on mobile */
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    /* Contactanos Section for mobile */
    .contact-grid {
        grid-template-columns: 1fr; /* Stack info and form vertically on mobile */
        gap: 30px;
    }

    .contact-form, .google-map {
        padding: 20px; /* Adjust padding for mobile */
    }

    .google-map iframe {
        height: 300px; /* Adjust map height for mobile */
    }
}
