
:root {
    --primary-color: #002d55;
    --secondary-color: #1e6be6;
    --dark-color: #2c3e50;
    --light-color: #c1c1c1d2;
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --blue-color: #1181e3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Encabezado y Navegación --- */
.main-header {
    background: var(--white-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-header nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-header nav a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.main-header .cta-button {
    color: var(--white-color) !important;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--white-color) !important;
}


/* --- Menú Creativo de Servicios --- */
.creative-menu {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: var(--white-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 99;
    padding: 2rem 0;
    border-top: 1px solid var(--light-color);
    justify-content: center;
    gap: 3rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.creative-menu.active {
    display: flex; /* Se muestra con Flexbox */
    opacity: 1;
    transform: translateY(0);
}

.menu-column h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.menu-column ul {
    list-style: none;
}

.menu-column ul a {
    text-decoration: none;
    color: var(--dark-color);
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.menu-column ul a:hover {
    color: var(--secondary-color);
}

.menu-image-placeholder {
    max-width: 250px;
    text-align: center;
    color: #777;
}

.menu-image-placeholder img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* --- Sección Héroe --- */
#hero {
    background: linear-gradient(rgba(0, 82, 155, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1587560699334-cc4ff634909a?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    background: var(--white-color);
    color: var(--primary-color);
    margin-top: 4rem;
}

/* ========= ESTILOS PARA LAS NUEVAS SECCIONES ========= */
.content-section {
    padding: 5rem 0;
}
.alternate-bg {
    background-image: url('../img/texturaAzul.png');
    background-repeat: repeat;
    background-color: var(--blue-color);
    padding: 20px;
    min-height: 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Titulo Servicios */

.section-title2 {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title2 h2 {
    font-size: 2.5rem;
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.about-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 320px;
}

.card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-card {
    background: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.service-content p {
    flex-grow: 1;
    margin: 1rem 0;
}

.learn-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
}

/* ========= CLASES PARA LA ANIMACIÓN DE SCROLL ========= */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========= ESTILOS PARA LA SECCIÓN DE CLIENTES ========= */
.logo-scroller {
    max-width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.logo-scroller-inner {
    display: flex;
    gap: 8rem; /* Espacio entre logos */
    width: max-content;
    animation: scroll 30s linear infinite;
}

.logo-scroller img {
    height: 60px;
    max-width: 200px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-scroller:hover .logo-scroller-inner {
    animation-play-state: paused;
}

.logo-scroller img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Animación del carrusel */
@keyframes scroll {
    to {
        transform: translateX(calc(-50% - 2rem));
    }
}

@media (prefers-reduced-motion) {
  .logo-scroller-inner {
    animation: none;
  }
}

/* ========= ESTILOS PARA LA SECCIÓN DE CONTACTO ========= */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    background: var(--white-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-form-container h2 {
    font-size: 2.5rem;
    color: var(--blue-color);
    margin-bottom: 0.5rem;
}

.contact-form-container p {
    margin-bottom: 2rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form-container input,
.contact-form-container select,
.contact-form-container textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form-container input:focus,
.contact-form-container select:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: var(--blue-color);
    box-shadow: 0 0 5px rgba(0, 82, 155, 0.3);
}

.submit-button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #008a7d;
}

.contact-details {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background-color: #e8f7f6;
    padding: 1rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details div {
    display: flex;
    flex-direction: column;
}

.contact-details strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #777;
}

.contact-details span {
    font-weight: 600;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border-radius: 8px;
}

/* ========= RESPONSIVIDAD PARA CONTACTO Y OTRAS SECCIONES ========= */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-cards, .service-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* ========= ESTILOS PARA EL NUEVO DISEÑO DE "QUIÉNES SOMOS" ========= */
.about-us-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.about-us-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-us-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

#mission .section-title {
    display: none;
}


/* ========= RESPONSIVIDAD PARA LA NUEVA SECCIÓN "QUIÉNES SOMOS" ========= */
@media (max-width: 992px) {
    .about-us-wrapper {
        grid-template-columns: 1fr;
    }

    .about-us-image {
        margin-top: 2rem;
    }

    .about-us-text .section-title {
        text-align: center !important;
    }
}

/* ========= ESTILOS PARA EL MENÚ DESPLEGABLE (DROPDOWN) ========= */
.main-header nav .dropdown {
    position: relative;
}

.main-header nav .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* La flecha del menú */
.main-header nav .dropdown-toggle .fa-chevron-down {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;

    display: block;
    flex-direction: column;
}

.dropdown-menu li a {
    display: block;
    padding: 0.25rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 300;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}


/* ========= ESTADO ACTIVO (CUANDO SE MUESTRA EL MENÚ) ========= */

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.active .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}