body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

li {
    font-size: 14pt;
}

header {
    background-color: #ffffff;
    padding: 30px 100px;
    border-bottom: 1px solid #b5b5b5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 30px;
    font-weight: bold;
    color: #1e3b8a;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    color: #1e3b8a;
}

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

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    font-size: 16px;
}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 768px) {
    header {
        padding: 20px 30px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        background-color: #ffffff;
        top: 60px;
        left: 0;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links li {
        margin: 15px 0;
    }

    .menu-icon {
        display: block;
    }
}

.hero {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.hero2 {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

h1 {
    color: #1e3b8a;
    font-size: 28pt;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    h1 {
        font-size: 20pt;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 18pt;
    }
}

p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

.iframe {
    border: 1px solid #b5b5b5;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.filters select,
.filters input[type="date"] {
    flex: 1;
    box-sizing: border-box;
    padding: 0.5rem;
    border: 1px solid #c2c2c2;
    border-radius: 20px;
    font-family: "Segoe UI", Arial, sans-serif !important;
}

.filters select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    min-width: min(100%,240px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='180 -360 600 1200'%3E%3Cpath d='M1015 10q-10-10-23-10t-23 10L512 492 55 10Q45 0 32 0T9 10Q0 20 0 34t9 24l480 506q10 10 23 10t23-10l480-506q9-10 9-24t-9-24z'%20fill%3D%27slategray%27/%3E%3C/svg%3E");
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: calc(100% - 14px) center;
    cursor: pointer;
    font-family: sans-serif;
    outline: none;
}

.date-group {
    display: flex;
    gap: 10px;
    flex: 2;
}

.date-group input[type="date"] {
    flex: 1;
    width: auto;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
    }

    .filters select {
        width: 100%;
    }

    .date-group {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .date-group input[type="date"] {
        flex: 1;
    }
}

.title2 {
    text-align: center;
    font-size: 20pt;
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.intro-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #374151;
    margin-bottom: 2rem;
}

.toggle-intel-btn {
    background-color: #1d4ed8;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.toggle-intel-btn:hover {
    background-color: #1e40af;
}

.hidden {
    display: none;
}

.intel-detail {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #c2c2c2;
    background: #f9fafb;
}

.container {
    max-width: 1080px !important;
    margin: 0 auto;
    padding: 0 1rem;
}

.card {
    background: white;
    padding: 1rem;
    border: 1px solid #c2c2c2;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

h2 {
    color: #1e3b8a;
    font-size: 22pt;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 18pt;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 16pt;
    }
}

.toggle-button {
    margin-top: 0.5rem;
    background: #1e3b8a;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .toggle-button {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

.toggle-button:hover {
    background: #1e40af;
}

.details {
    margin-top: 0.5rem;
    display: none;
}

.hidden {
    display: none !important;
}

.section {
    margin-top: 1rem;
    line-height: 1.4;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.info-table td {
    border: 1px solid #e5e7eb;
    padding: 0.4rem 0.6rem;
}

.info-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.info-table td:first-child {
    font-weight: bold;
    width: 40%;
}

#search {
    width: 100% !important;
    margin-bottom: 10px;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #c2c2c2;
    box-sizing: border-box;
    border-radius: 20px;
}

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

.tables-group .section {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    display: block;
}

.tables-group .info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

.tables-group .info-table td {
    border: 1px solid #ddd;
    padding: 6px;
    vertical-align: top;
}

@media (max-width: 768px) {
    .tables-group {
        grid-template-columns: 1fr;
    }
}

.recursos {
    max-width: 1080px;
    margin: 40px auto;
    padding: 20px;
}

.image {
    width: 47%;
    height: 47%;
    object-fit: contain;
    margin-bottom: -4px;
}

@media (max-width: 767px) {
    .image {
        width: 75%;
        height: auto;
    }
}

.hero-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.funcionalidades {
    background-color: #f9f9f9;
    padding: 40px 20px;
}

.funcionalidades-container {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

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

.funcionalidad-card {
    background: white;
    padding-right: 20px;
    padding-left: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon1 {
    width: 82%;
}

.icon2 {
    width: 53%;
    margin-top: 28px;
}

.icon3 {
    margin-top: 34px;
    width: 58%;
}

@media (max-width: 768px) {
    .icon2 {
        margin-top: 0px;
    }

    .icon3 {
        margin-top: 0px;
    }
}

@media (max-width: 768px) {
    .funcionalidades-grid {
        grid-template-columns: 1fr;
    }
}

.funcionalidad-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faqs {
    background-color: #ffffff;
    padding: 60px 20px;
}

.faqs-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    text-align: left !important;
    padding: 15px 20px;
    font-size: 16pt;
    font-weight: bold;
    background-color: #1e3b8a;
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background-color: #4d82d1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #f9f9f9;
    padding: 0 20px;
}

.faq-answer p,
.faq-answer li {
    font-size: 14pt;
    color: #555;
    margin: 15px 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.resultado h2 {
    margin: 0 0 6px 0;
    font-size: 18pt;
}

.resultado p {
    margin: 10px 0;
    font-size: 12pt;
}

.resultado .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0;
}

.resultado .flex p {
    margin: 0;
}

.resultado .section {
    margin-top: 10px;
}

article {
    padding-bottom: 2px;
}

footer {
    border-top: 1px solid #b5b5b5;
    width: 100%;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #333;
    box-sizing: border-box;
}

footer p {
    max-width: 95%;
    margin: 0 auto;
    font-size: 12pt;
    line-height: 1.4;
}

#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

#pagination .page-link {
    cursor: pointer;
    padding: 4px 8px;
    color: #1e3b8a;
    text-decoration: none;
    user-select: none;
    transition: color 0.2s;
}

#pagination .page-link:hover {
    text-decoration: underline;
}

#pagination .page-link.active {
    font-weight: bold;
    color: #1e3b8a;
    text-decoration: none;
}

#pagination .page-link.disabled {
    color: black;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 768px) {
    #pagination {
        gap: 4px;
        font-size: 14px;
        margin: 10px 0;
    }

    #pagination .page-link {
        padding: 3px 6px;
    }

    #pagination .page-link.active {
        font-size: 14px;
    }

    #pagination .page-link:hover {
        text-decoration: none;
    }
}

.background {
    background-image: url('fondo2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 98%;
}

@media (max-width: 1520px) {
    .background {
        background-image: none;
    }
}

@media (min-width: 1025px) {
    .background {
        background-position: center top;
    }
}

a {
    color: #1e3b8a;
    text-decoration: none;
}

a:hover {
    color: #4d82d1;
}

.caso {
    margin-bottom: 20px;
    text-align: left !important;
}

.caso h3 {
    font-size: 20px;
    color: #1e3b8a;
    margin-bottom: 10px;
}

.caso p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.caso ul {
    list-style-type: disc;
    padding-left: 20px;
}

.caso li {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

.faq-question-container {
    text-align: center;
}

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

.recursos-table th:nth-child(1),
.recursos-table td:nth-child(1) {
    width: 40%;
}

.recursos-table th:nth-child(2),
.recursos-table td:nth-child(2) {
    width: 80%;
}

.recursos-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem auto;
    font-size: 15px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.recursos-table thead {
    background: #1e3b8a;
    color: #fff;
}

.recursos-table th,
.recursos-table td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
}

.recursos-table th {
    font-weight: 600;
    font-size: 18px;
}

.recursos-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.recursos-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.recursos-table tbody tr:hover {
    background: #eef3ff;
}

.recursos-table a {
    color: #1e3b8a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.recursos-table a:hover {
    color: #4d82d1;
}

@media (max-width: 768px) {
    .recursos-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 14px;
    }

    .recursos-table th,
    .recursos-table td {
        padding: 10px 14px;
    }
}

@media (max-width: 768px) {
  .recursos-table {
    display: table;
    width: 100%;
    font-size: 14px;
    border-radius: 12px; /* mantenemos esquinas redondeadas */
    overflow: hidden;
  }

  .recursos-table th,
  .recursos-table td {
    padding: 10px 12px;
    white-space: normal;
    word-wrap: break-word;
  }

  .recursos-table th {
    font-size: 16px; /* reducido respecto a desktop (18px) */
  }
}


.no-results {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-top: 160px;
    margin-bottom: 160px;
}

.icon-recursos {
  width: 20%;
  height: 20%;
  display: block;
  margin: auto;
}

.icon-recursos2 {
  width: 18%;
  height: 18%;
  display: block;
  margin: auto;
}

@media (max-width: 768px) {
  .icon-recursos, .icon-recursos2 {
    width: 40%;
    height: 40%;
  }
}

