/* =========================
   HEADER / NAVBAR
========================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #1f2933;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* CONTENEDOR HEADER */
.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* solo logo, espacio flexible y menú */
    align-items: center;
    gap: 20px;
}


/* LOGO EMPRESA */
.brand-logo {
    max-height: 60px;
    width: auto;
    border-radius: 0;
}

/* CERTIFICADO */
.certificate-img {
    max-height: 42px;
    width: auto;
    border-radius: 0;
}

/* MENÚ */
nav {
    justify-self: end;
    display: none;
}

nav.active {
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

nav a {
    color: #e5e7eb;
    font-size: 0.95rem;
    padding: 6px 0;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

/* =========================
   SECCIONES
========================= */
section {
    padding: 60px 16px;
}

.light {
    background-color: #ffffff;
}

.gray {
    background-color: #eef1f4;
}

.section-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

h2 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: #1f2933;
}

p {
    margin-bottom: 14px;
    color: #444;
}

/* =========================
   LISTAS LIMPIAS
========================= */
ul.clean {
    list-style: none;
    margin-top: 10px;
}

ul.clean li {
    margin-bottom: 8px;
    padding-left: 14px;
    position: relative;
}

ul.clean li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
}

/* =========================
   CONTACTO
========================= */
.contact-box {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =========================
   TABLET Y DESKTOP
========================= */
@media (min-width: 700px) {

    .menu-toggle {
        display: none;
    }

    nav {
        display: block;
    }

    nav ul {
        flex-direction: row;
        gap: 22px;
        margin-top: 0;
    }

    h2 {
        font-size: 1.9rem;
    }
}

/* =========================
   ESCRITORIO GRANDE
========================= */
@media (min-width: 1000px) {

    section {
        padding: 80px 20px;
    }

    .section-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .section-container.reverse {
        direction: rtl;
    }

    .section-container.reverse>* {
        direction: ltr;
    }
}

/* =========================
   MÓVIL
========================= */
@media (max-width: 699px) {

    .brand-logo {
        max-height: 40px;
    }

    .certificate-img {
        max-height: 34px;
        opacity: 0.85;
    }
}

/* Sección común con 3 columnas y una imagen al lado */
.grid-3cols {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 texto, 1/3 imagen */
    align-items: start;
    gap: 30px;
}

.grid-3cols .columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-3cols .columns ul {
    list-style: none;
}

.grid-3cols .columns li {
    padding-left: 14px;
    position: relative;
}

.grid-3cols .columns li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
}

.grid-3cols .image-side img {
    width: 80%;
    border-radius: 8px;
}

.grid-3cols .columns div h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #1f2933;
}


/* Responsive: en móvil que baje todo a una columna */
@media (max-width: 999px) {
    .grid-3cols {
        grid-template-columns: 1fr;
    }

    .grid-3cols .columns {
        grid-template-columns: 1fr;
    }

    .grid-3cols .image-side {
        margin-top: 20px;
    }
}

/* =========================
   DEMOS - BOTONES
========================= */
.demo-buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    background-color: #2563eb;
    color: #fff;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.demo-btn:hover {
    background-color: #1e4ed8;
    transform: translateY(-1px);
}

/* Variante secundaria (PDF) */
.demo-btn.secondary {
    background-color: #374151;
}

.demo-btn.secondary:hover {
    background-color: #1f2933;
}

/* Móvil: botones a ancho completo */
@media (max-width: 699px) {
    .demo-btn {
        width: 100%;
        justify-content: center;
    }
}

/* === TABS === */
.tabs {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.tab-btn {
    padding: 10px 16px;
    border: none;
    background-color: #e5e7eb;
    color: #1f2933;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tab-btn.active {
    background-color: #2563eb;
    color: #fff;
}

/* === TAB CONTENT === */
.tab-content {
    display: none;
    margin-top: 16px;
}

.tab-content.active {
    display: block;
}

/* === ACORDEÓN === */
.accordion-btn {
    background-color: #f3f4f6;
    color: #1f2933;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.2s ease;
    font-weight: 600;
    border-radius: 6px;
    margin-top: 8px;
}

.accordion-btn.active {
    background-color: #2563eb;
    color: #fff;
}

.accordion-panel {
    padding: 0 12px;
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    border-radius: 6px;
    margin-bottom: 8px;
}

.accordion-panel ul {
    padding: 12px 0;
    list-style: none;
}

.accordion-panel ul li {
    padding: 6px 0;
}

.accordion-panel ul li a {
    color: #2563eb;
    font-weight: 500;
}

/*Iconos de Font Awesome en azul*/
.contact-box i {
    color: #007bff;
    /* azul bonito */
    margin-right: 8px;
}

/* Grid para sección con imagen lateral */
.section-container.grid-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
}

.section-container.grid-2cols .image-side {
    text-align: center;
}

.section-container.grid-2cols .section-img {
    width: 100%;
    max-width: 300px;
    /* tamaño similar a tus imágenes laterales */
    border-radius: 8px;
    object-fit: contain;
}

/* Acordeón sigue igual */
.accordion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #007bff;
    color: white;
    cursor: pointer;
    padding: 12px 20px;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #0056b3;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f1f1f1;
    border-radius: 0 0 5px 5px;
    margin-bottom: 10px;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .section-container.grid-2cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Botón rojo para Anydesk */
.red-btn {
    background-color: #d9534f;
    /* rojo tipo bootstrap */
    color: white;
}

.red-btn:hover {
    background-color: #c9302c;
    /* más oscuro al hover */
}

/* Botón azul para Supremo (más azul, menos cyan) */
.blue-btn {
    background-color: #3b82f6;
    /* azul moderno */
    color: white;
}

.blue-btn:hover {
    background-color: #2563eb;
    /* hover coherente con la web */
}



/* =========================
   RECURSOS – BOTONES
========================= */
.resources-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.resource-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: #2563eb;
    color: #fff;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.resource-btn:hover {
    background-color: #1e4ed8;
    transform: translateY(-2px);
}

/* =========================
   MODAL
========================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    padding: 24px;
    border-radius: 12px;
    position: relative;
    overflow-y: auto;
}

.modal h3 {
    margin-bottom: 16px;
    color: #1f2933;
}

.modal ul {
    list-style: none;
}

.modal ul li {
    margin-bottom: 10px;
}

.modal ul li a {
    color: #2563eb;
    font-weight: 500;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

/* Iconos de aplicaciones (AnyDesk / Supremo) */
.app-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
}

.demo-btn .app-icon {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* =========================
   MENÚ MÓVIL MEJORADO
========================= */
@media (max-width: 699px) {

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1f2933;
        padding: 0 20px;
        overflow: hidden;

        /* animación */
        max-height: 0;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    }

    nav.active {
        max-height: 500px;
        /* suficiente para todos los links */
        opacity: 1;
        padding-bottom: 16px;
    }

    nav ul {
        margin-top: 16px;
        gap: 18px;
    }

    nav a {
        display: block;
        font-size: 1.05rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav li:last-child a {
        border-bottom: none;
    }

    /* Botón hamburguesa más fino */
    .menu-toggle {
        font-size: 1.8rem;
        padding: 6px;
        line-height: 1;
    }
}

/* =========================
   HAMBURGUESA ANIMADA
========================= */
.menu-toggle {
    position: relative;
    width: 32px;
    height: 24px;
    font-size: 0;
    /* ocultamos el símbolo ☰ */
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Tres líneas */
.menu-toggle::before {
    top: 0;
}

.menu-toggle span {
    top: 10px;
}

.menu-toggle::after {
    bottom: 0;
}

/* Estado abierto → ✖ */
.menu-toggle.open::before {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.open span {
    opacity: 0;
}

.menu-toggle.open::after {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 699px) {
    .menu-toggle {
        justify-self: end;
        margin-left: auto;
    }
}

/* Botón PDF en sección Demos en rojo */
#demos .demo-btn.secondary {
    background-color: #dc2626;
    /* rojo PDF */
}

#demos .demo-btn.secondary:hover {
    background-color: #b91c1c;
}

/* Supremo – forzar azul sobre secondary */
.demo-btn.secondary.blue-btn {
    background-color: #3b82f6;
    /* azul más marcado */
}

.demo-btn.secondary.blue-btn:hover {
    background-color: #2563eb;
}

.orange-btn {
    background-color: #f57c00;
    color: #fff;
}

.orange-btn:hover {
    background-color: #ef6c00;
}

html {
    scroll-behavior: smooth;
}