/* 1. RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    width: 100%;
    overflow-x: hidden;
}

/* 2. ENCABEZADO Y LOGO (Logo a la derecha extrema, escala corporativa) */
.top-bar {
    background-color: #ffffff;
    width: 100%;
    padding: 10px 0;
}

    /* 2. ENCABEZADO Y LOGO */
.header-container {
    width: 100%;
    max-width: 95%; 
    margin: 0 auto;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    padding: 0 40px;
}

.logo-link {
    display: inline-block;
    cursor: pointer;
}

.main-logo {
    /* Usamos un alto fijo para estandarizar Chrome y Edge */
    height: 180px; 
    width: auto;
    /* Mantenemos tus límites de seguridad por si acaso */
    min-width: 300px;
    max-width: 500px;
    display: block;

/* ==========================================
   7. SECCIÓN DE LA APPLET EN VIVO (AMET BASIC)
   ========================================== */
.applet-section {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(15, 15, 15, 0.95)), url('imagen1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 4px solid rgb(118, 37, 218); /* Separador estético con el tono de SYSA */
}

.applet-container {
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 1100px;
    padding: 40px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
}

/* Responsivo para el tráfico móvil (iOS) */
@media (max-width: 900px) {
    .applet-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

.applet-inputs {
    background-color: #0d0d0d;
    padding: 30px 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.applet-inputs label {
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.applet-inputs select, .applet-inputs input {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 15px;
    width: 100%;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.applet-inputs input:focus, .applet-inputs select:focus {
    outline: none;
    border-color: #8BEA0E;
}

.applet-display {
    background-color: #050505;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px;
}

.applet-canvas-wrapper {
    width: 100%;
    flex-grow: 1;
    min-height: 320px;
    background: radial-gradient(circle, #111111 0%, #000000 100%);
    border-radius: 8px;
    position: relative;
}

.applet-canvas-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.applet-results {
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.result-box {
    background-color: #0d0d0d;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #8BEA0E;
}

.result-value {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-top: 4px;
}
}

/* 3. CINTA NEGRA Y MENÚ */
.nav-ribbon {
    background-color: #000000;
    width: 100%;
    min-height: 6vh; 
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-btn {
    color: #ffffff;
    text-decoration: none;
    padding: 2vh 3vw; 
    font-size: max(16px, 1vw); /* Corregido a 16px mínimo para que sea legible */
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: 0.3s ease;
    /* AGREGAMOS ESTO PARA QUE EN EDGE NO SE PEGUEN */
    margin-right: 20px; 
}

.nav-btn:hover {
    background-color: #222222;
    color: #8BEA0E;
}

/* 4. SECCIÓN HERO (Fondo azul ajustado) */
.hero-image {
    background-image: linear-gradient(rgba(1, 24, 231, 0.6), rgba(1, 24, 231, 0.6)), url('imagen1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding-top: 60px;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    justify-content: flex-start;
    flex-grow: 1; /* Añade esto para que el contenedor se expanda */
}


/* 5. PANEL DE AMET (Modifica solo estas propiedades dentro de .dark-panel) */
.dark-panel {
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    padding: 40px 40px;
    
    /* ESTA ES LA CORRECCIÓN BASADA EN EL SITIO ESTABLE */
    width: 800px;           /* Ancho fijo para PC */
    min-width: 320px;       /* Tamaño mínimo para móviles */
    max-width: 90%;         /* Asegura que no se salga de la pantalla */
    
    /* Evita que Chrome lo comprima (el error principal) */
    flex-shrink: 0; 
    
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

    /* CONTROL DE ALTURA */
    height: 10px;      /* Altura rígida (no recomendada si el texto es mucho) */
    min-height: 300px;  /* Altura mínima: el panel no será más chico que esto, 
                           pero crecerá si agregas más texto */
}

.hero-content {
    display: flex;
    flex-direction: column; /* Apila los cuadros verticalmente */
    align-items: flex-start; /* Los alinea al inicio (izquierda) */
   
    
    /* VALORES DE POSICIÓN QUE DEBES AJUSTAR: */
    width: 100%;             /* Asegura que ocupe todo el ancho */
    max-width: 100%;          /* Quita el límite de 1200px */
    margin: 10px;                /* Quita el centrado automático */
    /*padding-left: 150px;       /* Ahora este valor sí mandará. Ponle 20px o 0px */
    gap: 40px;            /* Cambia este número para separar más o menos los paneles */
    width: 100%;
    min-height: 100vh;      /* Permite que el fondo crezca si hay muchos cuadros */
}   

.panel-title {
    color: #8BEA0E; /* Tu verde AMET característico */
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel-description {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
    max-width: 80%; /* Deja espacio para el icono de la derecha */
    margin-bottom: 40px;
}

.amet-logo {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 80px; /* Tamaño del icono de AMET en la esquina */
    height: auto;
}

/* 6. BOTONES DEL PANEL */
.panel-buttons {
    display: flex;
    gap: 50px;
}

.btn-green {
    background-color: #8BEA0E;
    color: #000000;
    
    /* DEFINICIÓN DE TAMAÑO FIJO */
    width: 180px;              /* El ancho exacto definido por nosotros */
    height: 50px;             /* Altura fija opcional para total simetría */
    
    /* CENTRADO DE TEXTO */
    display: flex;
    justify-content: center;   /* Centra horizontalmente */
    align-items: center;       /* Centra verticalmente */
    
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid #8BEA0E;
}

.btn-green:hover {
    background-color: transparent;
    color: #8BEA0E;
    transform: translateY(-2px);
}

.contenedor-panel {
    background-color: rgba(0, 0, 0, 0.8); /* El color oscuro con transparencia */
    
    /* CAMBIO CLAVE: Usar porcentajes y ancho máximo */
    width: 90%;            /* Ocupa casi todo el ancho en móviles */
    max-width: 500px;      /* No permite que se estire demasiado en PC */
    
    /* Centrado y espaciado */
    margin: 40px auto;     /* Centra el panel horizontalmente */
    padding: 40px;         /* Espacio interno para que el texto respire */
    border-radius: 15px;   /* Bordes suavizados para que se vea moderno */
    
    /* Flexbox para alinear el contenido interno */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.resaltado-verde {
    color: #8BEA0E;
    font-weight: bold; /* Esto hará que resalte aún más sobre el fondo oscuro */
}

/* Color original para AMET (Verde) */
.resaltado-verde {
    color: #8BEA0E;
    font-weight: bold;
}

/* Color nuevo para SYSA (Morado 118, 37, 218) */
.resaltado-morado {
    color: rgb(118, 37, 218);
    font-weight: bold;
}

/* --- TEMA MORADO PARA SYSA (RGB 118, 37, 218) --- */

/* Color de texto para el título y descripciones resaltadas */
.sysa-theme .panel-title,
.sysa-theme .resaltado-morado {
    color: rgb(118, 37, 218) !important;
}

/* Estilo de los botones morados */
.btn-purple {
    background-color: rgb(118, 37, 218);
    color: #ffffff; /* Texto blanco para mejor contraste */
    width: 180px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid rgb(118, 37, 218);
}

.btn-purple:hover {
    background-color: transparent;
    color: rgb(118, 37, 218);
}

/* ==========================================
   7. NUEVA ARQUITECTURA DE PANELES EN PARALELO
   ========================================== */

/* Redefinimos el contenedor Hero para admitir la columna izquierda y derecha */
.hero-image {
    background-image: linear-gradient(rgba(1, 24, 231, 0.6), rgba(1, 24, 231, 0.6)), url('imagen1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
}

/* El nuevo layout maestro que equilibra las dos zonas */
.hero-content-layout {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 500px; /* Panel izquierdo flexible, applet derecho fijo a 500px */
    gap: 40px;
    align-items: flex-start;
}

/* Apila verticalmente AMET PRO y SYSA a la izquierda */
.programs-stack {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
}

/* Forzamos a que tus dark-panels originales se adapten fluidamente a su columna */
.dark-panel {
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    padding: 35px;
    width: 100% !important; /* Anula el ancho fijo de 800px para que no desborde */
    max-width: 850px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    min-height: 280px;
}

/* EL NUEVO PANEL DE AMET BASIC: Alargado de arriba a abajo y esquinas redondeadas */
.dark-panel-applet {
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 25px; /* Esquinas suavizadas de forma pronunciada */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    padding: 30px;
    width: 100%;
    height: 620px; /* Estructura extendida verticalmente */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Configuración de controles internos */
.applet-controls-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-field label {
    font-size: 12px;
    color: #ffffff;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.applet-controls-grid select, .applet-controls-grid input {
    background-color: #111111;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
}

.applet-controls-grid input:focus, .applet-controls-grid select:focus {
    outline: none;
    border-color: #8BEA0E;
}

.input-row-label {
    font-size: 11px;
    color: #8BEA0E;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 6px;
    margin-bottom: 2px;
}

.input-triple-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* Monitor de simulación dinámico */
.applet-monitor-zone {
    flex-grow: 1;
    background: radial-gradient(circle, #111111 0%, #000000 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 15px 0;
    position: relative;
}

.applet-monitor-zone canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Barra de lecturas inferiores */
.applet-results-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-result-box {
    background-color: #0d0d0d;
    padding: 10px 5px;
    border-radius: 6px;
    border-left: 3px solid #ffffff;
    text-align: center;
}

.mini-result-box span {
    font-size: 9px;
    color: #555;
    display: block;
    text-transform: uppercase;
    font-weight: bold;
}

.mini-result-box div {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    margin-top: 2px;
}

.mini-result-box.color-green { border-left-color: #8BEA0E; }
.mini-result-box.color-purple { border-left-color: rgb(118, 37, 218); }

/* Soporte responsivo para iPhones / Móviles */
@media (max-width: 1100px) {
    .hero-content-layout {
        grid-template-columns: 1fr;
    }
    .dark-panel-applet {
        height: auto;
    }
}

/* ==========================================
   8. PIE DE PAGINA (Terms | Privacy | Refund | FAQ)
   ========================================== */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
}

.site-footer p {
    color: #aaaaaa;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 6px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8BEA0E;
}

.footer-links span {
    color: #555555;
}


/* ==========================================
   9. HOME
   ========================================== */

/* Banner reducido: la imagen se recorta, no se deforma */
.home-banner-container {
    width: 100%;
    height: clamp(200px, 28vw, 340px);
    overflow: hidden;
    background-color: #000000;
}

.full-width-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Secciones */
.home-section {
    width: 100%;
    padding: 70px 20px;
}

.home-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.home-dark { background-color: #000000; color: #ffffff; }
.home-light { background-color: #f4f6fb; color: #111111; }
.home-blue {
    background-color: #0a1a8f;
    background-image: linear-gradient(rgba(1, 24, 231, 0.6), rgba(1, 24, 231, 0.6)), url('imagen1.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

/* Titulos y textos */
.home-h1 {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.2;
    text-align: center;
    margin-bottom: 20px;
}

.home-h2 {
    font-size: clamp(24px, 3vw, 34px);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.home-h2-green { color: #8BEA0E; margin-bottom: 15px; }
.home-h2-dark { color: #111111; }
.home-h2-black { color: #000000; text-align: center; }

.home-lead {
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #dddddd;
}

.home-lead-left { text-align: left; margin: 0; }

.home-text { font-size: 17px; line-height: 1.7; }
.home-text a, .home-card a:not([class]) { color: #0118e7; font-weight: bold; }

/* Llamados a la accion */
.home-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 35px;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    width: 180px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    border-color: #8BEA0E;
    color: #8BEA0E;
    transform: translateY(-2px);
}

.btn-black {
    background-color: #000000;
    color: #8BEA0E;
    width: 180px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.btn-black:hover {
    background-color: transparent;
    color: #000000;
    transform: translateY(-2px);
}

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

.home-card {
    background-color: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #8BEA0E;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-card h3 {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.home-card p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.home-card.card-purple { border-top-color: rgb(118, 37, 218); }

.home-card.card-light {
    background-color: #ffffff;
    color: #111111;
    border: 1px solid #e1e5ee;
    border-top: 4px solid #8BEA0E;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.home-card.card-light p { margin-bottom: 0; }

.home-card-logo {
    width: 64px;
    height: auto;
    margin-bottom: 18px;
}

.home-icon {
    width: 44px;
    height: 44px;
    color: #5fae00;
    margin-bottom: 14px;
}

/* Demo */
.home-demo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.home-demo-inner > div:first-child { flex: 1 1 520px; }

/* Banda de compra */
.home-cta-band { background-color: #8BEA0E; }

/* Acerca de y contacto */
.home-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Navegacion en pantallas pequenas */
@media (max-width: 900px) {
    .nav-container { flex-wrap: wrap; }
    .nav-btn { padding: 12px 14px; margin-right: 0; font-size: 14px; }
    .main-logo { height: 100px; min-width: 0; }
    .home-section { padding: 50px 16px; }
}


/* ==========================================
   10. MEMORIA DE CALCULO (AMET BASIC)
   ========================================== */
.report-section {
    background-color: #050a24;
    width: 100%;
    padding: 60px 20px;
}

.report-panel {
    background-color: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    color: #ffffff;
    line-height: 1.6;
}

.report-title {
    color: #8BEA0E;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.report-sub {
    color: #aaaaaa;
    font-size: 14px;
    margin-bottom: 10px;
}

.report-panel h3 {
    color: #8BEA0E;
    font-size: 17px;
    margin: 28px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(139, 234, 14, 0.3);
}

.report-panel p { margin-bottom: 8px; font-size: 15px; }

.report-note { color: #aaaaaa; font-size: 13px !important; }

.report-eq {
    overflow-x: auto;
    padding: 6px 0;
}

.report-panel math {
    font-size: 1.15em;
    color: #ffffff;
}

/* Espaciado entre columnas y filas de las matrices */
.report-panel mtd {
    padding: 0.18em 0.65em;
}

.report-table {
    border-collapse: collapse;
    margin: 10px 0 14px;
    font-size: 14px;
}

.report-table th,
.report-table td {
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 16px;
    text-align: center;
}

.report-table th {
    background-color: #111111;
    color: #8BEA0E;
}

@media (max-width: 700px) {
    .report-section { padding: 30px 12px; }
    .report-panel { padding: 22px 16px; }
}
