/* 
   Theme: Mofima Replica
   Colors: Navy (#002060), Gold (#C5A059), White, Light Gray
*/

:root {
    --primary-blue: #002060;
    --primary-dark: #001540;
    --accent-gold: #C5A059;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-dark);
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Utilities */
.text-center {
    text-align: center;
}

.blue {
    color: var(--primary-blue);
    font-size: 33px;
}

.gold-text {
    color: var(--accent-gold);
    font-size: 22px;
}

.section-padding {
    padding: 60px 0;
}

.mb-40 {
    margin-bottom: 40px;
    font-size: 33px;
}

.mt-50 {
    margin-top: 50px;
}

.mt-20 {
    margin-top: 20px;
}

.bg-light {
    background-color: var(--bg-light);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* Main Header */
.main-header {
    background: #fff;
    padding: 5px 0;
    /* Increased padding (mas ancho) */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    /* Increased for better visibility */
    background: transparent;
    width: auto;
    max-width: 250px;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-menu a {
    font-weight: 500;
    color: var(--primary-dark);
    /* Darker text for menu items */
    font-size: 15px;
}

.btn-sirea {
    background-color: #0E1C36;
    /* Dark Navy from image */
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 25px;
    /* Rounded pill shape */
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-sirea:hover {
    background-color: var(--accent-gold);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 10px 0;
    display: none;
    border-top: 3px solid var(--accent-gold);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-weight: 400;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--accent-gold);
}

/* Split Hero */
.split-hero {
    display: flex;
    height: 100vh;
    min-height: 500px;
}

.hero-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 60px;
}

/* Placeholder backgrounds */
.left-half {
    background-image: linear-gradient(rgba(0, 32, 96, 0.6), rgba(0, 32, 96, 0.7)), url('../img/hero/imagen_1.jpg');
    justify-content: center;
}

.right-half {
    background-image: linear-gradient(rgba(0, 50, 120, 0.6), rgba(0, 50, 120, 0.7)), url('../img/hero/imagen_2.jpg');
    /* Concept */
    justify-content: flex-end;
    /* Align right contextually */
    text-align: right;
}

.hero-half .content {
    width: 100%;
    max-width: 700px;
    animation: fadeInDown 1s ease-out forwards;
    text-align: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-content {
    text-align: center;
}

.right-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-half h2 {
    font-size: 45px;
    /* Bigger titles */
    line-height: 45px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-half p {
    font-size: 14px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    /* Evita que el párrafo sea demasiado largo de leer */
}

.hero-half .buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-half .buttons a {
    flex: 1;
    /* Esto hace que cada botón ocupe la misma proporción del ancho total */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn-white {
    background: #fff;
    color: var(--primary-blue);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 15px;
}

.btn-transparent {
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
}

.btn-transparent:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .split-hero {
        height: auto;
        min-height: 400px;
        padding: 40px 0;
    }

    .hero-half {
        padding: 30px;
        flex: none;
        width: 100%;
    }

    .hero-half .buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-white,
    .btn-transparent {
        width: 100%;
        text-align: center;
    }
}

/* Mission cards */
.gold-text-title {
    color: var(--accent-gold);
    font-size: 26px;
    margin-top: 30px;
    font-weight: 700;
}

.card-mission,
.card-vision {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    text-align: left;
    border-top: 5px solid transparent;
}

.card-mission {
    border-color: var(--primary-blue);
}

.card-vision {
    border-color: var(--accent-gold);
}

.card-mission h4,
.card-vision h4 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* Service Highlights */
.service-highlight {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid transparent;
}

.border-gold-left {
    border-left-color: var(--accent-gold);
}

.border-blue-left {
    border-left-color: var(--primary-blue);
}

.blue-text {
    color: var(--primary-blue);
    font-size: 22px;
}

/* Certifications */
.iso-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.iso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iso-item img {
    height: 100px;
    margin-bottom: 20px;
}

.btn-download-iso {
    background: #0E1C36;
    color: #fff;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-download-iso:hover {
    background: var(--accent-gold);
}

.regaju {
    background: #fff;
    padding: 30px;
    display: inline-block;
    border-radius: 10px;
}

.has-shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Light shadow for container */
}

/* Benefits Scope Cards */
.text-card-shadow {
    background: #fff;
    padding: 40px;
    /* Generous padding */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Distinct shadow */
}

.text-card-shadow .blue-title {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 800;
    font-size: 24px;
    text-transform: uppercase;
}

.text-card-shadow p {
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: justify;
}

/* New Services Card Design */
.services-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card-new {
    background-color: #2b334d;
    /* Dark matching the image */
    border-radius: 8px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.icon-service {
    font-size: 50px;
    color: #ffffff;
    margin-bottom: 25px;
}

.service-card-new h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card-new p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.btn-saber-mas {
    background-color: #dcb360;
    /* Gold color */
    color: #000000;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
    text-transform: none;
    /* Keep original casing or capitalize */
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: auto;
}

.btn-saber-mas:hover {
    background-color: #fce296;
    /* Lighter gold */
    color: #000000;
}

@media (max-width: 991px) {
    .services-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats Bar */
.stats-bar {
    background: #001133;
    /* Darker Navy */
    color: #fff;
    padding: 60px 0;
}

.flex-around {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    /* Align top for multi-line text */
    text-align: center;
}

.stat h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.stat p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.stat-sub {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    display: block;
    margin-top: 5px;
}

/* Calculator */
.calculator {
    background: #f4f6f9;
}

.calc-card {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    padding: 32px 36px 36px;
    text-align: left;
}

.calc-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Document buttons (gray) */
.btn-calc-doc {
    flex: 1;
    background: #e8ebf0;
    color: #4a5568;
    padding: 13px 18px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.2s;
    border: 1px solid #dde1e9;
}

.btn-calc-doc:hover {
    background: #d6dae3;
    transform: translateY(-1px);
}

/* Mode: active teal button */
.btn-calc-mode {
    flex: 1;
    background: #1ca5b0;
    color: #fff;
    padding: 13px 20px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    width: 100%;
    cursor: default;
}

.btn-calc-mode.active,
.btn-calc-mode:hover {
    background: #011a4c;
}

/* Mode: plain text link */
.btn-calc-mode-text {
    flex: 1;
    color: #1ca5b0;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 10px;
    transition: color 0.2s;
}

.btn-calc-mode-text:hover {
    color: #178a94;
}

/* Input section */
.calc-input-section {
    margin-bottom: 20px;
}

.calc-label-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #b0b8c9;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.calc-label-sub {
    font-size: 13px;
    color: #6b7a8d;
    margin-bottom: 12px;
}

.calc-input-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calc-amount-input {
    flex: 1;
    padding: 14px 18px;
    border: 1.5px solid #d1d8e4;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 600;
    color: #1a2a4a;
    outline: none;
    transition: border-color 0.2s;
    background: #fafbfc;
}

.calc-amount-input:focus {
    border-color: #1a2a4a;
}

.calc-currency-group {
    display: flex;
    gap: 18px;
    align-items: center;
}

.calc-currency-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1a2a4a;
    cursor: pointer;
}

.calc-currency-option input[type="radio"] {
    accent-color: #1ca5b0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Primary Calcular button */
.btn-calc-primary {
    background: #efb94d;
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(181, 183, 184, 0.3);
}

.btn-calc-primary:hover {
    background: #f0c367;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .calc-card {
        padding: 20px 16px 24px;
    }

    .calc-row {
        flex-direction: column;
    }

    .btn-calc-mode {
        max-width: 100%;
    }

    .calc-input-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .calc-amount-input {
        width: 100%;
    }
}

/* Calculator Results Modal */
.calc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    /* Darker overlay for better focus */
    z-index: 9999;
    /* Higher priority to stay above everything */
    align-items: center;
    justify-content: center;
    padding: 15px;
    /* Slightly less padding for more space on mobile */
    backdrop-filter: blur(3px);
    /* Add a subtle blur for a premium feel */
}

.calc-modal-overlay.is-open {
    display: flex;
}

.calc-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    padding: 28px 30px 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-height: 95vh;
    /* Slightly more height allowed */
    overflow-y: auto;
    animation: modalIn 0.3s ease-out;
    /* Slightly smoother transition */
    -webkit-overflow-scrolling: touch;
    /* Better scrolling on iOS */
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.calc-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f0c367;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.calc-modal-close:hover {
    background: #1a2a4a;
}

/* Teal header tab */
.calc-modal-tab {
    background: #001133;
    color: #fff;
    border-radius: 8px;
    padding: 13px 20px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calc-modal-monto {
    font-size: 17px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 14px;
}

/* Results table */
.calc-modal-table {
    border: 1.5px solid #d1d8e4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 22px;
}

.calc-table-section-header {
    background: #ddeef0;
    color: #1a2a4a;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 18px;
    text-align: center;
}

.calc-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 18px;
    border-top: 1px solid #e4eaf2;
    font-size: 14px;
    color: #4a5568;
    background: #fff;
}

.calc-table-row.totals {
    background: #f4f8fa;
    color: #1a2a4a;
}

.calc-table-row span:last-child {
    font-weight: 600;
    color: #1a2a4a;
}

/* 50% note */
.calc-modal-note {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.calc-modal-note h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 8px;
}

.calc-modal-note p {
    font-size: 13px;
    color: #5a6a7a;
    line-height: 1.6;
}

/* Modal action buttons */
.calc-modal-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.btn-calc-modal-primary {
    flex: 1;
    background: #1a2a4a;
    color: #fff;
    border: none;
    padding: 13px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
}

.btn-calc-modal-primary:hover {
    background: #1a2a4a;
    transform: translateY(-1px);
}

.btn-calc-modal-outline {
    flex: 1;
    background: #fff;
    color: #1a2a4a;
    border: 2px solid #d1d8e4;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-calc-modal-outline:hover {
    border-color: #1a2a4a;
    color: #1a2a4a;
}

.btn-calc-modal-outline.wide {
    width: 100%;
    flex: none;
}

@media (max-width: 500px) {
    .calc-modal-actions {
        flex-direction: column;
    }
}

/* Footer Contact */
.main-footer {
    padding-top: 0;
    /* Remove padding as wrapper handles it */
    background: #000;
    /* Fallback */
}

.contact-section-wrapper {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero/contacto.jpg');
    /* Assuming file pattern or generic url */
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    width: 100%;
    position: relative;
    /* If no image exists, this will just be dark overlay, which is fine for now/user test */
    background-color: #222;
}

.contact-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
}

.contact-info-left {
    flex: 1;
    color: #fff;
    max-width: 400px;
}

.contact-info-left h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-info-left p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.contact-form-card {
    flex: 1;
    max-width: 600px;
    background: #f4f5f7;
    /* Very light grey/white */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #001133;
    margin-bottom: 8px;
}

.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    border-color: var(--primary-blue);
}

.contact-form-card textarea {
    resize: none;
    height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #333;
}

.checkbox-group input {
    margin-top: 3px;
}

.btn-submit-contact {
    background: #001133;
    /* Muted blue/grey from image */
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-submit-contact:hover {
    background: #4a5970;
}

/* Footer Bottom */
.footer-bottom {
    background: #001133;
    /* Dark Navy */
    padding: 60px 0;
    color: #fff;
    font-size: 14px;
}

.footer-grid-3 {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

/* Col 1 */
.footer-logo {
    max-width: 200px;
    /* Reduced specific size */
    background: #fff;
    /* Logo has white bg in image */
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify;
}

.footer-links-row {
    display: flex;
    gap: 50px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Col 2 */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-footer-white {
    background: #fff;
    color: var(--primary-dark);
    padding: 12px 20px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.btn-footer-white i {
    font-size: 16px;
}

.btn-footer-white:hover {
    background: var(--accent-gold);
    color: #fff;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-socials a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--accent-gold);
}

.footer-contact-info p {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    font-size: 13px;
}

.footer-contact-info i {
    width: 20px;
    text-align: center;
    margin-top: 3px;
}

/* Col 3 */
.footer-col-visuals {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-office-img img,
.footer-map-img img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.footer-office-img img {
    height: 120px;
    /* Reduced height for top image */
}

.footer-map-img img {
    height: 200px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid-3 {
        grid-template-columns: 1fr;
    }


    .footer-links-row {
        justify-content: space-between;
    }
}

/* Internal Hero - Who We Are */
.internal-hero {
    position: relative;
    height: 250px;
    /* Default fallback or base style */
    background-color: #002060;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Page Specific Hero Images */
.hero-quienes {
    background-image: url('../img/hero/equipo_mofima.jpg');
}

.hero-gobierno {
    background-image: url('../img/hero/unidad_gobierno.jpg');
}

.hero-normas {
    background-image: url('../img/hero/normas_legales.jpg');
}

.hero-laudos {
    background-image: url('../img/hero/normas_legales.jpg');
}

.hero-decisiones {
    background-image: url('../img/hero/normas_legales.jpg');
}

.hero-jprd {
    background-image: url('../img/hero/normas_legales.jpg');
}

.internal-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Solid Blue on left -> Transparent on right */
    background: linear-gradient(90deg,
            rgba(0, 32, 96, 1) 0%,
            rgba(0, 32, 96, 0.95) 30%,
            rgba(0, 32, 96, 0.6) 60%,
            rgba(0, 32, 96, 0) 100%);
    z-index: 1;
}

.internal-hero .hero-content {
    position: relative;
    z-index: 2;
}

.internal-hero h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    text-align: left;
}

@media (max-width: 768px) {
    .internal-hero {
        height: 300px;
    }

    .internal-hero h1 {
        font-size: 40px;
    }
}

/* Arbitraje Hero Design Verification */
.arbitraje-hero {
    /* Updated gradient to match the dark blue overlay more closely */
    background-image: linear-gradient(90deg, #001A4D 0%, #001A4D 40%, rgba(0, 26, 77, 0.6) 100%),
        url('../img/banner.jpg');
    background-size: cover;
    background-position: center center;
    color: #fff;
    padding: 30px 0;
    min-height: 500px;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.arbitraje-hero .text-content {
    max-width: 650px;
}

.arbitraje-hero .hero-subtitle {
    display: block;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aebbdb;
    margin-bottom: 15px;
    font-weight: 500;
}

.arbitraje-hero .hero-title {
    font-size: 35px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #ffffff;
}

.arbitraje-hero .hero-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #dbe4f3;
    max-width: 90%;
}

.btn-white-hero {
    display: inline-flex;
    margin-right: 15px;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #001A4D;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-white-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-color: #f0f0f0;
}

.hero-note {
    font-size: 12px;
    line-height: 1.4;
    color: #b0c0de;
    max-width: 90%;
    margin-top: 5px;
}

.hero-note strong {
    color: #fff;
}

/* Card Improvements */
.card-wrapper {
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
}

.info-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    height: 350px;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card .card-image {
    height: 220px;
    overflow: hidden;
}

.info-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.info-card:hover .card-image img {
    transform: scale(1.05);
}

.info-card .card-body {
    padding: 20px 25px;
    background: #f9fafc;
}

.info-card h4 {
    color: #001A4D;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.info-card p {
    font-size: 12.5px;
    line-height: 1.6;
    color: #556070;
    margin: 0;
}

@media (max-width: 991px) {
    .arbitraje-hero .grid-2 {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .arbitraje-hero .text-content {
        margin: 0 auto;
    }

    .arbitraje-hero .hero-desc,
    .hero-note {
        margin-left: auto;
        margin-right: auto;
    }

    .card-wrapper {
        justify-content: center;
    }

    .arbitraje-hero .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 576px) {
    .arbitraje-hero .hero-title {
        font-size: 32px;
    }

    .info-card {
        max-width: 100%;
    }
}

/* Arbitraje Info & Formats Section Refinement */
.bg-light {
    background-color: #fcfcfc;
    /* Very subtle off-white */
}

.grid-2-start {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Accordion Wrapper - Looks like a single card in image */
.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accordion-item {
    background: #fff;
    border-radius: 20px;
    /* rounded corners */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: #f0f0f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.accordion-header {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    background: #fff;
}

.header-title h3 {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.header-title .subtitle {
    font-size: 15px;
    color: #777;
    font-weight: 400;
    display: block;
    line-height: 1.5;
}

/* Circle Icon - Minus/Plus */
.circle-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    flex-shrink: 0;
    margin-left: 20px;
    transition: all 0.3s;
    background: transparent;
}

.accordion-item.active .circle-icon {
    border-color: #333;
    color: #333;
}

.accordion-body {
    padding: 0 40px 40px 40px;
    display: none;
    /* Hidden by default, toggled by JS */
}

.accordion-item.active .accordion-body {
    display: block;
}

/* Download List Styling */
.download-list {
    display: flex;
    flex-direction: column;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #f5f5f5;
    /* Separtors between items */
}

.download-item:first-child {
    border-top: none;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    font-size: 20px;
    color: #0E1C36;
    /* Dark Navy Icon */
    background: #eef2f6;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.file-info span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.file-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-type {
    font-size: 11px;
    border: 1px solid #ddd;
    padding: 4px 10px;
    border-radius: 20px;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    background: #fff;
    letter-spacing: 0.5px;
}

.btn-download {
    color: #0E1C36;
    font-size: 16px;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
}

.btn-download:hover {
    transform: translateY(2px);
    color: var(--accent-gold);
}


/* Sidebar Cards */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    padding: 40px;
    border-radius: 20px;
}

/* White Card */
.sidebar-card.white-card {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.sidebar-card.white-card h4 {
    color: #0E1C36;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.sidebar-card.white-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* Blue Card */
.sidebar-card.blue-card {
    background: #001133;
    /* Very Dark Navy */
    color: #fff;
    box-shadow: 0 15px 40px rgba(0, 17, 51, 0.3);
}

.sidebar-card.blue-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aebbdb;
}

.sidebar-card.blue-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 90%;
}

.sidebar-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #001133;
    padding: 8px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .grid-2-start {
        grid-template-columns: 1fr;
    }
}

/* --- Quienes Somos Styles --- */

/* Intro Text */
.quienes-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.text-justify {
    text-align: justify;
}

/* Compromiso */
.compromiso-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Mision & Vision (Dark Blue Cards) */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mv-card {
    background: #0E1C36;
    /* Dark Navy */
    border-radius: 15px;
    padding: 40px 30px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 80px;
    /* Fixed width for alignment */
}

.mv-icon i {
    font-size: 40px;
    color: #fff;
}

.mv-icon h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.mv-text p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
    text-align: justify;
}

/* Policies */
.policies-intro {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.policy-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #00AEEF;
    /* Cyan/Blue Accent */
    border-radius: 8px;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    height: 100%;
}

.policy-card i {
    font-size: 24px;
    color: #00AEEF;
    /* Match border */
    flex-shrink: 0;
}

.policy-card span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.policy-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #00AEEF;
}

/* Benefits & Scope (White Cards) */
.ba-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border-top: 5px solid transparent;
    transition: transform 0.3s;
}

.ba-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ba-card .blue-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #002060;
}

.ba-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* Quienes Responsive */
@media (max-width: 991px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .policies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .mv-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mv-text p {
        text-align: center;
    }

    .policies-grid {
        grid-template-columns: 1fr;
    }
}

/* Licencia Municipal Banner */
.section-padding-bottom {
    padding-bottom: 60px;
}

.licencia-banner {
    background-color: #0E1C36;
    /* Dark Navy */
    border-radius: 15px;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.licencia-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.btn-licencia {
    background-color: #fff;
    color: #0E1C36;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.btn-licencia:hover {
    background-color: #00AEEF;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .licencia-title {
        font-size: 18px;
    }

    .licencia-banner {
        padding: 40px 20px;
    }
}

/* --- Órgano de Dirección Styles --- */

.section-heading {
    font-size: 24px;
    color: #002060;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #00AEEF;
}

/* Card Container for Director (Centered) */
.od-container {
    display: flex;
    justify-content: center;
}

/* Grid for Consejo Superior */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Organizacion Card Base Style */
.org-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    display: flex;
    justify-content: space-between;
    /* Content left, Button right */
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 5px solid #0E1C36;
    /* Dark blue left border acting as accent */
    overflow: hidden;
}

.org-card-content {
    flex: 1;
    padding-right: 20px;
}

.org-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0E1C36;
    margin-bottom: 8px;
    line-height: 1.3;
}

.org-card .role {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.org-card .country {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.org-card .country img {
    height: 18px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

/* Button Arrow */
.btn-org-arrow {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background-color: #0E1C36;
    /* Dark blue button */
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-org-arrow i {
    font-size: 16px;
}

/* Hover Effects */
.org-card:hover {
    background-color: #0E1C36;
    /* Dark blue bg */
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(14, 28, 54, 0.3);
    border-left-color: #fff;
    /* White accent on hover? Or keep distinct */
}

.org-card:hover h4 {
    color: #fff;
}

.org-card:hover .role {
    color: rgba(255, 255, 255, 0.8);
}

.org-card:hover .country {
    color: #fff;
}

.org-card:hover .btn-org-arrow {
    background-color: #fff;
    color: #0E1C36;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .cs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cs-grid {
        grid-template-columns: 1fr;
    }

    .org-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .btn-org-arrow {
        align-self: flex-end;
        margin-top: 15px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.close-modal {
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: #e0e0e0;
    color: #333;
}

.modal-body {
    padding-bottom: 20px;
}

.modal-body h3 {
    font-size: 22px;
    color: #0E1C36;
    margin-bottom: 5px;
    font-weight: 700;
}

.modal-role-highlight {
    font-size: 14px;
    color: #555;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.modal-details {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.modal-label {
    font-size: 16px;
    font-weight: 700;
    color: #0E1C36;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.modal-text-muted {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.modal-country {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.modal-country img {
    height: 20px;
    width: auto;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-modal-close {
    background-color: #0E1C36;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-modal-close:hover {
    background-color: #002060;
}

/* --- Normas Legales Styles --- */

.max-width-1000 {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.flex-center-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Normas Legend Accordion Headers */
.accordion-header h3 {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.header-icon {
    font-size: 14px;
    color: #0E1C36;
    transition: transform 0.3s ease;
}

.accordion-item.active .header-icon {
    transform: rotate(180deg);
}

.accordion-item.active .header-icon i {
    color: #00AEEF;
    /* Cyan when active */
}

/* Pill Download List */
.pill-download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 10px;
}

.pill-download-item {
    background-color: #0E1C36;
    /* Dark Navy from image */
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    /* Pill shape */
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
    max-width: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pill-download-item i {
    font-size: 16px;
    opacity: 0.9;
}

.pill-download-item:hover {
    background-color: #00AEEF;
    /* Cyan hover */
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

@media (max-width: 768px) {
    .pill-download-item {
        font-size: 13px;
        padding: 10px 20px;
    }

    .accordion-header h3 {
        font-size: 14px;
    }
}

/* --- Banco de Laudos Styles --- */

.laudos-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.laudos-count {
    font-size: 15px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
}

.laudos-count span {
    color: #0E1C36;
}

.search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 45px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #f9f9f9;
}

.search-container input:focus {
    outline: none;
    border-color: #00AEEF;
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.1);
    background-color: #fff;
}

.search-container i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

/* Table Design */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.laudos-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    /* Force scroll on small screens */
}

.laudos-table thead tr {
    background-color: #0E1C36;
    color: #fff;
    text-align: left;
}

.laudos-table th {
    padding: 18px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.laudos-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    vertical-align: middle;
}

.laudos-table tbody tr:last-child td {
    border-bottom: none;
}

.laudos-table tbody tr:hover {
    background-color: #f8faff;
}

/* Column Widths */
.col-id {
    width: 60px;
    text-align: center;
}

.col-year {
    width: 80px;
    text-align: center;
}

.col-contractor {
    width: 22%;
}

.col-entity {
    width: 22%;
}

.col-controversy {
    width: auto;
}

.col-action {
    width: 80px;
    text-align: center;
}

.btn-download-table {
    color: #0E1C36;
    font-size: 18px;
    transition: transform 0.2s, color 0.2s;
}

.btn-download-table:hover {
    color: #00AEEF;
    transform: translateY(-2px);
}

/* Pagination & Footer Info */
.laudos-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.results-info {
    font-size: 13px;
    color: #777;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 5px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.page-link:hover {
    border-color: #0E1C36;
    background-color: #0E1C36;
    color: #fff;
}

.page-item.active .page-link {
    background-color: #0E1C36;
    border-color: #0E1C36;
    color: #fff;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
    background-color: #f5f5f5;
}

/* Responsiveness for table */
@media (max-width: 768px) {
    .laudos-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container {
        max-width: 100%;
    }

    .laudos-footer {
        flex-direction: column;
        text-align: center;
    }
}

/*CSS Personalizado*/
.section-desc {
    font-size: 14px;
    font-weight: 600;
}

/* Arbitros Section */
.arbitros-section {
    background-color: #eef1f5;
}

.arbitros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.arbitro-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.arbitro-card:hover {
    transform: translateY(-5px);
}

.arbitro-img-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #0E1C36;
    border: 3px solid #dcb360;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.arbitro-img-container.white-bg {
    background-color: #fff;
}

.square-frame-arb {
    position: absolute;
    width: 60%;
    height: 60%;
    border: 2px solid #dcb360;
    z-index: 1;
}

.arbitro-img-container img {
    height: 90%;
    width: auto;
    position: relative;
    z-index: 2;
    object-fit: cover;
    margin-top: 10%;
}

.logo-fallback-arb {
    width: 70% !important;
    height: auto !important;
    margin-top: 0 !important;
}

.arbitro-card h4 {
    color: #001133;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.arbitro-role {
    color: #dcb360;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 991px) {
    .arbitros-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .arbitros-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   HAMBURGER MENU
   ============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    order: 3;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.35s ease;
    transform-origin: center;
}

/* Animated X when active */
.hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Overlay */
#main-nav {
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* =============================================
   GLOBAL MOBILE RESPONSIVE  (≤ 768px)
   ============================================= */
@media (max-width: 768px) {

    /* --- Header --- */
    .header-flex {
        position: relative;
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
    }

    #main-nav {
        display: none;
        width: 100%;
        order: 4;
        background: #fff;
        border-top: 3px solid var(--accent-gold);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        padding: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }

    #main-nav.is-open {
        display: block;
        max-height: 600px;
        opacity: 1;
    }

    .main-menu {
        flex-direction: column;
        gap: 0;
        padding: 10px 0 15px;
    }

    .main-menu>li>a {
        display: block;
        padding: 14px 20px;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
        color: var(--primary-dark);
    }

    .main-menu>li:last-child>a {
        border-bottom: none;
    }

    /* SIREA button inside mobile menu */
    .main-menu .btn-sirea {
        margin: 10px 20px;
        display: block;
        text-align: center;
        border-radius: 25px;
    }

    /* Dropdown inside mobile nav */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        border-left: 4px solid var(--accent-gold);
        margin-left: 20px;
        padding: 0;
        min-width: auto;
    }

    .dropdown.is-open>.dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .dropdown-toggle .fa-chevron-down {
        transition: transform 0.3s;
    }

    .dropdown.is-open .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* --- Hero Section --- */
    .split-hero {
        height: auto;
        flex-direction: column;
    }

    .hero-half {
        width: 100%;
        min-height: 350px;
        padding: 40px 20px;
    }

    .hero-half h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .hero-half p {
        font-size: 13px;
    }

    .hero-half .buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-half .buttons a {
        flex: none;
        width: 100%;
    }

    .btn-white,
    .btn-transparent {
        width: 100%;
        text-align: center;
        font-size: 14px;
        padding: 12px 15px;
    }

    /* --- Section Titles --- */
    .blue {
        font-size: 24px;
    }

    .section-desc,
    .mb-40 {
        font-size: 14px;
    }

    /* --- Grid 2 columns → 1 column --- */
    .grid-2,
    .benefits-scope .grid-2 {
        grid-template-columns: 1fr;
    }

    /* --- Specialized Services / Mission-Vision --- */
    .service-highlight {
        padding: 25px 20px;
    }

    .card-mission,
    .card-vision {
        padding: 25px 20px;
    }

    /* --- Certifications --- */
    .iso-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .regaju {
        padding: 20px;
    }

    .regaju img {
        max-width: 180px !important;
    }

    /* --- Services Card Grid --- */
    .services-card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .service-card-new {
        padding: 25px 15px;
    }

    .icon-service {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .service-card-new h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    /* --- Stats Bar --- */
    .flex-around {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .stat h3 {
        font-size: 36px;
    }

    .stat p {
        font-size: 16px;
    }

    /* --- Calculator --- */
    .calc-top-buttons {
        flex-direction: column;
    }

    .btn-calc-secondary {
        max-width: 100%;
    }

    .btn-calc-primary {
        font-size: 14px;
        padding: 14px 20px;
    }

    /* --- Contact Section --- */
    .contact-flex {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info-left {
        max-width: 100%;
    }

    .contact-info-left h2 {
        font-size: 26px;
    }

    .contact-form-card {
        max-width: 100%;
        padding: 25px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* --- Footer --- */
    .footer-grid-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links-row {
        justify-content: space-between;
    }

    .footer-col-visuals iframe {
        width: 100%;
        height: 220px;
    }

    .contact-section-wrapper {
        padding: 50px 0;
    }

    /* --- Internal hero pages --- */
    .internal-hero h1 {
        font-size: 28px;
    }

    .internal-hero {
        height: auto;
        min-height: 180px;
        padding: 30px 0;
    }

    /* --- Arbitraje hero --- */
    .arbitraje-hero {
        min-height: auto;
        padding: 40px 0;
    }

    .arbitraje-hero .hero-title {
        font-size: 24px;
    }

    .btn-white-hero {
        padding: 12px 25px;
        font-size: 13px;
        display: block;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
}

/* =============================================
   TABLET  (769px – 991px)
   ============================================= */
@media (min-width: 769px) and (max-width: 991px) {

    .main-menu {
        gap: 15px;
    }

    .main-menu a {
        font-size: 13px;
    }

    .services-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col-visuals {
        grid-column: 1 / -1;
    }

    .contact-flex {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form-card {
        max-width: 100%;
    }

    .hero-half {
        padding: 40px 30px;
    }

    .hero-half h2 {
        font-size: 26px;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .services-card-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 45px;
    }
}

/* ═══════════════════════════════════════════════════
   MODAL: LIBRO DE RECLAMACIONES VIRTUAL
═══════════════════════════════════════════════════ */
.reclamacion-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.reclamacion-overlay.is-open {
    display: flex;
}

.reclamacion-modal {
    background: #ffffff;
    border-radius: 6px;
    max-width: 680px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 50px 36px;
    margin: auto;
    animation: reclamacionFadeIn 0.3s ease-out forwards;
}

@keyframes reclamacionFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Botón cerrar X */
.reclamacion-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.reclamacion-close:hover { color: #002060; }

/* Cabecera */
.reclamacion-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dde1e9;
}

.reclamacion-title-main {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.reclamacion-address {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.reclamacion-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
}

/* Título de sección */
.reclamacion-section-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
    padding-bottom: 6px;
    margin: 18px 0 14px;
    letter-spacing: 0.03em;
}

/* Fila de campo (label + input en línea) */
.reclamacion-field-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.reclamacion-label {
    font-size: 13px;
    color: #333;
    min-width: 170px;
    flex-shrink: 0;
    font-weight: 500;
}

.reclamacion-input,
.reclamacion-select {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #b0b0b0;
    border-radius: 3px;
    font-size: 13px;
    color: #333;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
    background: #fff;
}

.reclamacion-input:focus,
.reclamacion-select:focus {
    outline: none;
    border-color: #002060;
    box-shadow: 0 0 0 2px rgba(0, 32, 96, 0.12);
}

.reclamacion-input.invalid {
    border-color: #e53e3e;
}

/* Área de texto: ocupa todo el ancho */
.reclamacion-field-full {
    margin-bottom: 14px;
}

.reclamacion-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b0b0b0;
    border-radius: 3px;
    font-size: 13px;
    color: #333;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    transition: border-color 0.2s;
    min-height: 120px;
}

.reclamacion-textarea:focus {
    outline: none;
    border-color: #002060;
    box-shadow: 0 0 0 2px rgba(0, 32, 96, 0.12);
}

.reclamacion-textarea.invalid {
    border-color: #e53e3e;
}

/* Mensaje de estado */
.reclamacion-status {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.reclamacion-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.reclamacion-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Botón ENVIAR */
.reclamacion-actions {
    text-align: center;
    margin-top: 20px;
}

.btn-reclamacion-enviar {
    background: #3a62a7;
    color: #fff;
    border: none;
    padding: 12px 52px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-reclamacion-enviar:hover {
    background: #002060;
    transform: translateY(-2px);
}

.btn-reclamacion-enviar:disabled {
    background: #8a9cc0;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 600px) {
    .reclamacion-modal {
        padding: 28px 20px 24px;
    }

    .reclamacion-field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .reclamacion-label {
        min-width: unset;
    }

    .reclamacion-input,
    .reclamacion-select {
        width: 100%;
    }
}