body {
            background-color: #f1f1f1;
            margin: 0;
        }

        .campo-trampa {
            position: absolute !important;
            left: -10000px !important;
            width: 1px !important;
            height: 1px !important;
            overflow: hidden !important;
        }

        .main-container {
            flex: 1;
            display: flex;
            justify-content: center;
            margin: 20px auto;
            max-width: 1200px;
            padding-bottom: 5%;
        }

        .wrapper {
            max-width: 1200px;
            width: 100%;
            display: flex;
            gap: 30px;
        }

        .sidebar {
            width: 260px;
            border-radius: 10px;
            overflow: hidden;
        }

        .sidebar-title {
            background: #9d2449;
            color: white;
            padding: 12px 15px;
            font-weight: bold;
        }

        .menu-btn {
            width: 100%;
            padding: 10px 15px;
            border: none;
            background: #13322e;
            color: #ffffff;
            text-align: left;
            cursor: pointer;
            font-size: 14px;
        }

        .menu-btn::before {
            content: "› ";
            opacity: 0.7;
        }

        .menu-btn:hover {
            background: #9d2449;
        }

        .menu-btn.hraei-menu-active {
            background: #1e5b4f;
            color: #ffffff;
            font-weight: bold;
        }

        .content {
            flex: 1;
            background: white;
            padding: 30px;
            border-radius: 10px;
        }

        h2,
        h3 {
            color: #611232;
        }

        h2 {
            margin-top: 0;
        }

        .hraei-section {
            display: none;
        }

        .hraei-section.hraei-section-active {
            display: block;
        }

        /* Enlaces del Marco Jurídico */
        #directorio,
        #directorio > div {
            width: 100%;
            min-width: 0;
            max-width: 100%;
        }

        #directorio .btn-link {
            display: block;
            width: 100%;
            max-width: 100%;
            padding: 8px 0;
            text-align: left;
            white-space: normal;
        }

        #directorio .btn-link a {
            display: block;
            width: 100%;
            max-width: 100%;
            text-align: left;
            white-space: normal !important;
            overflow-wrap: anywhere;
            word-break: normal;
            line-height: 1.5;
        }

        /* Ubicación y mapa */
        .business-card {
            width: 100%;
            max-width: 1200px;
            margin: 40px auto;
            padding: 0;
            background: #ffffff;
            border-radius: 18px;
            box-shadow: 0 10px 35px rgba(0, 0, 0, 0.10);
            overflow: hidden;
            border: 1px solid #eeeeee;
        }

        .business-content {
            display: grid;
            grid-template-columns: 1.25fr 1fr;
            min-height: 480px;
        }

        .contacto-mapa {
            width: 100%;
            min-height: 480px;
            background: #f2f2f2;
        }

        .mapouter,
        .gmap_canvas {
            width: 100%;
            height: 100%;
            min-height: 480px;
        }

        .gmap_canvas {
            overflow: hidden;
            position: relative;
        }

        .gmap_canvas iframe {
            width: 100%;
            height: 100%;
            min-height: 480px;
            border: 0;
            display: block;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 0;
            padding: 45px 40px;
            background: #ffffff;
        }

        .business-title {
            margin: 0 0 30px 0;
            color: #611232;
            font-family: 'Noto Sans', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            line-height: 1.2;
        }

        .business-title::after {
            content: "";
            display: block;
            width: 55px;
            height: 4px;
            font-size: 1.4rem;
            margin-top: 12px;
            background: #B38E2F;
            border-radius: 10px;
        }

        .info-item {
            display: flex;
            align-items: flex-start;
            gap: 18px;
            padding: 22px 0;
            border-bottom: 1px solid #eeeeee;
        }

        .info-item:first-of-type {
            padding-top: 0;
        }

        .info-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .info-item i {
            flex-shrink: 0;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f6f1e4;
            color: #B38E2F;
            border-radius: 50%;
            font-size: 25px;
            transition: all 0.25s ease;
        }

        .info-item p {
            margin: 0;
            padding-top: 1px;
            color: #6F7271;
            font-family: 'Noto Sans', sans-serif;
            font-size: 1.2rem;
            line-height: 1.65;
            font-weight: 400;
        }

        .info-item strong {
            display: block;
            margin-bottom: 4px;
            color: #611232;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .info-item a {
            color: #555555;
            text-decoration: none;
            transition: all 0.25s ease;
        }

        .info-item a:hover {
            color: #611232;
        }

        .info-item:hover i {
            background: #611232;
            color: #ffffff;
            transform: translateY(-2px);
        }

        /* Formulario de contacto */
        .contact-wrapper {
            display: flex;
            gap: 40px;
            margin-top: 30px;
            align-items: flex-start;
        }

        .formulario {
            flex: 2;
            background: #fff;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
        }

        .contact-info-panel {
            flex: 1;
            min-width: 0;
            background: #fff;
            color: #333;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
        }

        .contact-info-panel h3 {
            margin: 0;
            padding: 18px 15px;
            background: rgba(5, 72, 63, .85);
            color: #fff;
            text-align: center;
            font-size: 20px;
            font-weight: 600;
        }

        .contact-info-body {
            display: grid;
            gap: 26px;
            padding: 28px 25px;
        }

        .contact-info-detail {
            min-width: 0;
            text-align: left;
        }

        .contact-info-detail strong {
            display: block;
            margin-bottom: 8px;
            color: #9d2449;
            font-size: 16px;
        }

        .contact-info-detail p {
            margin: 0;
            color: #a47d45;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.6;
            overflow-wrap: anywhere;
        }

        .input-group {
            display: flex;
            flex-direction: column;
            margin-bottom: 20px;
        }

        .input-group label {
            margin-bottom: 8px;
            color: #10312B;
            font-weight: 600;
        }

        .input-group input,
        .input-group textarea {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid #d9d9d9;
            border-radius: 10px;
            font-size: 15px;
            font-family: inherit;
            transition: .3s;
        }

        .input-group input:focus,
        .input-group textarea:focus {
            outline: none;
            border-color: #B38E2F;
            box-shadow: 0 0 0 3px rgba(179, 142, 47, .15);
        }

        textarea {
            resize: vertical;
        }

        .btn-enviar {
            background: #691C32;
            color: #fff;
            border: none;
            padding: 15px 35px;
            border-radius: 10px;
            font-size: 16px;
            cursor: pointer;
            transition: .3s;
        }

        .btn-enviar:hover {
            background: #8b2543;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: white;
            padding: 40px;
            border-radius: 15px;
            text-align: center;
            max-width: 450px;
            width: 90%;
        }

        /* Preguntas Frecuentes */
        .faq-container {
            width: 100%;
            margin-top: 20px;
        }

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

        .faq-question {
            width: 100%;
            border: solid 1px transparent;
            outline: none;
            padding: 18px;
            text-align: left;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s ease;
            background: #f8f8f8;
        }

        .faq-question:hover {
            background: #a57f2c;
            color: #ffffff;
        }

        .faq-question::after {
            content: "+";
            font-size: 24px;
            transition: 0.3s;
        }

        .faq-item.active .faq-question::after {
            content: "−";
        }

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

        .faq-answer-content {
            padding: 20px 0;
            line-height: 1.7;
        }

        .faq-answer ul {
            margin-top: 10px;
            padding-left: 20px;
        }

        .faq-answer li {
            margin-bottom: 10px;
        }

        @media (max-width: 900px) {
            .wrapper {
                flex-direction: column;
                padding: 0 15px;
            }

            .sidebar {
                width: 100%;
            }

            .content {
                width: 100%;
                min-width: 0;
                padding: 24px 20px;
            }

            #directorio h2 {
                font-size: 28px;
                line-height: 1.25;
            }

            .business-card {
                width: calc(100% - 30px);
                margin: 25px auto;
                border-radius: 15px;
            }

            .business-content {
                grid-template-columns: 1fr;
            }

            .contacto-mapa,
            .mapouter,
            .gmap_canvas,
            .gmap_canvas iframe {
                min-height: 350px;
                height: 350px;
            }

            .contact-info {
                padding: 35px 30px;
            }

            .business-title {
                font-size: 1.8rem;
            }

            .contact-wrapper {
                flex-direction: column;
            }

            .formulario,
            .contact-info-panel {
                width: 100%;
            }
        }

        @media (max-width: 600px) {
            .business-card {
                width: calc(100% - 20px);
                margin: 20px auto;
                border-radius: 12px;
            }

            .contacto-mapa,
            .mapouter,
            .gmap_canvas,
            .gmap_canvas iframe {
                min-height: 280px;
                height: 280px;
            }

            .contact-info {
                padding: 30px 22px;
            }

            .business-title {
                font-size: 1.5rem;
                margin-bottom: 25px;
            }

            .info-item {
                gap: 14px;
                padding: 18px 0;
            }

            .info-item i {
                width: 42px;
                height: 42px;
                font-size: 17px;
            }

            .info-item p {
                font-size: 0.92rem;
                line-height: 1.55;
            }

            .info-item strong {
                font-size: 0.98rem;
            }
        }

        @media screen and (max-width: 768px) {
            .faq-question {
                font-size: 14px;
                padding: 15px;
            }

            .faq-answer-content {
                font-size: 14px;
            }
        }

        .modal-condiciones-postulacion {
            width: min(760px, calc(100% - 32px));
            max-height: calc(100vh - 32px);
            margin: auto;
            padding: 0;
            overflow: hidden;
            border: 0;
            border-radius: 16px;
            color: #1f2933;
            background: #fff;
            box-shadow: 0 24px 70px rgba(16, 49, 43, 0.28);
        }

        .modal-condiciones-postulacion[open] {
            animation: mostrar-condiciones 220ms ease-out both;
        }

        .modal-condiciones-postulacion.modal-condiciones-cerrando {
            animation: ocultar-condiciones 180ms ease-in both;
        }

        .modal-condiciones-postulacion::backdrop {
            background: rgba(16, 49, 43, 0.6);
            backdrop-filter: blur(2px);
        }

        .modal-condiciones-encabezado {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            padding: 20px 24px;
            background: #611232;
            color: #fff;
        }

        .modal-condiciones-encabezado h3 {
            margin: 0;
            color: inherit;
            font-size: 1.35rem;
            line-height: 1.3;
        }

        .modal-condiciones-cerrar {
            flex: 0 0 38px;
            width: 38px;
            height: 38px;
            padding: 0;
            border: 1px solid rgba(255, 255, 255, 0.55);
            border-radius: 50%;
            color: #fff;
            background: transparent;
            font-size: 1.7rem;
            line-height: 1;
            cursor: pointer;
        }

        .modal-condiciones-cuerpo {
            max-height: calc(100vh - 125px);
            padding: 24px;
            overflow-y: auto;
        }

        .modal-condiciones-postulacion .modal-condiciones-cuerpo p {
            margin: 0 0 16px;
            font-size: 17px;
            line-height: 1.75;
            text-align: left;
        }

        .modal-condiciones-acciones {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid #dfe7e4;
        }

        .btn-cancelar-condiciones,
        .btn-aceptar-condiciones {
            min-height: 38px;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.25;
            font-weight: 700;
            cursor: pointer;
        }

        .btn-cancelar-condiciones {
            border: 1px solid #aebbb7;
            color: #10312b;
            background: #fff;
        }

        .btn-aceptar-condiciones {
            border: 1px solid #611232;
            color: #fff;
            background: #611232;
        }

        .btn-cancelar-condiciones:hover,
        .btn-cancelar-condiciones:focus-visible {
            background: #f0f4f2;
        }

        .btn-aceptar-condiciones:hover,
        .btn-aceptar-condiciones:focus-visible {
            background: #4b0e27;
        }

        .btn-cancelar-condiciones:disabled,
        .btn-aceptar-condiciones:disabled,
        .modal-condiciones-cerrar:disabled {
            opacity: 0.65;
            cursor: wait;
        }

        @keyframes mostrar-condiciones {
            from { opacity: 0; transform: translateY(28px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes ocultar-condiciones {
            from { opacity: 1; transform: translateY(0); }
            to { opacity: 0; transform: translateY(20px); }
        }

        @media (max-width: 600px) {
            .modal-condiciones-encabezado { padding: 16px 18px; }
            .modal-condiciones-encabezado h3 { font-size: 1.1rem; }
            .modal-condiciones-cuerpo { padding: 20px 18px; }
            .modal-condiciones-postulacion .modal-condiciones-cuerpo p { font-size: 16px; line-height: 1.7; }
            .modal-condiciones-acciones { flex-direction: column-reverse; }
            .btn-cancelar-condiciones,
            .btn-aceptar-condiciones { width: 100%; }
        }
