/* Variables CSS para una fácil personalización de la marca */
:root {
    --primary-color: #0056b3; /* Azul oscuro corporativo, principal */
    --secondary-color: #007bff; /* Azul brillante, para botones y resaltos */
    --accent-color: #28a745; /* Verde para éxito o llamadas a la acción clave */
    --text-color-dark: #333; /* Texto principal oscuro */
    --text-color-light: #f4f4f4; /* Texto en fondos oscuros */
    --bg-light: #f9f9f9; /* Fondo claro para secciones alternas */
    --bg-dark: #2c3e50; /* Fondo oscuro para footer y elementos prominentes */
    --border-color: #ddd;
    --font-family-headings: 'Montserrat', sans-serif;
    --font-family-body: 'Open Sans', sans-serif;
}

/* Reset Básico y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: #fff;
    scroll-behavior: smooth;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.btn-primary:hover {
    background-color: #004080; /* Un azul más oscuro */
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--text-color-light);
}

.btn-secondary:hover {
    background-color: #218838; /* Un verde más oscuro */
    text-decoration: none;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    font-family: var(--font-family-headings);
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.icon-large {
    font-size: 4em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.icon-medium {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Header y Navegación */
.header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px; /* Tamaño del logo */
    margin-right: 12px;
}

.logo-text {
    font-family: var(--font-family-headings);
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap; /* Evita que el texto se rompa */
}

.navbar .nav-links {
    display: flex;
}

.navbar .nav-links li {
    margin-left: 35px;
}

.navbar .nav-links a {
    color: var(--text-color-dark);
    font-weight: 600;
    font-family: var(--font-family-body);
    transition: color 0.3s ease, text-decoration 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.navbar .nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 70vh; /* Altura de la sección hero */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Transición para el efecto dinámico */
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Capa oscura para legibilidad del texto */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-family-headings);
    font-size: 4.2em;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid transparent;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-top-color: var(--primary-color);
}

.service-item h3 {
    font-family: var(--font-family-headings);
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-item p {
    font-size: 1.05em;
    color: #555;
    margin-bottom: 20px;
}

.service-item ul {
    text-align: left;
    margin-top: 15px;
    padding-left: 0;
}

.service-item ul li {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.service-item ul li i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 0.9em;
}

/* Solutions Carousel Section */
.solutions {
    overflow: hidden; /* Oculta los ítems que están fuera del carrusel */
}

.solution-carousel {
    display: flex;
    overflow-x: auto; /* Permite el scroll horizontal */
    scroll-snap-type: x mandatory; /* Para un snap suave al desplazar */
    -webkit-overflow-scrolling: touch; /* Suaviza el scroll en iOS */
    gap: 30px; /* Espacio entre los ítems del carrusel */
    padding-bottom: 20px; /* Espacio para la barra de desplazamiento si aparece */
}

.carousel-item {
    flex: 0 0 350px; /* Tamaño fijo para cada ítem del carrusel */
    scroll-snap-align: start; /* Se ajusta al inicio del ítem */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
}

.carousel-item img {
    width: 100%;
    height: 220px; /* Altura fija para las imágenes del carrusel */
    object-fit: cover; /* Asegura que la imagen cubra el área sin distorsionarse */
    display: block;
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.05); /* Zoom ligero al pasar el ratón */
}

.carousel-item h4 {
    font-family: var(--font-family-headings);
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 20px 15px 10px 15px;
}

.carousel-item p {
    font-size: 1em;
    color: #555;
    padding: 0 15px 20px 15px;
}

.carousel-nav {
    text-align: center;
    margin-top: 30px;
}

.carousel-nav button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    padding: 12px 18px;
    margin: 0 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-nav button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-us-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.why-us-item:hover {
    transform: translateY(-5px);
}

.why-us-item h3 {
    font-family: var(--font-family-headings);
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-us-item p {
    font-size: 1em;
    color: #555;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-align: center;
    padding: 60px 0;
}

.cta-banner h2 {
    color: var(--text-color-light);
    font-size: 2.5em;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Info a la izquierda, formulario a la derecha */
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: var(--text-color-light);
    font-family: var(--font-family-headings);
    font-size: 1.8em;
    margin-bottom: 25px;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info p i {
    margin-right: 15px;
    font-size: 1.3em;
    line-height: 1.5em; /* Ajusta la altura de la línea para alinear iconos con texto */
}

.contact-info a {
    color: var(--text-color-light);
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 2em;
    color: var(--text-color-light);
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

.contact-form-container {
    background-color: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.contact-form-container h3 {
    font-family: var(--font-family-headings);
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-family-body);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    width: auto;
    padding: 14px 30px;
    margin-top: 10px;
}

.form-note {
    font-size: 0.85em;
    color: #777;
    margin-top: 15px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.map-container iframe {
    border-radius: 10px; /* Para que la sombra no corte el borde */
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-color-light);
    padding: 60px 0 20px 0;
    font-size: 0.95em;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 280px;
    margin-bottom: 20px;
}

.footer-col.about-col .logo {
    margin-bottom: 20px;
}

.footer-col.about-col .logo-img-footer {
    height: 50px;
    margin-right: 10px;
}

.footer-col.about-col .logo-text-footer {
    font-size: 1.6em;
    color: var(--text-color-light);
}

.footer-col.about-col p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-col h4 {
    font-family: var(--font-family-headings);
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-col-footer p {
    margin-bottom: 12px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
}

.contact-col-footer p i {
    margin-right: 12px;
    color: var(--secondary-color);
    font-size: 1.1em;
}

.contact-col-footer a {
    color: rgba(255,255,255,0.8);
}

.social-links-footer {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links-footer a {
    font-size: 1.8em;
    color: var(--text-color-light);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-footer a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.7);
}


/* Efectos de Revelado en Scroll (para JS) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries para Diseño Responsivo */
@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .logo {
        margin-bottom: 0; /* Ajuste para el nuevo diseño */
    }
    .logo-text {
        font-size: 1.6em;
    }
    .logo-img {
        height: 50px;
    }
    .navbar .nav-links {
        display: none; /* Ocultar en móviles por defecto */
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 20px;
        border-top: 1px solid var(--border-color);
        padding-top: 20px;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
    }
    .navbar .nav-links.active {
        display: flex; /* Mostrar cuando está activo */
    }
    .navbar .nav-links li {
        margin: 15px 0;
    }
    .navbar .nav-links a {
        padding: 10px 0;
    }
    .navbar .nav-links a::after {
        display: none; /* Ocultar subrayado en móvil */
    }
    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.2em;
    }

    .section-title {
        font-size: 2.2em;
    }
    .section-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }
    .contact-info, .contact-form-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }

    .section-padding {
        padding: 60px 0;
    }

    .carousel-item {
        flex: 0 0 90%; /* Hace que los ítems del carrusel ocupen más espacio en móvil */
    }

    .about-content {
        flex-direction: column;
    }
    .about-image {
        order: -1; /* Mueve la imagen arriba en móvil */
        margin-bottom: 30px;
    }
    .about-text {
        text-align: center;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links-footer {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .section-title {
        font-size: 1.8em;
    }
    .section-subtitle {
        font-size: 0.9em;
    }
    .icon-large {
        font-size: 3em;
    }
    .service-item h3, .contact-form-container h3, .contact-info h3 {
        font-size: 1.5em;
    }
    .logo-text {
        font-size: 1.4em;
    }
    .logo-img {
        height: 40px;
    }
}
.brand-watermarks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  opacity: 0.1;
  z-index: 100;
  pointer-events: none;
  flex-wrap: wrap;
  max-width: 250px;
}
.brand-watermarks img {
  height: 40px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (max-width: 768px) {
  .brand-watermarks { display: none; }
}