/* Fuentes: Usamos una tipografía limpia y corporativa */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary-red: #E30613;
    --bg-dark: #0a0a0a;
    --bg-card: #161616;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}
.hero-section {
     background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/th.jpg') center center / cover no-repeat;
      color: #fff;
      padding: 100px 0;
      text-align: center;
 }
.hero-section h1, .hero-section p {
      text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
 }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contenedor Principal de la Sección */
.servicios-container {
    padding: 80px 0;
    background-color: var(--bg-dark); /* Fondo negro de STATO */
    color: var(--text-light);
    text-align: center;
}

.section-title-exec {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title-exec span {
    color: var(--primary-red); /* Palabra "Integrales" en rojo */
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 1.1rem;
}
/* Ajuste para que nada se salga de la página */
.sistemas-portfolio {
    overflow-x: hidden; /* Evita el scroll horizontal */
    padding: 60px 0;
}

.sistemas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Se adapta al ancho disponible */
    gap: 25px;
    width: 100%;
}

.sistema-card {
    background: var(--bg-card);
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden; /* Corta cualquier cosa que intente salirse */
    width: 100%;      /* Obliga a la tarjeta a respetar el grid */
    box-sizing: border-box;
}

.sistema-img-container {
    width: 100%;
    height: 200px;    /* Altura fija para uniformidad */
    overflow: hidden;
    position: relative;
}

.sistema-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin deformarla */
    display: block;
}
/* Control total de las imágenes dentro de las tarjetas */
.img-fit {
    width: 100%;            /* Ocupa todo el ancho de la tarjeta */
    max-width: 100%;        /* Nunca se sale del borde */
    height: 200px;          /* Altura uniforme para todas las tarjetas */
    object-fit: contain;    /* Muestra la imagen completa sin deformar (ideal para software) */
    background-color: #000; /* Fondo negro por si la imagen no llena todo el cuadro */
    display: block;
}

.sistema-img-container {
    width: 100%;
    overflow: hidden;       /* Corta cualquier desborde */
    border-bottom: 1px solid #222;
}
/* Responsive: En celulares muy pequeños, el grid baja a 1 columna */
@media (max-width: 480px) {
    .sistemas-grid {
        grid-template-columns: 1fr;
    }
}
.img-fit {
    width: 100%;            /* Se ajusta al ancho del contenedor */
    max-width: 100%;        /* Nunca será más grande que su padre */
    height: 220px;          /* Altura fija para que todas las tarjetas midan lo mismo */
    object-fit: contain;    /* Muestra la captura completa sin recortar (ideal para sistemas) */
    background-color: #000; /* Fondo negro por si la imagen es proporcionalmente distinta */
    display: block;
    margin: 0 auto;
}

/* Opcional: Si prefieres que la imagen llene todo el cuadro (se verá más lleno) */
.img-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;      /* Recorta un poco los bordes pero llena el espacio */
}

/* Contenedor del grid para asegurar que no haya desbordamiento horizontal */
.sistemas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;       /* Corta cualquier desborde accidental */
}
/* Grid de 3 columnas */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjeta Individual */
.servicio-card {
    background: var(--bg-card); /* Gris oscuro #161616 */
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #222;
    transition: all 0.3s ease;
}

.servicio-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Iconos */
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.servicio-card h5 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.servicio-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Botón "Ver más" */
.btn-ver-mas {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--primary-red);
    padding: 8px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-ver-mas:hover {
    background: var(--primary-red);
    color: white;
}

/* Contenedor principal (fondo oscuro transparente) */
.custom-modal {
    display: none; /* Se activa con JS */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px); /* Desenfoque de fondo muy moderno */
}

/* Caja del modal */
.modal-content-wrapper {
    position: relative;
    background-color: #161616; /* Color de tus tarjetas */
    margin: 10% auto;
    width: 60%;
    max-width: 800px;
    border: 1px solid #333;
    border-top: 4px solid var(--primary-red); /* Acento superior rojo */
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

/* Encabezado */
.modal-header-exec {
    padding: 20px 30px;
    border-bottom: 1px solid #222;
}

.modal-header-exec h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Cuerpo del modal */
.modal-body-exec {
    padding: 30px;
    color: #cccccc;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-inner-content {
    line-height: 1.6;
    font-size: 1rem;
}

.modal-inner-content.secondary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dotted #333;
}

/* Botón de cerrar (X) */
.close-modal-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--primary-red);
    color: white;
    width: 35px;
    height: 35px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.close-modal-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background-color: #ff1a1a;
}

/* Footer */
.modal-footer-exec {
    padding: 15px 30px;
    text-align: right;
    border-top: 1px solid #222;
}

.btn-footer-close {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-footer-close:hover {
    border-color: var(--primary-red);
    color: white;
}

/* Ajuste de logos para que no se vean gigantes */
.mobile-visuals {
    background: var(--bg-card);
    padding: 30px; /* Reducimos el padding interno */
    border-radius: 12px;
    border: 1px solid #222;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px; /* Limitamos el ancho del contenedor gris */
    margin: 0 auto;   /* Lo centramos */
}

.logo-wrapper {
    display: flex;
    gap: 30px; /* Espacio entre Android e iOS */
    align-items: center;
}

.mobile-logo {
    max-width: 65px; /* ANTES ERA 120px, ahora 65px para que sea sutil */
    height: auto;
    filter: grayscale(1) brightness(1.2);
    transition: all 0.3s ease;
}

.mobile-logo:hover {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1);
}


/* Animación de entrada */
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* Header */
header {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid #333;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px; /* Ajusta según el tamaño de tu archivo stato.png */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-red);
}

.btn-contact {
    background-color: var(--primary-red);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600 !important;
}

/* Footer */
footer {
    background-color: #050505;
    padding: 60px 0 20px 0;
    border-top: 1px solid #1a1a1a;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    color: #444;
    font-size: 0.8rem;
} 