:root {
    --primary-color: #0066cc;
    --primary-color-rgb: 0, 102, 204;
    --secondary-color: #003366;
    --accent-color: #ff9900;
    --text-color: #333333;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --container-padding: 2rem; /* Nuevo: padding consistente para los contenedores */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--container-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.logo-img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Main content */
main {
    padding-top: 80px; /* Ajusta este valor según la altura de tu header */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/tech-pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Services Section */
#servicios {
    padding: 4rem 0;
    background-color: var(--white);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

#servicios h2 {
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.service-item {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* About Us Section */
#sobre-nosotros {
    padding: 4rem var(--container-padding);
    background-color: var(--bg-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Wiux Section */
#wiux {
    padding: 4rem var(--container-padding);
    background-color: var(--white);
}

.wiux-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.wiux-image {
    flex: 1;
}

.circular-logo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: #f2f2f2; /* Cambiado a #f2f2f2 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.circular-logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    background-color: #f2f2f2; /* Aseguramos que el fondo de la imagen también sea #f2f2f2 */
}

.wiux-info {
    flex: 2;
}

.wiux-info ul {
    list-style-type: none;
    padding-left: 1.5rem;
}

.wiux-info li {
    margin-bottom: 0.5rem;
    position: relative;
}

.wiux-info li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
}

/* Contact Section */
#contacto {
    padding: 4rem var(--container-padding);
    background-color: var(--bg-color);
}

#contacto h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-content {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    flex: 1;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: var(--secondary-color);
}

.contact-info {
    flex: 1;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-details {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-item i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.social-media {
    margin-bottom: 1.5rem;
}

.social-media a {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--secondary-color);
}

.contact-map {
    flex-grow: 1;
    min-height: 200px;
    border-radius: 5px;
    overflow: hidden;
}



#solucion {
    padding: 4rem var(--container-padding);
    background-color: var(--white);
}

#sistema-centralizado {
    padding: 4rem var(--container-padding);
    background-color: var(--white);
}

#sondas {
    padding: 4rem var(--container-padding);
    background-color: var(--bg-color);
}
#agentes {
    padding: 4rem var(--container-padding);
    background-color: var(--bg-color);
}
#problema {
    padding: 4rem var(--container-padding);
    background-color: var(--bg-color);
}


.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px; /* Espacio entre las columnas */
}

.text-content {
    flex: 1;
    max-width: 50%; /* Alineamos verticalmente el contenido */
    align-items: center;

}

.section-image {
    flex: 1;
    
    display: flex;
    justify-content: center;
}

.section-image img {
    height: auto;
    display: block;
}











/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-section {
    flex: 1;
    margin-right: 2rem;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-newsletter form {
    display: flex;
    margin-top: 1rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px 0 0 4px;
}

.footer-newsletter button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: #e68a00;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}



/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes slideInFromLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-left {
    animation: slideInFromLeft 0.5s ease-out;
}

@keyframes slideInFromRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-right {
    animation: slideInFromRight 0.5s ease-out;
}

html {
    scroll-behavior: smooth;
}

/* Estilos para el contenedor de títulos de sección */
.section-title-container {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}

/* Estilo principal para títulos de sección */
.section-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

/* Línea decorativa debajo del título */
.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    margin: 12px auto;
    border-radius: 2px;
}

/* Subtítulo con estilo */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.8;
}

/* Elemento decorativo de fondo */
.title-bg-element {
    position: absolute;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(var(--primary-color-rgb), 0.09);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 1;
    text-transform: uppercase;
}

/* Mensaje de éxito */
.success-message {
    color: var(--white);
    background-color: rgb(8, 198, 103);
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mensaje de error */
.error-message {
    color: var(--white);
    background-color: #ff4d4d; /* Color rojo para indicar error */
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



/* Mostrar menú como hamburguesa en dispositivos móviles */
@media (max-width: 768px) {
    nav {
        position: relative;
    }

    .logo {
        flex: 1;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav ul li {
        margin: 1rem 0;
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 2rem;
        color: var(--primary-color);
    }

    .circular-logo{
        width: 125px;
        height: 125px;
        border-radius: 50%;
        background-color: #f2f2f2; /* Cambiado a #f2f2f2 */
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}
/* Ajustes para mejorar la visualización en móviles */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        gap: 1rem;
    }

    .section-image, .text-content {
        max-width: 100%;
    }

    .text-content {
        padding: 1rem;
    }
}
@media (max-width: 768px) {
    h1, h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}
/* Estilos del menú hamburguesa */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Ocultar el menú en móviles */
nav ul {
    display: flex;
    list-style-type: none;
}

@media (max-width: 768px) {
    nav {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 1rem 0;
        text-align: center;
    }

    nav ul li a {
        color: var(--secondary-color);
    }
}

/* Ajustes generales para pantallas pequeñas */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem; /* Asegura que haya suficiente padding en dispositivos móviles */
        max-width: 100%; /* Forzar a que el ancho máximo sea 100% en móviles */
        box-sizing: border-box;
    }

    /* Para evitar que las secciones se desborden */
    section {
        padding: 2rem 1rem;
    }

    /* Imágenes que se cortan */
    .section-image img {
        max-width: 100%;
        height: auto;
    }

    /* Corregir botones y elementos de llamado a la acción */
    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    /* Secciones que están usando flexbox y causando problemas en móviles */
    .flex-container {
        flex-direction: column;
        padding: 1rem 0;
    }

    /* Asegurarse de que las imágenes ocupen el ancho completo */
    .flex-container .section-image {
        max-width: 100%;
    }

    .flex-container .text-content {
        max-width: 100%;
    }
}



/* Asegurarse de que las imágenes y textos se adapten correctamente */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }

    .flex-container .section-image {
        order: 1;
        margin-bottom: 1rem;
    }

    .flex-container .text-content {
        order: 2;
    }

    /* Ajustar el tamaño de los títulos */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    /* Ajuste del grid de servicios */
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 1rem;
    }

    /* Ajustar tamaño de imágenes en cada sección */
    .section-image img {
        max-width: 100%;
        height: auto;
    }
}





/* Ajustes adicionales para flex y grid */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .flex-container {
        flex-direction: column;
    }

    .text-content, .section-image {
        max-width: 100%;
    }

    .section-image img {
        width: 100%;
        height: auto;
    }
}